Indirect Formula to refer to a sheet

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,534
Office Version
  1. 2021
Platform
  1. Windows
I have the following formula below that returns #name?

Code:
 =[Sales_Report.2022.xls]INDIRECT("'"&G1&"'!"&C254)


G1 refers to the sheet name and C254 in the cell number on the sheet in [Sales_Report.2022.xls

I am trying to refer to the sheet name using the indirect formula but cannot get it to work

It would be appreciated if someone could kindly amend my formula
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
How about
Excel Formula:
=INDIRECT("'[Sales_Report.2022.xls]"&G1&"'!"&C254)
 
Upvote 0
Are the files you are trying to reference open in your Excel session?
 
Upvote 0
Are you trying to get the value of C254, or does C254 have a cell reference?
 
Upvote 0
In that case try
Excel Formula:
=INDIRECT("'[Sales_Report.2022.xls]"&G1&"'!C254")
 
Upvote 0
Solution
Thanks for the help. Formula works perfectly
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,206,756
Messages
6,074,758
Members
446,084
Latest member
WalmitAal

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