copy formula - keep cell same but increment sheet numbers

  • Thread starter Thread starter Ali
  • Start date Start date
A

Ali

hi I have a sheet in a work book that is reading off approx 70 other sheets.
I am trying to copy the formula down a column for all 70, but I don't know
how to increment the sheet number. Sheets are numbered 1-70

example: C1 = "1"!$AB$9
- C2 = "2"!$AB$9
- C3 = "3"!$AB$9 so i need to drag this formula all the way
down to C70 and perhaps more. If I drag it does not increase the sheet
number. To cut and paste is taking ages as the formula columns run through
C- AA with the same problem.

How can I copy/drag the formula down that would increase sheet numbers each
time.
many thanks
-
-
-
 
Put this in C1:

=INDIRECT("'"&ROW(A1)&"'!AB9")

then copy it down to C70.

Hope this helps.

Pete
 
Yeeha.. finally got something that works.
Thanks for the help, and thanks everyone else maybe I just did not
understand your solutions.
Ali
 
Oops spoke too soon.
Everything works fine if i leave sheets as 1,2,3,4, etc then it reads fine
off A1, a2 etc
To throw a spanner in the works, sheets are set up as 1,2,3,4,5,6 etc up to 70
But as a safari runs the sheet is used, and the sheet name changes
1 might become Keith
2 might be changed to Jones
3 might be changed to Smith
And as soon as that happens I obviously lose the formula?
Any way around this?
Ali
 
You could put those sheet names in a column somewhere, eg from X1
down:

Keith
Jones
Smith

Then your formula in C1 would become:

=INDIRECT("'"&IF(X1="",ROW(A1),X1)&"'!AB9")

which can then be copied down. If you don't have a sheet name in
column X then the formula will assume that the sheet is still
numbered.

Hope this helps.

Pete
 
Back
Top