Indirect function

hanlon

New Member
Joined
Sep 11, 2019
Messages
2
I have a workbook with over 20 worksheets, plus a summary sheet. The summary sheet needs to grab results from each of the worksheets and the results are in the exact same cell on each worksheet. I am using the INDIRECT function to do this.
The INDIRECT function works for the first cell, but when I drag it down 20 rows on the summary sheet it does not work. It properly changes the sheet reference (A2, A3, A4) in the dragged down formula, but it populates the result from A2 (the starting sheet reference). I manually typed over A3 with A3 and then it gives me the proper result. I can’t figure out why it changes the sheet reference but does not give me the proper result.

For example: (example workbook attached)
=INDIRECT("'" & A2 & "'!B2") .... result is 2000 which is correct...then I dragged the formula down and got this formula....
=INDIRECT("'" & A3 & "'!B2") .... A2 changed to A3 but still get A2 result....correct result is 2000 but excel gives me 1000.
=INDIRECT("'" & A4 & "'!B2") .... A3 changed to A4 but still get A2 result....correct result is 3000 but excel gives me 1000.
=INDIRECT("'" & A5 & "'!B2") .... A4 changed to A5 but still get A2 result....correct result is 4000 but excel gives me 1000

Can someone explain what I am doing wrong?

Thanks
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
33,509
Office Version
365
Platform
Windows
Hi & welcome to MrExcel.
Sounds like you may have calculation set to manual.
On the formula tab select Calculation options & select Automatic
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
33,509
Office Version
365
Platform
Windows
My pleasure.
 

Forum statistics

Threads
1,085,009
Messages
5,381,186
Members
401,718
Latest member
Ereese20

Some videos you may like

This Week's Hot Topics

Top