Automatic Numbering

JJ in SD

Active Member
Joined
Jul 30, 2002
Messages
316
Good Evening,

In cell A12 I have =IF(ISTEXT(B12),1,"") Results in 1
In Cell A13 I have =IF(ISTEXT(B13),A12+1,"") Results in 2
In Cell A14 I have =IF(ISTEXT(B14),A13+1,"") Results in 3, Ok so far. This goes on for 100 lines.

If I delete the text from Cell B13, A13 goes blank and of course I get #VALUE! from A14 and beyond.

How do I change (if possible) the formula so B13 just goes blank and Cell A14 becomes 2 and the numbers carry on.

Thanks in advance,

JJ in SD
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Try like this in A13

=IF(ISTEXT(B13), COUNT($A$12:A12)+1, "")

copy down
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,544
Members
452,925
Latest member
duyvmex

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