Embed/reference formula text inside another formula

anblan25

New Member
Joined
Apr 6, 2016
Messages
2
Hi, I'm trying to embed formulaB8 into formulaB9, resulting in valueA11.

formulaB8 :SUM(A2:A4)
formulaB9 :=SUM(formulaB8,2)
valueA11 :8

<tbody>
</tbody>

I'm trying to do this without actually pasting the formulaB8 text into formulaB9.

Since I have one large formula that is re-used many many times inside other formulas, I'd like to be able to keep that formula text in one cell and embed the entirety of its contents inside the text of other formulas using some sort of reference.

Below is a simplified example of everything I've tried in an effort to realize this functionality.

A
B
1
valueformula
2
1=1
3
2=2
4
3=3
5
6
6=SUM(A2:A4)
7
8
SUM(A2:A4)SUM(A2:A4)
9
=SUM(formulaB8,2)'=SUM(formulaB8,2)
10
11
8=8
12
13
SUM(A2:A4)=CELL("contents",A8)
14
#VALUE!=SUM(CELL("contents",A8),2)
15#VALUE!=SUM(CELL("contents",INDIRECT("A8")),2)
16
17#REF!=INDIRECT(A8)
18SUM(A2:A4)=INDIRECT("A8")
192=SUM(INDIRECT("A8"),2)
20
21SUM(A2:A4)=INDIRECT(CELL("address",A8))
222=SUM(INDIRECT(CELL("address",A8)),2)
23=SUM(A2:A4)="=" & INDIRECT(CELL("address",A8))
24
25#REF!=INDIRECT(CELL("contents",A8))
26#REF!=INDIRECT("" & CELL("contents",A8))
27
#REF!=INDIRECT(TEXT(CELL("contents",A8),"General"))
28
29
#VALUE!=SUM(name1,2)

<tbody>
</tbody>

note : name1 was created in Name Manager and set to a value of "SUM(A2:A4)" (without the quotes)

The furthest I feel like I've progressed is valueA22, but it seems like it's treating the referenced A8 as a text with a numerical value of 0, and I'd like the A8 text evaluated within the context of formulaB22.

I've searched online and have been spinning my wheels tinkering with it to no avail.

Any assistance would be greatly appreciated. Thanks.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hello,

My understanding is that you need to use the Evaluate() function (Excel v4.0 macro function)

So, you can use the Name Manager to create the your own name such as : name1

In terns of Refers To, you should have : =EVALUATE(Sheet1!$B$8)

Then, in your selected cell, just type in : =name1

Hope this will help
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,732
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top