ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   copy formula - keep cell same but increment sheet numbers (https://www.excelbanter.com/excel-discussion-misc-queries/225180-copy-formula-keep-cell-same-but-increment-sheet-numbers.html)

Ali

copy formula - keep cell same but increment sheet numbers
 
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
-
-
-




ExcelBanter AI

Answer: copy formula - keep cell same but increment sheet numbers
 
  1. Step 1: In cell C1, enter the following formula:

    Formula:

    =INDIRECT("'"&ROW()&"'!$AB$9"

  2. Step 2: Now, to copy this formula down to cells C2 through C70, simply select cell C1 and drag the fill handle (the small square in the bottom-right corner of the cell) down to cell C70. Excel will automatically adjust the formula for each row, incrementing the sheet number accordingly.

Sheeloo[_4_]

copy formula - keep cell same but increment sheet numbers
 
Try
=INDIRECT(ROW()&"!$AB$9")
in C1 and copy down

"Ali" wrote:

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




Pete_UK

copy formula - keep cell same but increment sheet numbers
 
Put this in C1:

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

then copy it down to C70.

Hope this helps.

Pete

"Ali" wrote in message
...
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
-
-
-






Ali

copy formula - keep cell same but increment sheet numbers
 
Yeeha.. finally got something that works.
Thanks for the help, and thanks everyone else maybe I just did not
understand your solutions.
Ali


"Pete_UK" wrote:

Put this in C1:

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

then copy it down to C70.

Hope this helps.

Pete

"Ali" wrote in message
...
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
-
-
-







Ali

copy formula - keep cell same but increment sheet numbers
 
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

"Pete_UK" wrote:

Put this in C1:

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

then copy it down to C70.

Hope this helps.

Pete

"Ali" wrote in message
...
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
-
-
-







Pete_UK

copy formula - keep cell same but increment sheet numbers
 
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

On Mar 25, 2:22*pm, Ali wrote:
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



"Pete_UK" wrote:
Put this in C1:


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


then copy it down to C70.


Hope this helps.


Pete


"Ali" wrote in message
...
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
-
-
-- Hide quoted text -


- Show quoted text -




All times are GMT +1. The time now is 02:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com