ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I automatically increment worksheet number when pasting a . (https://www.excelbanter.com/excel-worksheet-functions/23057-how-do-i-automatically-increment-worksheet-number-when-pasting.html)

Mr Keldor

How do I automatically increment worksheet number when pasting a .
 
I'm using Excel 2003. I have multiple similar worksheets in a workbook. I
want to summarize data from the similar worksheets to "master" worksheet also
in the same workbook. For example I want to extract the data from cell D2
from all the similar worksheets to a column on the master worksheet. This
formula (='Sheet1 (2)'!D2) will reference the data in Cell D2 from Sheet1
(2). If I copy and paste it in into multiple column cells Excel will
automatically increment the cell identifier D3, D4, D5 etc. Is it possible
to have Excel increment the Sheet identifier Sheet1 (3), Sheet1 (4), Sheet1
(5)..etc when doing a copy/paste. Or does anyone have a better idea to
automate this task?

Max

Instead of having in say, B2: ='Sheet1 (2)'!D2

Try in B2: =INDIRECT("'Sheet1 ("&ROWS($A$1:A2)&")'!D2")
then copy B2 down

The above will return the desired incrementing
of the sheet # as you copy down
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Mr Keldor" <Mr wrote in message
...
I'm using Excel 2003. I have multiple similar worksheets in a workbook. I
want to summarize data from the similar worksheets to "master" worksheet

also
in the same workbook. For example I want to extract the data from cell D2
from all the similar worksheets to a column on the master worksheet. This
formula (='Sheet1 (2)'!D2) will reference the data in Cell D2 from Sheet1
(2). If I copy and paste it in into multiple column cells Excel will
automatically increment the cell identifier D3, D4, D5 etc. Is it possible
to have Excel increment the Sheet identifier Sheet1 (3), Sheet1 (4),

Sheet1
(5)..etc when doing a copy/paste. Or does anyone have a better idea to
automate this task?





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

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