Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rob Rob is offline
external usenet poster
 
Posts: 718
Default String criteria in DCOUNT function

I have a problem using string criteria in DCOUNT. DCOUNT counts all values
that start with the string, not match it. For example a
DCOUNT(DATABASE;CRITERIA) on the data below would return 3 (and i was looking
for the answer "1"). I could rename loc1 to loc01, but is kind of diffcult
in my case. What i would like to know is:
-Is there a button or switch somewhere that makes database functions match
exactly?
-Did this function also work in this way in old version of excel (pre-2000)?

DATABASE:
Location name
loc1 a
loc1 b
loc10 a
loc1b a

CRITERIA:
Location Name
loc1 a
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default String criteria in DCOUNT function

Read the answer to your previous post!

Use

="=loc1"

instead of loc1

--


Regards,


Peo Sjoblom



"Rob" wrote in message
...
I have a problem using string criteria in DCOUNT. DCOUNT counts all values
that start with the string, not match it. For example a
DCOUNT(DATABASE;CRITERIA) on the data below would return 3 (and i was
looking
for the answer "1"). I could rename loc1 to loc01, but is kind of
diffcult
in my case. What i would like to know is:
-Is there a button or switch somewhere that makes database functions match
exactly?
-Did this function also work in this way in old version of excel
(pre-2000)?

DATABASE:
Location name
loc1 a
loc1 b
loc10 a
loc1b a

CRITERIA:
Location Name
loc1 a



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
strings as criteria in database function DCOUNT Rob Excel Worksheet Functions 2 October 2nd 07 09:04 AM
multiple criteria in dcount pjo Excel Discussion (Misc queries) 0 June 21st 07 03:02 PM
DCOUNT function not working properly on string comparisons MJP Excel Worksheet Functions 1 June 7th 07 10:32 AM
Dcount with Multiple Criteria conord Excel Worksheet Functions 0 August 16th 06 05:13 PM
Using ADD function within DCOUNT criteria DaveF2002 Excel Discussion (Misc queries) 4 June 19th 05 09:48 PM


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