How do I Ref a cell with dates as a worksheet

dereidar

New Member
Joined
Mar 31, 2011
Messages
15
I was hoping someone could help me with this...

I am trying to reference a cell that has a date similar to the worksheet to save time typing and linking.

I have dates in Column A that are formated as 03-31-2011 and the work sheets are named 03-31-2011

My formula is =INDIRECT(A1&"!E12") it works for numbers, but not dates. I get REF! error.

Any ideas what I'm doing wrong?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
If there's a date in A1, it's value is still a serial #, like 40293, not a date -- you need the formatted value, like
=INDIRECT(TEXT(A1,"mm-dd-yyyy")&"!E12")
 
Upvote 0
I'm still getting the REF error even though the calculation steps look correct. The worksheet name is also a date thats formated mm-dd-yyyy

Does that pose a problem?
 
Upvote 0
Try this:
=INDIRECT("'" & TEXT(A1,"mm-dd-yyyy")&"'!E12")

(surrounding the sheet name with a single quote)
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,756
Members
452,940
Latest member
rootytrip

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