View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stian
 
Posts: n/a
Default Very weird error

The following code is working for everyone but me:

=IF(MOD((i_LoadHeavy*2),3)0,
TEXT((i_LoadHeavy*2)/3,"###.#"),(i_LoadHeavy*2)/3)

This code is part of a worksheet used by many and developed by some guy on
the internet. When I try to load this worksheet into my Excel 2003 I get
complaints from the program.

On the codeline above, the program says the comma in the MOD function is
wrong and that the commas in the TEXT function is wrong. If the commas are
replaced by a semicolon it works fine. This, even though the help files say a
comma is perfectly fine.

The program also complains about the format: "###.#" for the TEXT function.
If I replace the dot with a comma it works.

Why does this line of code work for every other use of this worksheet but
not for me? Why are my functions seemingly different from others?

I have removed and reinstalled Office, but to no avail.
I am using Windows XP and Office 2003.

Any ideas?