ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Nest a referenced formula in excel (https://www.excelbanter.com/excel-worksheet-functions/83194-nest-referenced-formula-excel.html)

[email protected]

Nest a referenced formula in excel
 
Hello,

Does anyone know a way to use a referenced cell (containing text) and
have the parent cell use that text in the formula?

As an example.

In A1 I have "B1+B2" (stored as text, not an equation)

Then I want to be able to have A2=A1, and have it actually compute the
equation (B1+B2) as if I had typed '=B1+B2' into A2

Thanks


Miguel Zapico

Nest a referenced formula in excel
 
You can use evaluate(), but not directly. Here is an example:
http://www.ozgrid.com/News/excel-eva...ormula-VBA.htm

" wrote:

Hello,

Does anyone know a way to use a referenced cell (containing text) and
have the parent cell use that text in the formula?

As an example.

In A1 I have "B1+B2" (stored as text, not an equation)

Then I want to be able to have A2=A1, and have it actually compute the
equation (B1+B2) as if I had typed '=B1+B2' into A2

Thanks




All times are GMT +1. The time now is 04:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com