Fill Series Number in Keep 5 Digits

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,081
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all...

how to make fill series like this :

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]LPK-00008/1/1/WKN.03/KNL.03/01.00/2018[/TD]
[/TR]
[TR]
[TD]LPK-00009/1/1/WKN.03/KNL.03/01.00/2018[/TD]
[/TR]
[TR]
[TD]LPK-00010/1/1/WKN.03/KNL.03/01.00/2018[/TD]
[/TR]
[TR]
[TD]etc...[/TD]
[/TR]
[TR]
[TD]LPK-00125/1/1/WKN.03/KNL.03/01.00/2018[/TD]
[/TR]
</tbody>[/TABLE]

my goal in red font..always keep 5 digits number..

any help much appreciated...

m.susanto
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
muhamma susanto, Good afternoon.

"...but why use Row combine?..."

Using the ROW() function is a trick to generating an automatic numerator for when the formula is copied down.

In this case ROW()+7 is due to your first example that shows the number 00008.
Then in this case, the formula must be pasted on line 1 of the worksheet to start the numbering in 00008.

You can also start numbering in the number you decide and put the formula initially where you want.

Just use ROW(A1) or ROW(A8).

In this case the numbering will obey what is within the parenthesis.

The letter of the column makes no difference at all.
If you prefer you can use ROW(M1) or ROW(S8)

I hope I've helped clarify this little doubt.

Have a nice day!
 
Upvote 0
Copy the first item into cell A1, then copy the formula in A2 and copy down:

Excel Workbook
A
1LPK-00008/1/1/WKN.03/KNL.03/01.00/2018
2LPK-00009/1/1/WKN.03/KNL.03/01.00/2018
3LPK-00010/1/1/WKN.03/KNL.03/01.00/2018
4LPK-00011/1/1/WKN.03/KNL.03/01.00/2018
5LPK-00012/1/1/WKN.03/KNL.03/01.00/2018
6LPK-00013/1/1/WKN.03/KNL.03/01.00/2018
7LPK-00014/1/1/WKN.03/KNL.03/01.00/2018
8LPK-00015/1/1/WKN.03/KNL.03/01.00/2018
9LPK-00016/1/1/WKN.03/KNL.03/01.00/2018
10LPK-00017/1/1/WKN.03/KNL.03/01.00/2018
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,703
Messages
6,173,977
Members
452,540
Latest member
haasro02

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