Using numbers in column to reference tabs?

hvpi91

New Member
Joined
Apr 28, 2011
Messages
2
I want to be able to drag an equation down a column that will reference each of the different tabs that have been numbered same as the numbers in the column referenced. This is an Hlookup equation and I don't want to have to manually reference each tab (there are a lot of them).

So essentially how do I change the hard coded '1' in the tab reference to a cell reference that can be dragged?

Thanks
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Put this in a cell and drag it down and watch what happens.
=ROW()

You'll probably have to use that with another function like INDIRECT or OFFSET.

If you give an example of your formula, I could be more specific.
 
Last edited:
Upvote 0
I want to be able to drag an equation down a column that will reference each of the different tabs that have been numbered same as the numbers in the column referenced. This is an Hlookup equation and I don't want to have to manually reference each tab (there are a lot of them).

So essentially how do I change the hard coded '1' in the tab reference to a cell reference that can be dragged?

Thanks
Are you trying to say the sheet names are numbers like 1, 2, 3, 4 etc?

Show us what your current formula looks like.
 
Upvote 0
=IF(HLOOKUP(D$1,'1'!$A$1:$AL$3,3)=" ","-",HLOOKUP(D$1,'1'!$A$1:$AL$3,3))

so I want the tab reference '1' replace with a cell reference A1 so I can drag the equation down without having to hard code the number

Thanks
 
Upvote 0
Try
Code:
=IF(HLOOKUP(D$1,INDIRECT("'"&ROW(A1)&"'!$A$1:$AL$3"),3)=" ","-",HLOOKUP(D$1,INDIRECT("'"&ROW(A1)&"'!$A$1:$AL$3"),3))
 
Upvote 0
=IF(HLOOKUP(D$1,'1'!$A$1:$AL$3,3)=" ","-",HLOOKUP(D$1,'1'!$A$1:$AL$3,3))

so I want the tab reference '1' replace with a cell reference A1 so I can drag the equation down without having to hard code the number

Thanks
Try it like this...

=IF(HLOOKUP(D$1,INDIRECT("'"&A1&"'!A1:AL3"),3)=" ","-",HLOOKUP(D$1,INDIRECT("'"&A1&"'!A1:AL3"),3))
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

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