TEXT function

mcs51mc

New Member
Joined
Nov 16, 2005
Messages
22
Why is =B15 & " / " &TEXT(C7;"PA-00-000") working
and =B15 & " / " &TEXT(C7;"PS-00-000") not??

I want to concatenate to contents of cell B15 with the formatted contents of cell C7.
If B15 contains "ABC" and C7 contains the number 25 I need to see "ABC / PS-00-025" in the cell with the formula.

Thanks a lot for any reaction... ...
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

AgentSmith

Well-known Member
Joined
Mar 8, 2004
Messages
575
Why not just put the "PS" bit in directly?
=B15 & " / PS-" &TEXT(C7;"00-000")
 

mcs51mc

New Member
Joined
Nov 16, 2005
Messages
22
Because I never thought that way :oops:

It works, that's all I need, thanks a lot AgentSmith
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
mcs51mc said:
Why is =B15 & " / " &TEXT(C7;"PA-00-000") working
and =B15 & " / " &TEXT(C7;"PS-00-000") not??

because if you have S in the format excel treats that as "seconds", use AgentSmith's suggestion or amend to

B15 & " / " &TEXT(C7;"P\S-00-000")
 

mcs51mc

New Member
Joined
Nov 16, 2005
Messages
22
That's what I looked for "\" but didn't found until now().
Thanks a lot guys
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,802
Messages
5,833,751
Members
430,229
Latest member
TestableEmu263

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
Top