concatenate number and text and keep formatting (regional compliant) without vba

mvee

New Member
Joined
Jan 16, 2012
Messages
1
I am using a custom app to export data from asp.net/silverlight to excel using an xslt mapping - the requirement is that the dates and numbers must be formatted to the client's regional settings. This works great! Except that I have a need to concatenate 2 hidden fields into one visible field. One is a number/currency formatted with 2 decimal places (keep in mind, different cultures use different decimal formatting - sometimes a . sometimes a , etc), the other is the currency code (e.g. USD, GBP, etc). It works to concatenate (e.g. =CONCATENATE(P7," ", Q7)), but it drops the 0 decimal places which I want to keep for formatting. I cannot figure out how to do this using a forumla and keep the regional number format (e.g. this does not work =CONCATENATE(TEXT(P7,"#####0.00")," "; Q7) for some regions). I cannot use VBA (another requirement). Any ideas?

Much appreciated!
-M
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,214,981
Messages
6,122,566
Members
449,089
Latest member
Motoracer88

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