Add Zeros to make all digits in to 7 numbers

motilulla

Well-known Member
Joined
Feb 13, 2008
Messages
2,362
Office Version
  1. 2010
Hello,

I am using formula which groups number in 1000 range as you see it gives me result in range C2 to C15

I wand to get result adding zeros before to complete number both side in to 7 digits as demonstrate in range C19 To C32 Or any alternate solution


Book1
ABC
1Seriol NFrom - To
2401 - 1000
31.1121001 - 2000
41.1551001 - 2000
53.5003001 - 4000
63.9003001 - 4000
720.90020001 - 21000
870.80070001 - 71000
9102.000101001 - 102000
10185.000184001 - 185000
11245.000244001 - 245000
12980.000979001 - 980000
131.000.000999001 - 1000000
141.000.9001000001 - 1001000
151.019.9001019001 - 1020000
16
17ResultRequireThis
18Seriol NFrom - To
19400000001 - 0001000
201.1120001001 - 0002000
211.1550001001 - 0002000
223.5000003001 - 0004000
233.9000003001 - 0004000
2420.9000020001 - 0021000
2570.8000070001 - 0071000
26102.0000101001 - 0102000
27185.0000184001 - 0185000
28245.0000244001 - 0245000
29980.0000979001 - 0980000
301.000.0000999001 - 1000000
311.000.9001000001 - 1001000
321.019.9001019001 - 1020000
Hoja1
Cell Formulas
RangeFormula
C2=INT((A2-1)/1000)*1000+1 & " - " & INT(((A2-1)/1000)+1)*1000


Thank you all

Excel 2000
Regards,
Moti
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try

=TEXT(INT((A2-1)/1000)*1000+1,"0000000") & " - " & TEXT(INT(((A2-1)/1000)+1)*1000,"0000000")
 
Upvote 0
Solution

Forum statistics

Threads
1,215,196
Messages
6,123,578
Members
449,108
Latest member
rache47

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