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

UID #

PKG_ID

DESCRIPTION

1
BOXRBATTERY
BATTERY STORAGE RM
1
C115529117
BATTERY (K)

1
C082732718
BATTERY (4)
1
C115529133
BATTERY (B)
1
C115529164
BATTERY (3)
2
9480968
TRUCK
2
PO9480968
RADIO
3
9480967
TRUCK,UTILITY
3
PO9480967
RADIO
4
9480965
TRUCK
4
PO9480965
RADIO
4
5127431
FLOODLIGHT
4
5127809
GENERATOR
5
9480963
TRUCK
5
PO9480963
RADIO
6
3460954
TRUCK
6
PO9480954
RADIO
6
9504639

CLEANER,STEAM
7
6770953
TRUCK
7
PO9480953
RADIO
7
5126126
FLOODLIGHT
7
5127159
GENERATOR


<tbody>
</tbody>
 
Last edited:

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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,215,375
Messages
6,124,576
Members
449,174
Latest member
chandan4057

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