Auto Numbering

jmahlow7

New Member
Joined
Jan 23, 2016
Messages
16
How do I start auto numbering 1,2,3 ect staring at A2, but only when data is entered in the row? A2 needs to start with "1"
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
I think this formula (placed in cell A2) will do what you want...

=IF(B2 = "", "", MAX($1:1)+1)
 
Upvote 0
but only when data is entered in the row
This is rather vague, but I'll make the same assumption as WarPigl3t & Rick that this really just means look in column B on that row, not right across the whole row.

Yet another suggestion. A2, copied down

=IF(B2="","",COUNT(A$1:A1)+1)


The reason I'm making another suggestion is that, depending on your circumstances, the other suggestions may give incorrect results.

Post #2:
- If there are any blanks in the column B data, the numbering will skip.
- If subsequently any rows are added at the top of the sheet, the numbering will not start with 1

Post #3
- If there is any numerical data in column B, or any other columns to the right, incorrect numbering will almost certainly result.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,025
Messages
6,128,341
Members
449,443
Latest member
Chrissy_M

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top