simple look up formula.....

j33pguy

Well-known Member
Joined
Aug 6, 2004
Messages
633
hi, i have the following formula.... =LEFT('5'!$D16,1) which would look at the tab named 5 and take a letter from the word in D16.
works fine.
now, what if in my current sheet, i have the tab name (ie 5) in a cell. how can i make this dynamic?
if 5 is shown in A1, can i do: =LEFT('"A1"'!$D16,1)
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

j33pguy

Well-known Member
Joined
Aug 6, 2004
Messages
633
thanks so much....oh and you are so Ridiculously goodlooking!!!! ;)
 

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,053
Office Version
  1. 365
Really, really, ridiculously good looking. That's le tigre, can't you tell? ;)
 

j33pguy

Well-known Member
Joined
Aug 6, 2004
Messages
633
one thing though....
i need D16 to change...as in i need to scroll down that formula and have it change....
i tried =LEFT(Indirect('"&A1&"'!$D16),1) but it gives me a REF error.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
j33pguy said:
one thing though....
i need D16 to change...as in i need to scroll down that formula and have it change....
i tried =LEFT(Indirect('"&A1&"'!$D16),1) but it gives me a REF error.

=LEFT(INDIRECT("'"&$A$1&"'!"&CELL("Address",D16)))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,834
Messages
5,855,899
Members
431,772
Latest member
dannyboi1

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
Top