ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I do numbering of rows in Excel when there are blank rows? (https://www.excelbanter.com/excel-discussion-misc-queries/81129-how-do-i-do-numbering-rows-excel-when-there-blank-rows.html)

V

How do I do numbering of rows in Excel when there are blank rows?
 
I want sequential numbering, however, the content contains blank rows. Plus
every time I add a row e.g. in the middle, then I have to re-number the rest
of the list. Is there a quicker way to do this?

Bob Phillips

How do I do numbering of rows in Excel when there are blank rows?
 
In B1: =IF(A1<"",1,"")
B2: =IF(A2<"",MAX($B$1:OFFSET(B2,-1,0))+1,"")

and copy B2 down

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"V" wrote in message
...
I want sequential numbering, however, the content contains blank rows.

Plus
every time I add a row e.g. in the middle, then I have to re-number the

rest
of the list. Is there a quicker way to do this?





All times are GMT +1. The time now is 04:53 AM.

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