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
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi & welcome to MrExcel.
Sounds like you may have calculation set to manual.
On the formula tab select Calculation options & select Automatic
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,150
Members
453,021
Latest member
Justyna P

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