ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Combine cells with text formatting (https://www.excelbanter.com/excel-worksheet-functions/131795-combine-cells-text-formatting.html)

o1darcie1o

Combine cells with text formatting
 
I have a cell with numbers. I need them to be 4 digits long, so they're
formatted as custom, using 0000 as the custom format (the numbers have
leading 0's).
Now I'm trying to combine this cell with another cell, but it won't keep the
leading 0's, no matter what I change the format of the destination cell to.
I'm just using =y2&z2, & I tried using =concantenate but neither are working.
Is there a way to do this?
Thanks in advance!

Ron Rosenfeld

Combine cells with text formatting
 
On Wed, 21 Feb 2007 17:03:21 -0800, o1darcie1o
wrote:

I have a cell with numbers. I need them to be 4 digits long, so they're
formatted as custom, using 0000 as the custom format (the numbers have
leading 0's).
Now I'm trying to combine this cell with another cell, but it won't keep the
leading 0's, no matter what I change the format of the destination cell to.
I'm just using =y2&z2, & I tried using =concantenate but neither are working.
Is there a way to do this?
Thanks in advance!


=TEXT(Y2,"0000")&TEXT(Z2,"0000")

--ron

o1darcie1o

Combine cells with text formatting
 
PERFECT!!!!
Thank you sooooo much!!!!

"Ron Rosenfeld" wrote:

On Wed, 21 Feb 2007 17:03:21 -0800, o1darcie1o
wrote:

I have a cell with numbers. I need them to be 4 digits long, so they're
formatted as custom, using 0000 as the custom format (the numbers have
leading 0's).
Now I'm trying to combine this cell with another cell, but it won't keep the
leading 0's, no matter what I change the format of the destination cell to.
I'm just using =y2&z2, & I tried using =concantenate but neither are working.
Is there a way to do this?
Thanks in advance!


=TEXT(Y2,"0000")&TEXT(Z2,"0000")

--ron


Ron Rosenfeld

Combine cells with text formatting
 
On Wed, 21 Feb 2007 17:16:00 -0800, o1darcie1o
wrote:

PERFECT!!!!
Thank you sooooo much!!!!

"Ron Rosenfeld" wrote:

On Wed, 21 Feb 2007 17:03:21 -0800, o1darcie1o
wrote:

I have a cell with numbers. I need them to be 4 digits long, so they're
formatted as custom, using 0000 as the custom format (the numbers have
leading 0's).
Now I'm trying to combine this cell with another cell, but it won't keep the
leading 0's, no matter what I change the format of the destination cell to.
I'm just using =y2&z2, & I tried using =concantenate but neither are working.
Is there a way to do this?
Thanks in advance!


=TEXT(Y2,"0000")&TEXT(Z2,"0000")

--ron


You're welcome. Glad to help.

--ron


All times are GMT +1. The time now is 02:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com