Excel Formula Using Defined Names

AlexaS

Board Regular
Joined
Oct 12, 2012
Messages
158
Ok, so I'm probably just not using the correct search terms (wouldn't be the first time), but I'm on a bit of a time-crunch with this one:

I have a list of numbers which match up to a defined cell name on a different sheet. I'm hoping to make the results variable.

For example what I currently have is:

ID
Calculate %
23
=_23_Calc
156
=_156_Calc

<TBODY>
</TBODY>


23 and 156 are my ID numbers that the list is based on. The =_23_Calc is the defined cell name from the other sheets where the percentage is calculated. Is there anyway to have the cell pull the reference based on the value in the relevant ID cell?

I.E.

ID
Calculate %
23
=_&"A2"&_Calc
156
=_&"A3"&_Calc

<TBODY>
</TBODY>

So that even if the list changes, we don't need to change the formulas as well. Is this possible? Am I just typing the formula wrong (because the above didn't like me)?

Thanks for any help you might be able to give :biggrin:
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
This sounds like a mess of a spreadsheet, but here's the formula you're looking for.

=indirect("_"&a2&"_Calc")

In the future, look into vlookup() or Index(match()) functions.
 
Upvote 0
I've never used indirect before. And you should have seen the spreadsheet before I got to it. Also - the calculation is based off of a list of values going down. From what I've struggled through with vlookup before, it wouldn't have worked for this.

Thank you both!
 
Upvote 0

Forum statistics

Threads
1,215,018
Messages
6,122,703
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