Concatenate Function drops Leading Zeros?

binar

Board Regular
Joined
Aug 20, 2006
Messages
71
Fellow Forum Members,
My objective is to concatenate column A with the prefix "Part #". What is making it difficult is that column A contains numbers with leading zeros that look like this:

0001
0212
0058
0022
0789
0852

Column A has the special Format known as Portugal Zipcode applied in order to generate all the leading zeros.

In cel B1, I am using this formula:
=Concatenate("Part # ",A1)

It adds the prefix "Part #" nicely, however the problem is that it drops the leading zeros from the all of the numbers in Column A generated using the zipcode format.

What is the proper way to code a Concatenate formula so that the leading zeros from Column A are not dropped when a TEXT prefix is added? Any help will be greatly appreciated. Thanks.
 
Last edited:

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Maybe ="Part # " & TEXT(A1, "0000")
 
Upvote 0
Maybe ="Part # " & TEXT(A1, "0000")

Shg,
Thanks a million! Your solution is awesome. What I find interesting is how it eliminate the need for using the special Zipcode column format. Very nice. Thanks again it works nicely.
 
Upvote 0
You're welcome, glad it worked for you.
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,813
Members
452,945
Latest member
Bib195

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