Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default International issue (Excel XP)

Hello
Let's say I wish to use a formula something like the following:
=IF(A1="DK", 10.000.000, 10,000,000)

That is, I want to have a number formatted according to Danish respectively US standard depending upon the contents of A1. Danish
standard is period as thousand separator. I wonder if it might be possible to do this by a user defined function. I am aware that I
can change the number handling in the Tools, Options, International dialog box, but then it has effect for the whole workbook. I
need to use Danish number format in one sheet of a workbook and US number format in another sheet.

Hans Knudsen




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default International issue (Excel XP)

Hans, You could frig it with a custom format for the US sheet of say

[=1000000]###\,###\,##0.00;[=1000]###\,##0.00;###0.00

I can't test it with my setup, but should work.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Hans Knudsen" wrote in message
...
Hello
Let's say I wish to use a formula something like the following:
=IF(A1="DK", 10.000.000, 10,000,000)

That is, I want to have a number formatted according to Danish

respectively US standard depending upon the contents of A1. Danish
standard is period as thousand separator. I wonder if it might be possible

to do this by a user defined function. I am aware that I
can change the number handling in the Tools, Options, International dialog

box, but then it has effect for the whole workbook. I
need to use Danish number format in one sheet of a workbook and US number

format in another sheet.

Hans Knudsen






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default International issue (Excel XP)

Bob Phillips
Thanks for your answer.
Unfortunately however - it doesn't work.
As employee in a company working in many different countries I would really like if it was possible to switch between different
country settings as regards number formatting in the formatting dialog box, but as far as I can see this is not possible.

Regards
Hans Knudsen




"Bob Phillips" skrev i en meddelelse ...
Hans, You could frig it with a custom format for the US sheet of say

[=1000000]###\,###\,##0.00;[=1000]###\,##0.00;###0.00

I can't test it with my setup, but should work.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Hans Knudsen" wrote in message
...
Hello
Let's say I wish to use a formula something like the following:
=IF(A1="DK", 10.000.000, 10,000,000)

That is, I want to have a number formatted according to Danish

respectively US standard depending upon the contents of A1. Danish
standard is period as thousand separator. I wonder if it might be possible

to do this by a user defined function. I am aware that I
can change the number handling in the Tools, Options, International dialog

box, but then it has effect for the whole workbook. I
need to use Danish number format in one sheet of a workbook and US number

format in another sheet.

Hans Knudsen








  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default International issue (Excel XP)

In what way does it not work Hans?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Hans Knudsen" wrote in message
...
Bob Phillips
Thanks for your answer.
Unfortunately however - it doesn't work.
As employee in a company working in many different countries I would

really like if it was possible to switch between different
country settings as regards number formatting in the formatting dialog

box, but as far as I can see this is not possible.

Regards
Hans Knudsen




"Bob Phillips" skrev i en meddelelse

...
Hans, You could frig it with a custom format for the US sheet of say

[=1000000]###\,###\,##0.00;[=1000]###\,##0.00;###0.00

I can't test it with my setup, but should work.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Hans Knudsen" wrote in message
...
Hello
Let's say I wish to use a formula something like the following:
=IF(A1="DK", 10.000.000, 10,000,000)

That is, I want to have a number formatted according to Danish

respectively US standard depending upon the contents of A1. Danish
standard is period as thousand separator. I wonder if it might be

possible
to do this by a user defined function. I am aware that I
can change the number handling in the Tools, Options, International

dialog
box, but then it has effect for the whole workbook. I
need to use Danish number format in one sheet of a workbook and US

number
format in another sheet.

Hans Knudsen










  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default International issue (Excel XP)

Bob
Excuse my long post.

If I take a copy of:
[=1000000]###\,###\,##0.00;[=1000]###\,##0.00;###0.00
select cell A1, press Ctrl+1 to open the Formatting dialog box, select Custom under Category and press Ctrl+V in the Type field and
then enter respectively 1000000, 1000 and 100 in cell A1 I get the following results:

,1.0,00.000
,1.000
and
100

Maybe I should explain what I amtrying to do in some more detail. I am trying to make a company chart with among other things
company name and amount of share capital for each company. In Sheet1 I use Danish language and Danish standard as regards number
formatting, and in Denmark we use . (point) as thousand separator. That is, a company with a share capital of let's say ten million
DKK I want to show as: DKK 10.000.000

Now I sometimes have to give this company chart to authorities in the US so in Sheet2 I want to set it up according to US standard -
I want the amount to appear as: DKK 10,000,000

If I press Tools, Options, International I have a check mark in the box *Use system separators* under Number handling. If I format a
cell to have thousand separator I will automatically get the . (point) and so it will be for the whole workbook. If I, in Tools,
Options, International remove the check mark in *Use system separators* and set thousand separator to comma then it works fine, but
again, now the comma will be used as thousand separator throughout the workbook.

What I would appreciate is that I could use point as thousand separator in Sheet1 and comma as thousand separator in Sheet2. If I
was the only one working on this file then it might not be a problem, but when you have to share it with other colleagues it is not
any fun having to tell them that they each time must remember to open this Tools, Options dialog and check the Number handling
settings depending on whom they are preparing the chart for.

Regards
Hans



"Bob Phillips" skrev i en meddelelse ...
In what way does it not work Hans?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Hans Knudsen" wrote in message
...
Bob Phillips
Thanks for your answer.
Unfortunately however - it doesn't work.
As employee in a company working in many different countries I would

really like if it was possible to switch between different
country settings as regards number formatting in the formatting dialog

box, but as far as I can see this is not possible.

Regards
Hans Knudsen




"Bob Phillips" skrev i en meddelelse

...
Hans, You could frig it with a custom format for the US sheet of say

[=1000000]###\,###\,##0.00;[=1000]###\,##0.00;###0.00

I can't test it with my setup, but should work.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Hans Knudsen" wrote in message
...
Hello
Let's say I wish to use a formula something like the following:
=IF(A1="DK", 10.000.000, 10,000,000)

That is, I want to have a number formatted according to Danish
respectively US standard depending upon the contents of A1. Danish
standard is period as thousand separator. I wonder if it might be

possible
to do this by a user defined function. I am aware that I
can change the number handling in the Tools, Options, International

dialog
box, but then it has effect for the whole workbook. I
need to use Danish number format in one sheet of a workbook and US

number
format in another sheet.

Hans Knudsen












Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
International number formatting in Excel 2007 Albert[_3_] Excel Discussion (Misc queries) 1 April 19th 08 01:40 PM
International Excel 4 Macro [email protected] Excel Discussion (Misc queries) 1 August 11th 06 02:59 PM
international excel issues Anders Lindén Excel Programming 10 June 20th 05 03:08 PM
International Bug in Excel Solver Michael[_40_] Excel Programming 3 June 3rd 05 03:20 PM
International number format (Excel 2000) marwan hefnawy Excel Programming 0 March 2nd 04 05:32 AM


All times are GMT +1. The time now is 03:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"