vlookup tab reference

dmj120

Active Member
Joined
Jan 5, 2010
Messages
286
Office Version
  1. 365
  2. 2019
  3. 2010
I have a workbook that has a summary tab, which "looks up" the info on several other 'facility tabs.' I used Lookup() and index() to make it a nice expandable workbook -just have to add tabs- and start using it, which works great for all the cells with numbers/dates. the issue came up with a "comment cell" so I used vlookup().


This is the formula that works great: LOOKUP(9.99999999999999E+307,INDIRECT("'"&$B7&"'!$k$7:$k$39"))

This is how I have the comment cell on the summary tab: VLOOKUP(C6,'tab name'!$B$7:$AB$22,27,0) to be able to copy the formula down, instead of having to hard code the tab name, is the a way to reference the tab name similar to the above lookup()?

Thanks
Josh
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Thanks, I tried that before -and again in case I messed it up before- and it when hitting enter, a window pops up for me to click a file. I even tried cntl+****+enter see if adding {} would help....nada.
 
Upvote 0
Works for me, provided B7 contains a valid Sheet Name.

UGH :oops: :oops: Thanks! It does work, it was the first half of the formula -if(iserror()..) that was the problem. Thank you very much (y)
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,252
Members
449,075
Latest member
staticfluids

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