ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   consecutive numbering on multiple worksheets (https://www.excelbanter.com/excel-discussion-misc-queries/194949-consecutive-numbering-multiple-worksheets.html)

s6292

consecutive numbering on multiple worksheets
 
what if I have multiple sheets in a workbook and I want a number in a cell to
increase by 1 consecutively on each worksheet?



Gary''s Student

consecutive numbering on multiple worksheets
 
In Sheet1 A1 enter:
1
In Sheet2 A1 enter:
=Sheet1!A1+1

and continue with the remaining sheets.
--
Gary''s Student - gsnu200795


"s6292" wrote:

what if I have multiple sheets in a workbook and I want a number in a cell to
increase by 1 consecutively on each worksheet?



bj

consecutive numbering on multiple worksheets
 
try a user defined function

Function sht()
sht = ActiveSheet.Index
End Function

you can add a value if you want to start with something other than 1 at
sheet 1

"s6292" wrote:

what if I have multiple sheets in a workbook and I want a number in a cell to
increase by 1 consecutively on each worksheet?




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

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