Cell Format Removes Zeros from 00.00.00

jewkes6000

Board Regular
Joined
Mar 25, 2020
Messages
60
Office Version
  1. 365
Platform
  1. Windows
I am trying to create a WBS which has the format of 00.00.00. I am trying to concatenate three columns with a period in between each 2 digit number. I'm using the formula =L2&"."&M2&"."&N2 in cell O2 (see attached image), but it will remove the zeros after the first period. So if I try to concatenate 00 05 00 with periods as in row 3 in my image, it will read 00.5.0 rather than 00.05.00. Can anyone help me with this please?

1648250617586.png
 

Attachments

  • 1648250575171.png
    1648250575171.png
    3.2 KB · Views: 18

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi,

Are those values in your M and N column Text values, or Numbers formatted to show a leading 0 (zero) ?
Because if they're Text, you shouldn't have that problem.
 
Upvote 0
Well, no reply, so if those are numbers formatted to show leading zero, use O2 formula copied down:

Book3.xlsx
LMNO
1NumberNumber
200000000.00.00
300050000.05.00
400051000.05.10
500052000.05.20
600053000.05.30
7
8
9TextText
1000000000.00.00
1100050000.05.00
1200051000.05.10
1300052000.05.20
1400053000.05.30
Sheet1072
Cell Formulas
RangeFormula
O2:O6O2=L2&"."&TEXT(M2,"00")&"."&TEXT(N2,"00")
O10:O14O10=L10&"."&M10&"."&N10
 
Upvote 0
Solution
You're welcome, thanks for the feedback.

If my O2 formula (with Text function) works on your data, but Not the O10 formula, then your values are Numbers, not Text.
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,340
Members
452,637
Latest member
Ezio2866

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