ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Use commas as decimal separator (https://www.excelbanter.com/excel-discussion-misc-queries/235932-use-commas-decimal-separator.html)

Edwin

Use commas as decimal separator
 
Hi,

Im trying to change the decimal separator from a point to a comma (i.e.
200,50 instead of 200.50), but I need some type of function to do this since
Im trying to create a €śsentence€ť from various cells; here is a simplify
example of what Im trying to do:

1 A B
2 10K 200.50

= A2&€ś €ť&B2

The result I get is: 10K 200.50

The result I would like to get is: 10K 200,50

I am aware of the €śToolsOptionsInternational tab€ť to change the decimal
separator of the document, but Im dealing with both, English and Metric
units in the same document; therefore I need to use both separators (points
and commas).

Any help will be greatly appreciated.

--
Edwin

Rick Rothstein

Use commas as decimal separator
 
Give this a try...

= A2&" "&SUBSTITUTE(TEXT(B2,"0.00"),".",",")

--
Rick (MVP - Excel)


"Edwin" wrote in message
...
Hi,

Im trying to change the decimal separator from a point to a comma (i.e.
200,50 instead of 200.50), but I need some type of function to do this
since
Im trying to create a €śsentence€ť from various cells; here is a simplify
example of what Im trying to do:

1 A B
2 10K 200.50

= A2&€ś €ť&B2

The result I get is: 10K 200.50

The result I would like to get is: 10K 200,50

I am aware of the €śToolsOptionsInternational tab€ť to change the decimal
separator of the document, but Im dealing with both, English and Metric
units in the same document; therefore I need to use both separators
(points
and commas).

Any help will be greatly appreciated.

--
Edwin



Edwin

Use commas as decimal separator
 
Wow! This is just what I needed! Thanks a lot Rick!!
--
Edwin


"Rick Rothstein" wrote:

Give this a try...

= A2&" "&SUBSTITUTE(TEXT(B2,"0.00"),".",",")

--
Rick (MVP - Excel)


"Edwin" wrote in message
...
Hi,

Im trying to change the decimal separator from a point to a comma (i.e.
200,50 instead of 200.50), but I need some type of function to do this
since
Im trying to create a €śsentence€ť from various cells; here is a simplify
example of what Im trying to do:

1 A B
2 10K 200.50

= A2&€ś €ť&B2

The result I get is: 10K 200.50

The result I would like to get is: 10K 200,50

I am aware of the €śToolsOptionsInternational tab€ť to change the decimal
separator of the document, but Im dealing with both, English and Metric
units in the same document; therefore I need to use both separators
(points
and commas).

Any help will be greatly appreciated.

--
Edwin





All times are GMT +1. The time now is 10:04 PM.

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