A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Error #VALUE with TEXT(A1;"[HH]:mm") when changing regional settings



 
 
Thread Tools Display Modes
  #1  
Old September 15th, 2003, 08:44 AM
Thierry De Bleye
external usenet poster
 
Posts: n/a
Default Error #VALUE with TEXT(A1;"[HH]:mm") when changing regional settings

I got the answer , the danes use [TT]:mm instead of [HH]:mm

do somebody knows how to get a list of used time format
per countries ?

Regards

Thierry



-----Original Message-----
Untested (I would have had to reboot my pc and that takes

too long!):

Do the Danes use HH for hours and mm for minutes?



Thierry De Bleye wrote:

This formula works fine with French regional settings

=TEXT(A1;"[HH]:mm") (A1= 65:20)

This formula is used in a sheet for the calculation of

the
overtime (working time)

but doesn't work anymore when I change the regional
setting from French to Danish

It has nothing to do with the list separator ; or ,
and not either with some add-ins

Does anyone have some idea ?

Regards
Thierry


--

Dave Peterson

.

  #2  
Old September 15th, 2003, 06:20 PM
Harlan Grove
external usenet poster
 
Posts: n/a
Default Error #VALUE with TEXT(A1;

"Thierry De Bleye" wrote...
I got the answer , the danes use [TT]:mm instead of [HH]:mm

do somebody knows how to get a list of used time format
per countries ?

...

I can't answer your question, but if you're willing to use a user-defined
function (UDF) as well as formatting specimen cells with needed numeric formats,
you could use the following.

In French, give cell X99 the custom number format "[HH]:mm". Then paste the
following UDF into a general VBA module.

Function nf(c As Range) As String
nf = c.NumberFormatLocal
End Function

Then use this UDF in your TEXT function calls, e.g., =TEXT(A1,nf(X99)). Other
that that, John Green et al's book on Excel VBA programming covers
internationalization issues.

--
Never attach files.
Snip unnecessary quoted text.
Never multipost (though crossposting is usually OK).
Don't change subject lines because it corrupts Google newsgroup archives.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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