HELP! How to Use Concatenate Formula with Leading Zeros??

LionBear

New Member
Joined
Feb 7, 2012
Messages
7
Hi All - I hope someone can help me with this!

I am using the following formula: =CONCATENATE($Page.$B$6;$'Data'.C9;$Page.$B$7)

In the 'Data' range, i have some values with leading zeros. When using the concatenate formula, these leading zeros do not follow through. For example, I get the following:

http://www.site.com/cat/prod/part=70/501

when I want this (note the two leading zeros in 0070):

http://www.site.com/cat/prod/part=0070/501

How can I make this work?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Your page references are strange. Are you using Excel or Open Office?


In General though,

if you have a 4 digit number that may include leading zeros, put it in the TEXT function

i.e.

=TEXT(A1,"0000")
 
Upvote 0
Yes, I am using open office. Unfortunately I don't have access to excel :(

The 'Page" and 'Data' portions of the formula are referencing different sheets that contain data. How would I include the TEXT part of the formula in my current formula?
 
Upvote 0
=CONCATENATE($Page.$B$6;TEXT($'Data'.C9;"0000");$Page.$B$7)

Not sure of Open Office syntax, but something like that.
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,243
Members
449,075
Latest member
staticfluids

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