Referencing Sheet names in formula

CY078

New Member
Joined
Nov 2, 2014
Messages
49
Office Version
  1. 365
Platform
  1. Windows
Hi All

I am trying write an index formula that references the sheet names.

=INDEX('230701'!$B$6:$Z$30,MATCH(Upload!C2,'230701'!$B$6:$B$30,0),MATCH(I2,'230701'!$B$6:$Z$6,0))

The above formula works ... just a simple index match formula looking up some data in tab '230701'

However I want don't want to manually reference the cell but use a formula. So I tried the below formula .. where A3 is 230701 (General format)

INDEX("'"&A3&"'"!$B$6:$Z$30,MATCH($C3,"'"&A3&"'"!$B$6:$B$30,0),MATCH($I3,"'"&A3&"'"!$B$6:$Z$6,0))

However it does not work ... can anyone shed some light as to what I am doing wrong ??

TIA :)
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
The first reference should be INDIRECT("'"&A3&"'!$B$6:$Z$30"). Give the rest a go with the same logic.
 
Upvote 0
The first reference should be INDIRECT("'"&A3&"'!$B$6:$Z$30"). Give the rest a go with the same logic.

I tried the below which resulted in a #value! response. Its definitely not the referencing side because it works as a normal index formula.

=INDEX("'"&A3&"'!$B$6:$Z$30",MATCH($C3,"'"&A3&"'!$B$6:$B$30",0),MATCH($I3,"'"&A3&"'!$B$6:$Z$6",0))

=INDEX(("'"&A4&"'!$B$6:$Z$30"),MATCH($C4,"'"&A4&"'!$B$6:$B$30",0),MATCH($I4,"'"&A4&"'!$B$6:$Z$6",0))

=INDEX(("'"&A5&"'!$B$6:$Z$30"),MATCH($C5,"'"&A5&"'!$B$6:$B$30,0"),MATCH($I5,"'"&A5&"'!$B$6:$Z$6,0"))

Thoughts ?
 
Upvote 0
You haven't used the indirect function as Anonymous1378 showed.
 
Upvote 0
Sorry my bad ... got to eager and confused myself with indirect & index.
 
Upvote 0
Did you get it to work?

I originally used the below formula ... for some reason my workbook is very temperamental with "Indirect" formulas. It can be the same forumla with same lookup points but some work and some don't :cautious:

=SUMPRODUCT((INDIRECT("'"&A6&"'!$O$2:$BF$2")=Upload!J6)*(INDIRECT("'"&A6&"'!$B$7:$B$42")=Upload!C6)*(INDIRECT("'"&A6&"'!O$7:$BF$42")))

So I was hoping to get an "index" formula without the indirect part.

But it's ok .. there are only 8 tabs ... so I can make a normal "index" formula.

Thanks for checking up ;)
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,267
Members
449,149
Latest member
mwdbActuary

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