Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DEE DEE is offline
external usenet poster
 
Posts: 250
Default DCount returns incorrect Result

Hi,

I've looked around, but can't find the answer.

I have a list and want to count all the "Smith" last names.

I also have Smithson and Smithton in my list, which returns a count of 3
instead of 1.

How do I specify that I only want names that are exactly Smith?

thanks!
--
Thanks!

Dee
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 430
Default DCount returns incorrect Result

Why not use COUNTIF?

I just did a test with the following names in Column A (Smith, Smithson,
Smithers and Smit in A1 to A4.) I used the following formula:
=COUNTIF(A1:A4,"Smith")
and the result was 1 as it should be.


"dee" wrote:

Hi,

I've looked around, but can't find the answer.

I have a list and want to count all the "Smith" last names.

I also have Smithson and Smithton in my list, which returns a count of 3
instead of 1.

How do I specify that I only want names that are exactly Smith?

thanks!
--
Thanks!

Dee

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DEE DEE is offline
external usenet poster
 
Posts: 250
Default DCount returns incorrect Result

Hi,

I actually just found the answer after searching on the Internet, as it also
causes the same problem when using an advanced filter (which is what
dfunctions use).

I now know to put ="=smith"

Thanks in any case!
--
Thanks!

Dee


"tim m" wrote:

Why not use COUNTIF?

I just did a test with the following names in Column A (Smith, Smithson,
Smithers and Smit in A1 to A4.) I used the following formula:
=COUNTIF(A1:A4,"Smith")
and the result was 1 as it should be.


"dee" wrote:

Hi,

I've looked around, but can't find the answer.

I have a list and want to count all the "Smith" last names.

I also have Smithson and Smithton in my list, which returns a count of 3
instead of 1.

How do I specify that I only want names that are exactly Smith?

thanks!
--
Thanks!

Dee

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
vlookup based on random result returns incorrect result rickat Excel Worksheet Functions 1 December 6th 05 01:16 PM
Median result used in formula gives incorrect result vlatham Excel Worksheet Functions 4 September 21st 05 04:26 PM
sumif formula returns incorrect value modular_brian Excel Worksheet Functions 1 June 16th 05 10:29 PM
Using Min function with cells in a Row returns incorrect result. Gaurav New Users to Excel 2 March 7th 05 01:01 PM
Vlookup returns incorrect match Smichaud Excel Discussion (Misc queries) 2 November 30th 04 10:51 AM


All times are GMT +1. The time now is 04:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"