Sequential Auto Numbering

Snowmanx812

New Member
Joined
Jun 8, 2024
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi, i am looking for Sequential Auto Numbering for a document i am creating.
I need the auto numbering to jump up a number at each MAIN HEADING,
I don't know if this helps & it isn't necessary, but as a constant identifier have shown:
MAIN HEADERS with a "<<"
& Sub Header with a "<"
there will be a different number of sub headers & empty rows.
Hope someone can help & thanks for looking.


Example 1.xlsx
ABCD
1
2
31.00<< MAIN HEADING
4Blah blah blah
5Blah blah blah
6Blah blah blah
7Blah blah blah
8Blah blah blah
9
10
111.01< Sub Heading
12Blah blah blah
13Blah blah blah
14
15Blah blah blah
16Blah blah blah
17
181.02< Sub Heading
19Blah blah blah
20
21Blah blah blah
22Blah blah blah
23Blah blah blah
24
25
262.00<< MAIN HEADING
27Blah blah blah
28Blah blah blah
29Blah blah blah
30
31
32
332.01< Sub Heading
34Blah blah blah
35Blah blah blah
36Blah blah blah
37Blah blah blah
38
39
402.02< Sub Heading
41Blah blah blah
42Blah blah blah
43Blah blah blah
44Blah blah blah
45Blah blah blah
46Blah blah blah
47
48
Sheet1
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Place this formula in cell B3 and copy down for all rows:
Excel Formula:
=IF(LEFT(C3,2)="<<",INT(MAX(B$1:B2))+1,IF(LEFT(C3,1)="<",MAX(B$1:B2)+0.01,""))

Proof of concept:
1719345120979.png
 
Upvote 1
Solution
I'm not crazy about this:

MrExcelPlayground23.xlsx
ABC
1
2
31<< MAIN HEADING
4 Blah blah blah
5 Blah blah blah
6 Blah blah blah
7 Blah blah blah
8 Blah blah blah
9 
10 
111.01< Sub Heading
12 Blah blah blah
13 Blah blah blah
14 
15 Blah blah blah
16 Blah blah blah
17 
181.02< Sub Heading
19 Blah blah blah
20 
21 Blah blah blah
22 Blah blah blah
23 Blah blah blah
24 
25 
262<< MAIN HEADING
27 Blah blah blah
28 Blah blah blah
29 Blah blah blah
30 
31 
32 
332.01< Sub Heading
34 Blah blah blah
35 Blah blah blah
36 Blah blah blah
37 Blah blah blah
38 
39 
402.02< Sub Heading
41 Blah blah blah
42 Blah blah blah
43 Blah blah blah
44 Blah blah blah
45 Blah blah blah
46 Blah blah blah
Sheet8
Cell Formulas
RangeFormula
B3:B46B3=IF(LEFT(C3,2)="<<",INT(MAX(B$2:B2))+1,IF(LEFT(C3,2)="< ",MAX(B$2:B2)+0.01,""))
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,595
Members
452,657
Latest member
giadungthienduyen

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