Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default concatenate locale bug?

Greetings.

Concatenate function seems to have a bug in Excel 2003 when same sheet
is displayed on a different locale.

For example two cells contain
A1 A2
Hello 10.00%


CONCATENATE(A1,";",A2)

yields

Hello;0.1 (with dot)

and

CONCATENATE(A1,";",FLOOR(A2,0.1))

yields

Hello;0.1 (with dot)

When I send this sheet to Russia where decimal separator is comma not
dot

CONCATENATE(A1,";",A2)

still yields

Hello;0.1 (with dot)

but

CONCATENATE(A1,";",FLOOR(A2,0.1))

yields

Hello;0,1 (with comma)

And there are VLOOKUPs in the sheet, and they all fail because of this,
since CONCATENATE is used to create compound-key field for VLOOKUP.

Any suggestions?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default concatenate locale bug?

< CONCATENATE(A1,";",A2)
still yields
Hello;0.1 (with dot)


Even after recalculation?


--
Kind regards,

Niek Otten


wrote in message
oups.com...
Greetings.

Concatenate function seems to have a bug in Excel 2003 when same sheet
is displayed on a different locale.

For example two cells contain
A1 A2
Hello 10.00%


CONCATENATE(A1,";",A2)

yields

Hello;0.1 (with dot)

and

CONCATENATE(A1,";",FLOOR(A2,0.1))

yields

Hello;0.1 (with dot)

When I send this sheet to Russia where decimal separator is comma not
dot

CONCATENATE(A1,";",A2)

still yields

Hello;0.1 (with dot)

but

CONCATENATE(A1,";",FLOOR(A2,0.1))

yields

Hello;0,1 (with comma)

And there are VLOOKUPs in the sheet, and they all fail because of this,
since CONCATENATE is used to create compound-key field for VLOOKUP.

Any suggestions?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default concatenate locale bug?


I've tested it with xl97 NL version and YES I see what you mean.
Problems do not occur in xl2003 UK.

So it appears that it's more a matter of Excel Language version
than of ControlPanel locale.

You could either
force numeric fields with N() function.

write a small udf to replace Concatenate.
(for example see
http://groups.google.com/groups?q=au...tcool+gluetext

hth


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


wrote in
groups.com

Greetings.



And there are VLOOKUPs in the sheet, and they all fail because of
this, since CONCATENATE is used to create compound-key field for
VLOOKUP.

Any suggestions?

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default concatenate locale bug?

perhaps do
CONCATENATE(A1,";",Text(FLOOR(A2,0.1),"0\.0"))

--
Regards,
Tom Ogilvy


wrote in message
oups.com...
Greetings.

Concatenate function seems to have a bug in Excel 2003 when same sheet
is displayed on a different locale.

For example two cells contain
A1 A2
Hello 10.00%


CONCATENATE(A1,";",A2)

yields

Hello;0.1 (with dot)

and

CONCATENATE(A1,";",FLOOR(A2,0.1))

yields

Hello;0.1 (with dot)

When I send this sheet to Russia where decimal separator is comma not
dot

CONCATENATE(A1,";",A2)

still yields

Hello;0.1 (with dot)

but

CONCATENATE(A1,";",FLOOR(A2,0.1))

yields

Hello;0,1 (with comma)

And there are VLOOKUPs in the sheet, and they all fail because of this,
since CONCATENATE is used to create compound-key field for VLOOKUP.

Any suggestions?

Thanks



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default concatenate locale bug?

I think the problem is of a recalculation issue. Excel caches these
values incorrectly. They need to be automatically updated when file is
opened in a different locale.
What can I do? I don't want to keep reminding people to recalculate my
excel sheets.

Thanks



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default concatenate locale bug?

Include an Auto_open Sub that issues a Calculate or maybe even a
CalculateFull.

--
Kind regards,

Niek Otten

wrote in message
ups.com...
I think the problem is of a recalculation issue. Excel caches these
values incorrectly. They need to be automatically updated when file is
opened in a different locale.
What can I do? I don't want to keep reminding people to recalculate my
excel sheets.

Thanks



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default concatenate locale bug?

That requires enabling macros.

Our sites have security policies.

Any other suggestions?

Thanks

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default concatenate locale bug?

Have you tried "&"

=A1&";"&A2

I'm not optimistic this would make any difference but might be worth a try.

Regards,
Peter T

wrote in message
ups.com...
That requires enabling macros.

Our sites have security policies.

Any other suggestions?

Thanks



  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default concatenate locale bug?

Maybe:

=YourFormula&TEXT(NOW()*0,"#")

Let us know if it works

--
Kind regards,

Niek Otten

wrote in message
ups.com...
That requires enabling macros.

Our sites have security policies.

Any other suggestions?

Thanks



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
Date Format Under Japanese Locale York Excel Discussion (Misc queries) 3 December 19th 06 06:10 AM
Number format locale - XL2003 [email protected] Excel Programming 0 January 11th 06 06:49 PM
Locale problem iamrajy Excel Programming 3 October 14th 05 09:10 PM
VBA Date formatting and locale RS200Phil Excel Programming 3 July 15th 05 01:06 AM
override locale computer settings n.almeida Excel Discussion (Misc queries) 3 February 18th 05 12:00 AM


All times are GMT +1. The time now is 07:44 PM.

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"