Sheet Name from cell value in formula - Not Volatile (INDIRECT)

Norgewalk

New Member
Joined
Mar 17, 2017
Messages
4
I could not find this in another thread so please point me there if it exist.

I've been using INDIRECT when I need to use a refer to tab name based on a value in a cell, but it uses the volatile INDIRECT formula. Is there a better way to do this using INDEX or something that isn't volatile?

Example of what I use now:

D1 is a text value that is also the name of a tab, say "TabName"

This formula will search column A in the TabName sheet and return "Yes" if the value in C2 is found and "No" if it is not.

Formula:
=IF(IFNA(MATCH($C2,INDIRECT("'"&D$1&"'!"&"$A:$A"),0),0)>0,"Yes","No")

INDIRECT("'"&D$1&"'!"&"$A:$A") in this case results in 'TabName!$A:$A which is what I need in the formula.


I hope some has overcome this hurdle. So far I have not been able to.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Other than VBA, INDIRECT is the only way to use a text reference in a cell :(

What is the problem with using INDIRECT?
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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