Reference the sheet name in formula as a number

Guidestone

New Member
Joined
Jul 5, 2018
Messages
14
I'm trying to write the following formula:

=MAX('02'!C5:C18)

But instead of referencing the sheet named "02" I either want to reference a cell that outputs the name or number of the sheet, or have it reference the current sheet (because there are 200 sheets just like this one and they are all the same format, but contain different data). Any idea how I can achieve this?

Thanks,
Chris
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
It doesn't seem to recognize the data in the C column because my red reference box is gone, so I'm not sure where it's pulling the data from.

https://drive.google.com/file/d/1YTXsTM_cPtLkuA07ZNhq_Q14N00dlU5H/view?usp=sharing


Here's a "Hail Mary" move.

The only thing left could be a corrupted worksheet or workbook.

If you copy the data with a copy ==> Pastespecial ==> values into another worksheet, and point the formula to that one, it might work.

If it does, you know you have a corrupted worksheet
 
Upvote 0
02 is the name of the sheet!

Yes "02" is the name of the sheet, but I see he has it as "2". That might make the difference.

If the cell isn't formatted as text, and the VALUE is "2" and not "02" then it might not work
 
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,986
Members
449,058
Latest member
oculus

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