How to insert numbers in a column (between blank rows)

rudolphrc

New Member
Joined
Mar 17, 2013
Messages
27
I have an excel document with 8000 + rows with 23 columns and desire to populate the UID column with a number with everything associatedwith that item (between row breaks). What formula can I use to populate the UID column automatically insequential order?(I’ve populated thedata shown below).

Column 1 UID, Column 2 ser #, Column 3 Item

[TABLE="width: 372"]
<tbody>[TR]
[TD="width: 100"]UID #

[/TD]
[TD="width: 93"]PKG_ID

[/TD]
[TD="width: 303"]DESCRIPTION

[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]1
[/TD]
[TD="width: 93, bgcolor: transparent"]BOXRBATTERY
[/TD]
[TD="width: 303, bgcolor: transparent"]BATTERY STORAGE RM
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]1
[/TD]
[TD="width: 93, bgcolor: transparent"]C115529117
[/TD]
[TD="width: 303, bgcolor: transparent"]BATTERY (K)

[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]1
[/TD]
[TD="width: 93, bgcolor: transparent"]C082732718
[/TD]
[TD="width: 303, bgcolor: transparent"]BATTERY (4)
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]1
[/TD]
[TD="width: 93, bgcolor: transparent"]C115529133
[/TD]
[TD="width: 303, bgcolor: transparent"]BATTERY (B)
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]1
[/TD]
[TD="width: 93, bgcolor: transparent"]C115529164
[/TD]
[TD="width: 303, bgcolor: transparent"]BATTERY (3)
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"][/TD]
[TD="width: 93, bgcolor: transparent"][/TD]
[TD="width: 303, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]2
[/TD]
[TD="width: 93, bgcolor: transparent"]9480968
[/TD]
[TD="width: 303, bgcolor: transparent"]TRUCK
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]2
[/TD]
[TD="width: 93, bgcolor: transparent"]PO9480968
[/TD]
[TD="width: 303, bgcolor: transparent"]RADIO
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"][/TD]
[TD="width: 93, bgcolor: transparent"][/TD]
[TD="width: 303, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]3
[/TD]
[TD="width: 93, bgcolor: transparent"]9480967
[/TD]
[TD="width: 303, bgcolor: transparent"]TRUCK,UTILITY
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]3
[/TD]
[TD="width: 93, bgcolor: transparent"]PO9480967
[/TD]
[TD="width: 303, bgcolor: transparent"]RADIO
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"][/TD]
[TD="width: 93, bgcolor: transparent"][/TD]
[TD="width: 303, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]4
[/TD]
[TD="width: 93, bgcolor: transparent"]9480965
[/TD]
[TD="width: 303, bgcolor: transparent"]TRUCK
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]4
[/TD]
[TD="width: 93, bgcolor: transparent"]PO9480965
[/TD]
[TD="width: 303, bgcolor: transparent"]RADIO
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]4
[/TD]
[TD="width: 93, bgcolor: transparent"]5127431
[/TD]
[TD="width: 303, bgcolor: transparent"]FLOODLIGHT
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]4
[/TD]
[TD="width: 93, bgcolor: transparent"]5127809
[/TD]
[TD="width: 303, bgcolor: transparent"]GENERATOR
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"][/TD]
[TD="width: 93, bgcolor: transparent"][/TD]
[TD="width: 303, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]5
[/TD]
[TD="width: 93, bgcolor: transparent"]9480963
[/TD]
[TD="width: 303, bgcolor: transparent"]TRUCK
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]5
[/TD]
[TD="width: 93, bgcolor: transparent"]PO9480963
[/TD]
[TD="width: 303, bgcolor: transparent"]RADIO
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"][/TD]
[TD="width: 93, bgcolor: transparent"][/TD]
[TD="width: 303, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]6
[/TD]
[TD="width: 93, bgcolor: transparent"]3460954
[/TD]
[TD="width: 303, bgcolor: transparent"]TRUCK
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]6
[/TD]
[TD="width: 93, bgcolor: transparent"]PO9480954
[/TD]
[TD="width: 303, bgcolor: transparent"]RADIO
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]6
[/TD]
[TD="width: 93, bgcolor: transparent"]9504639

[/TD]
[TD="width: 303, bgcolor: transparent"]CLEANER,STEAM
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"][/TD]
[TD="width: 93, bgcolor: transparent"][/TD]
[TD="width: 303, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]7
[/TD]
[TD="width: 93, bgcolor: transparent"]6770953
[/TD]
[TD="width: 303, bgcolor: transparent"]TRUCK
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]7
[/TD]
[TD="width: 93, bgcolor: transparent"]PO9480953
[/TD]
[TD="width: 303, bgcolor: transparent"]RADIO
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]7
[/TD]
[TD="width: 93, bgcolor: transparent"]5126126
[/TD]
[TD="width: 303, bgcolor: transparent"]FLOODLIGHT
[/TD]
[/TR]
[TR]
[TD="width: 100, bgcolor: transparent"]7
[/TD]
[TD="width: 93, bgcolor: transparent"]5127159
[/TD]
[TD="width: 303, bgcolor: transparent"]GENERATOR

[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
In the data I provided there is a header row and the first data field would be (A2) which I have populate the number 1 requesting after every blank row then the number would be (2) etc...... in the data set here the blank rows are (A7), (A10) etc....
 
Upvote 0
Hi,

Based on your sample, formula in A2 copied down:


Book1
ABC
1UIDser #Item
21BOXRBATTERYBATTERY STORAGE RM
31C115529117BATTERY (K)
41C082732718BATTERY (4)
51C115529133BATTERY (B)
61C115529164BATTERY (3)
7
829480968TRUCK
92PO9480968RADIO
10
1139480967TRUCK,UTILITY
123PO9480967RADIO
13
1449480965TRUCK
154PO9480965RADIO
1645127431FLOODLIGHT
1745127809GENERATOR
18
1959480963TRUCK
205PO9480963RADIO
21
2263460954TRUCK
236PO9480954RADIO
2469504639CLEANER,STEAM
25
2676770953TRUCK
277PO9480953RADIO
2875126126FLOODLIGHT
2975127159GENERATOR
Sheet545
Cell Formulas
RangeFormula
A2=IF(B2="","",IF(N(A1),A1,MAX(A$1:A1)+1))
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

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