Worksheets named as Dates: Indirect Error?

ExcelHell-Help

New Member
Joined
Jul 25, 2010
Messages
2
Hello,
I'm new to Excel, but I hope you can help?

I've created a Workbook for a rota.
Therefore, each of July's worksheet's are named:

01-07-2010, 02-07-2010, 03-07-2010, 04-07-2010, etc.

I'm trying to display the information from a cell on a previous worksheet (Worksheet "01-07-2010", Cell "E6") within the cell of the current worksheet (Worksheet "02-07-2010", Cell "E6").

This works fine if I use:
='01-07-2010'!E6

But this means I have to manually enter the information for on each proceeding worksheet.

So, what I'm trying to do is dynamically reference the information using the INDIRECT function within a formula.
=INDIRECT(C3&"!E6")

Whereby, C3 contains = 01-07-2010
This produces a #REF! error.

If I evaluate the error, this is produced:
A function in this formula causes the result to change each time the spreadsheet is calculated. The final evaluation step will match the result in the cell, but interim steps may not.

But. If I rename the worksheets:
Sheet1, Sheet2, Sheet3 etc.
It works???

If anybody knows where I'm going wrong, I would really appreciate their help!

Many thanks.
:confused:
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,425
Office Version
  1. 2019
The date 01-07-2010 is being converted into Excel's internal date format so you need to convert it back into the mm-dd-yyyy format
Try this (untested)

=INDIRECT(TEXT(C3,"mm-dd-yyyy")&"!E6")
 

ExcelHell-Help

New Member
Joined
Jul 25, 2010
Messages
2
Hi Special-K99,

Many thanks for taking the time to answer!

When I evaluated your suggestion, it now displays the date correctly most of the time, but unfortunately it still produces the same #REF! error.

I do believe you going in the right direction to solve this.

I appreciate you help anyway! :)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,943
Messages
5,856,432
Members
431,813
Latest member
seconduser

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
Top