Hlookup using Sheet Name lookup

erniepoe

Active Member
Joined
Oct 23, 2006
Messages
380
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have a summary sheet and about 250 different worksheets, and in column C of the summary page I have the name of each tab in the workbook.

I would like to do a lookup to the particular worksheet, and once there, find the word "total" in Row 8 (will be found no later than column N, but sometimes as early as column F), and then Hlookup off that "total" to provide the value listed 13 rows down.

Is this something that is possible? Thanks in advance for any help.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Try

=HLOOKUP("total",INDIRECT("'"&LOOKUP(yoursheetnamelookup)&"'!F8:N21"),14,0)
 
Upvote 0
thank you Jon. Where you write "yoursheetnamelookup", do i just substitute cell C7 (the sheet name column) and then just drag it down accordingly?
 
Upvote 0
I thought you were using a lookup function to find the sheet name.
Anyway, Yes. Replace LOOKUP(yoursheetnamelookup) with C7
So
=HLOOKUP("total",INDIRECT("'"&C7&"'!F8:N21"),14,0)
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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