Use different sheet names as part of a formula (indirect function?)

neuneph

New Member
Joined
Mar 1, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi,
I have a workbook with several sheets, which all have data in the same format but with different numbers.

I am trying to create a summary sheet, which pulls the data from each individual workbook and lists it.
As VBAs are disabled and I have never created a macro before, I am trying to solve it with a formula.

The idea is to create an overview like this where I input the different Sheet Names (Column A) and all the columns next to it get updated automatically with the sheet name.
1709291846751.png


This is the functioning formula in Cell B3: ='Dreamies 60g KW 29'!A$5
In Cell B2 I tried to use an indirect function but it returns a REF error: =INDIRECT(A2&"!A$5";TRUE)

Is there a way to fix the indirect formula so that it works just like the one in Cell B3?

Thanks a lot for your help!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
If the sheet name has a space in it, it needs to be wrapped in single quotes. precede the cell reference with a Exclamation Point.
so cell B4 in Sheet5 is Sheet5!B4,
cell B4 is Sheet Five is 'Sheet Five'!B4
Use the $ sign as appropriate for your absolute references.

So in your question try this;
=INDIRECT("'" & A2 &"'!A$5")

But a better way to do your task may be to use Power Query. Here is a video on it:

 
Upvote 1
Solution

Forum statistics

Threads
1,223,884
Messages
6,175,177
Members
452,615
Latest member
bogeys2birdies

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