CONCATENATE with a "0" in front.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,444
Office Version
  1. 2007
Platform
  1. Windows
Capture36.PNG


Hi,
I'm wondering if my CONCATENATE formula could be modified to return a number of 8 digits each time, it need when it is a single digit to return it with a "0" in front.
Thank you.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
How about
Excel Formula:
=TEXT(B3,"00")&TEXT(C3,"00")&TEXT(D3,"00")&TEXT(E3,"00")
 
Upvote 0
Thank you Fluff it works fine, that was so fast.
I need it as a Number, I add *1 at the end of your formula but it still a text, how can it become a number return ?
 
Upvote 0
How about
Excel Formula:
=--(TEXT(B3,"00")&TEXT(C3,"00")&TEXT(D3,"00")&TEXT(E3,"00"))
 
Upvote 0
Thank you so MUCH Fluff and Scott Huish you guys are are so talented I wish I had your knowledge, Thank you.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
I like that. Does that work with XL2007, like the OP has or would you need SUMPRODUCT?
=SUMPRODUCT(B3:E3,10^{6,4,2,0})
Hmm! I must have screwed up! I thought I edited my reply a while ago to add that very notice. Apparently, I forget to physically post it.:( What I had wanted to post was this...

"I don't have XL2007 so I cannot test the above formula, but the OP might have to array-enter it (using CTRL+SHIFT+ENTER) or he might be able to normally enter it by replacing the SUM function with a SUMPRODUCT function. Again, I cannot test it myself."
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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