Rijnsent
Well-known Member
- Joined
- Oct 17, 2005
- Messages
- 1,485
- Office Version
- 365
- Platform
- Windows
In my Excel model I'm using some TEXT functions to format certain elements so they get wrapped in a text string. Currently I'm trying to build something that also works in various localizations and start noticing that the format string differs massively between countries/localizations. I'm using it e.g. as:
=TEXT(A1,my.NumberFormat1)
=TEXT(A2,my.NumberFormat2)
=TEXT(A3,my.DateFormat1)
=TEXT(A4,my.DateFormat2)
An example goal is a text/string in a cell: "This value is built up as € 3.000 + € 125 equals 15,5%", where I'm using the formatting for all numbers (so building up the string like so: =B1&C1&D1 - where D1 refers to such a TEXT function). For those formats I have some named ranges (my.NumberFormat1 etc.).
Some examples of formatting I'm using (to input in the TEXT function):
\€ #.0 \m\i\l
0%
0,0
What I'm now bumping into is localized settings: it's quite hard to pick up local number (or date) formats and process them into a text string - with an Estonian client the TEXT function is throwing a #VALUE as my formatting string doesn't work over there. Is there here somebody with some good examples on how to do that/good insights on how to approach this?
=TEXT(A1,my.NumberFormat1)
=TEXT(A2,my.NumberFormat2)
=TEXT(A3,my.DateFormat1)
=TEXT(A4,my.DateFormat2)
An example goal is a text/string in a cell: "This value is built up as € 3.000 + € 125 equals 15,5%", where I'm using the formatting for all numbers (so building up the string like so: =B1&C1&D1 - where D1 refers to such a TEXT function). For those formats I have some named ranges (my.NumberFormat1 etc.).
Some examples of formatting I'm using (to input in the TEXT function):
\€ #.0 \m\i\l
0%
0,0
What I'm now bumping into is localized settings: it's quite hard to pick up local number (or date) formats and process them into a text string - with an Estonian client the TEXT function is throwing a #VALUE as my formatting string doesn't work over there. Is there here somebody with some good examples on how to do that/good insights on how to approach this?