How do i Autonumber the first column by avoiding the blank space and numbered cells - AM NEW TO BXCEL. Thanks

Titus sabu

New Member
Joined
Nov 9, 2017
Messages
7
[TABLE="class: grid, width: 50, align: center"]
<tbody>[TR]
[TD]SNO[/TD]
[TD]NAME[/TD]
[TD]CONTACT[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]PUBLIC SCHOOL 1[/TD]
[TD]9855666[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]930000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]PUB SCHOOL 2[/TD]
[TD]82899633[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi Titus,

assuming your first col starts from Col A, and what i understand your numbered cells to avoid are like "930000", and you want to number off from Row 2 onwards, try input the formula below in cell A2 and drag down.

=IF(AND(NOT(ISBLANK(B2)),NOT(ISNUMBER(B2))),ROWS($B$2:$B2)-COUNTBLANK($B$2:$B2)-COUNT($B$2:$B2),"")
 
Upvote 0
Hi Titus,

assuming your first col starts from Col A, and what i understand your numbered cells to avoid are like "930000", and you want to number off from Row 2 onwards, try input the formula below in cell A2 and drag down.

=IF(AND(NOT(ISBLANK(B2)),NOT(ISNUMBER(B2))),ROWS($B$2:$B2)-COUNTBLANK($B$2:$B2)-COUNT($B$2:$B2),"")

vbanoob0807, Thank you So Much. Exactly what i needed.
 
Upvote 0
Thank you Neil, so much for This reply. It did what exactly i need. Since I am new to excel this really blew me off since it had taken hours manually.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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