Concatenate numbers and text while holding a custom number format.

J

jpowell111

I want to join the values of two cells with different formatting. Example:
"E3" = NPL and "O3" is a number 48.29548562458 formatted to appear 48+29.
I want to come up with "NPL_48+29" but can't seem to concatenate the cells
without losing the format. All I can get is:
"NPL_48.29548562458"
How do I get the format "##0+#0.00" to carry over?
Thanks.
 
G

Gord Dibben

=E3 &"_" & TEXT(O3,"your format")

##0+#0.00 does not return 48+29 for me but maybe you have a typo?


Gord Dibben MS Excel MVP
 
J

jpowell111

Thanks. This is so close but it places the + where the . usesd to be instead
of two places in front of it. I am working on stationing where 100' would be
1+00.00.
Is there a way to move the + over?
 
A

Ashish Mathur

Hi,

I could not understand that - could you kindly explain again with an
example. My formula should give you the answer as NPL_48+29

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com
 
J

jpowell111

Thanks for your patience.
Your formula is correct. What I need for this station is NPL_0+48.29.
If the station was 236.98 then I need it to appear as NPL_2+36.98.
In these examples the "+" relates to 100 (1+00) as a "," relates to 1000
(1,000).
Thank you again.
 
G

Gord Dibben

=E3 &"_" & TEXT(O3,"##0+#0.00")

Returns NPL_2+36.98 with 236.98 in O3

Not what your original post requested.
I want to come up with "NPL_48+29"


Gord Dibben MS Excel MVP
 
J

jpowell111

This is perfect!
You are right, I messed up the original post. Too much time burried in data.
Thank you for the help.
 
J

jpowell111

Thank you Ashish,
You nailed what I asked for in my original post, unfortulately, as Gord
pointed out to me, I messed up my request.
Thank you for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top