ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Format Currency (https://www.excelbanter.com/excel-discussion-misc-queries/54761-format-currency.html)

Send Object Command - Two attachments

Format Currency
 
I have a table that contains values that are in a very unique format. The
decimal and comma are incorrect...(Pls don't ask why, file is from Europe...)
The decimal should be a comma and vice versa.
Anyway, I need to know how to format (in a query) in such a way that if
reflects correct currency.

See example:

Currently: Should Look Like:
2.301,44 $2,301.44
2.094,75 $2,094.75
44,72 $44.72
54,32 $54.32
15,96 $15.96
785,63 $785.63
2.356,89 $2,356.89
174,72 $174.72

Can anyone help?
Thanks -

Dave Peterson

Format Currency
 
I would try this:

Select the range to fix
edit|replace
what: . (dot)
with: x
replace all

Then edit|replace once more
what: , (comma)
with: . (dot)
replace all

then finally one more edit|replace
what: x
with: (leave blank)
replace all

Then format the cells the way you want.


Send Object Command - Two attachments wrote:

I have a table that contains values that are in a very unique format. The
decimal and comma are incorrect...(Pls don't ask why, file is from Europe...)
The decimal should be a comma and vice versa.
Anyway, I need to know how to format (in a query) in such a way that if
reflects correct currency.

See example:

Currently: Should Look Like:
2.301,44 $2,301.44
2.094,75 $2,094.75
44,72 $44.72
54,32 $54.32
15,96 $15.96
785,63 $785.63
2.356,89 $2,356.89
174,72 $174.72

Can anyone help?
Thanks -


--

Dave Peterson


All times are GMT +1. The time now is 12:43 PM.

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