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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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")
 
Upvote 0

Forum statistics

Threads
1,218,740
Messages
6,144,212
Members
450,531
Latest member
avril18

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