Auto Numbering in excel

Snowmanx812

New Member
Joined
Jun 8, 2024
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Example.xlsx
BCD
2
31.00<MAIN HEADING
41.01Blah blah blah
51.02Blah blah blah
61.03Blah blah blah
71.04Blah blah blah
81.05Blah blah blah
91.06Blah blah blah
10
112.00<Sub Heading
122.01Blah blah blah
132.02Blah blah blah
142.03Blah blah blah
152.04Blah blah blah
162.05Blah blah blah
172.06Blah blah blah
18
193.00<Sub Heading
203.01Blah blah blah
213.02Blah blah blah
223.03Blah blah blah
233.04Blah blah blah
243.05Blah blah blah
253.06Blah blah blah
26
Sheet1
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I would like a formula in column B (possibly a multi IF statement?) that will change the major numbering i.e. from 1.00 to 2.00 etc.. when there is a new sub-heading.
I accept that this might need another command to identify a sub heading so have suggested a "<" in column C, which i could manually insert?
also the auto numbering would ignore blanks & only insert 1.01, 1.02 etc.. when there is text in column D
 
Upvote 0
Place this formula in cell B3 and copy down for all your data rows:
Excel Formula:
=IF(D3="","",IF(D2<>"",B2+0.01,B1+1))

And be sure to format column B as a Number with 2 decimal places.
 
Upvote 0
Try this:

Book1
ABCD
1
2
31<MAIN HEADING
41.01Blah blah blah
51.02Blah blah blah
61.03Blah blah blah
71.04Blah blah blah
81.05Blah blah blah
91.06Blah blah blah
10 
112<Sub Heading
122.01Blah blah blah
132.02Blah blah blah
142.03Blah blah blah
152.04Blah blah blah
162.05Blah blah blah
172.06Blah blah blah
18 
193<Sub Heading
203.01Blah blah blah
213.02Blah blah blah
223.03Blah blah blah
233.04Blah blah blah
243.05Blah blah blah
253.06Blah blah blah
Sheet1
Cell Formulas
RangeFormula
B3:B25B3=IF(D3="","",IF(C3<>"",COUNTIF($C$3:C3,"<>"),B2+0.01))
 
Upvote 0
Solution
Whoops, I had a small typo in my original formula.
Here is the updated version:
Excel Formula:
=IF(D3="","",IF(D2<>"",B2+0.01,INT(B1+1)))

1718801194988.png
 
Upvote 0
Try this:

Book1
ABCD
1
2
31<MAIN HEADING
41.01Blah blah blah
51.02Blah blah blah
61.03Blah blah blah
71.04Blah blah blah
81.05Blah blah blah
91.06Blah blah blah
10 
112<Sub Heading
122.01Blah blah blah
132.02Blah blah blah
142.03Blah blah blah
152.04Blah blah blah
162.05Blah blah blah
172.06Blah blah blah
18 
193<Sub Heading
203.01Blah blah blah
213.02Blah blah blah
223.03Blah blah blah
233.04Blah blah blah
243.05Blah blah blah
253.06Blah blah blah
Sheet1
Cell Formulas
RangeFormula
B3:B25B3=IF(D3="","",IF(C3<>"",COUNTIF($C$3:C3,"<>"),B2+0.01))
Whoops, I had a small typo in my original formula.
Here is the updated version:
Excel Formula:
=IF(D3="","",IF(D2<>"",B2+0.01,INT(B1+1)))

View attachment 112909
Thanks Joe, you answered the question, but in some instances there are more than 1 blank, which the other members solution worked better, but appreciate your help
 
Upvote 0
Thanks Joe, you answered the question, but in some instances there are more than 1 blank, which the other members solution worked better, but appreciate your help
That's fine. I just went off the example you posted, in which there was only one blank line between sections.
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

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