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
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