Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default European vs English Issue

Hello,
I want to find the number of values in a database greater than a certain
value UL. The following code works in the United States Regional Option:

If UL < "" Then NumOOS = Application.CountIf(Database, "" & UL & "")

But it always gives 0 in, for example, the regional option for Germany.

Any ideas why?

Thanks,

Bill


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default European vs English Issue

Grüezi Bill

Bill schrieb am 08.02.2006

I want to find the number of values in a database greater than a certain
value UL. The following code works in the United States Regional Option:

If UL < "" Then NumOOS = Application.CountIf(Database, "" & UL & "")

But it always gives 0 in, for example, the regional option for Germany.


I'm from Switzerland and used to Regional Optin issues, because our Options
are not quite teh same as the German ones....


How ist 'UL' declared?
Whats it's value?

Whats the content of your database?

I suspect these are dates?



Regards
Thomas Ramel (@work)

--
- MVP for Microsoft-Excel -
[Win XP Pro SP-2 / xl2000 SP-3]
Microsoft Excel - Die ExpertenTipps:
(http://tinyurl.com/9ov3l und http://tinyurl.com/cmned)
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default European vs English Issue

Maybe try

If UL < "" Then NumOOS = Application.CountIf(Database, "" & CDate(UL) &
"")


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Bill" wrote in message
link.net...
Hello,
I want to find the number of values in a database greater than a certain
value UL. The following code works in the United States Regional Option:

If UL < "" Then NumOOS = Application.CountIf(Database, "" & UL & "")

But it always gives 0 in, for example, the regional option for Germany.

Any ideas why?

Thanks,

Bill




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default European vs English Issue

UL is a variant, not dates. Numbers.


"Thomas Ramel" wrote in message
...
Grüezi Bill

Bill schrieb am 08.02.2006

I want to find the number of values in a database greater than a certain
value UL. The following code works in the United States Regional Option:

If UL < "" Then NumOOS = Application.CountIf(Database, "" & UL & "")

But it always gives 0 in, for example, the regional option for Germany.


I'm from Switzerland and used to Regional Optin issues, because our
Options
are not quite teh same as the German ones....


How ist 'UL' declared?
Whats it's value?

Whats the content of your database?

I suspect these are dates?



Regards
Thomas Ramel (@work)

--
- MVP for Microsoft-Excel -
[Win XP Pro SP-2 / xl2000 SP-3]
Microsoft Excel - Die ExpertenTipps:
(http://tinyurl.com/9ov3l und http://tinyurl.com/cmned)



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default European vs English Issue

Grüezi Bill

Bill schrieb am 08.02.2006

UL is a variant, not dates. Numbers.


Hmmm, quite less information....

Maybe an issue with the decimal-separator which is a comma in german
environnements (not in Switzerlad :-)).

Maybe some values of the database are in text-format?


Sorry, without closer informations its not easy to help you.

Maybe it's possible to send the file to my place?


Regards
Thomas Ramel

--
- MVP for Microsoft-Excel -
[Win XP Pro SP-2 / xl2000 SP-3]
Microsoft Excel - Die ExpertenTipps:
(http://tinyurl.com/9ov3l und http://tinyurl.com/cmned)
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
Using english and non-English Excel commands simultaneously in anon-English installation Michael.Tarnowski Excel Worksheet Functions 6 March 12th 10 07:21 AM
Translate any english number into English word SANTANU Excel Discussion (Misc queries) 2 March 4th 10 04:42 PM
how do I convert English (Canadian) dates to English (US) dates dinertx Excel Worksheet Functions 1 July 11th 08 03:59 PM
European date formats lynniemilano Excel Worksheet Functions 1 September 13th 05 05:47 PM
Issue with European Versions and VBA Bill[_30_] Excel Programming 1 February 25th 05 02:25 PM


All times are GMT +1. The time now is 02:16 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"