ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   DCOUNTA function not working right (https://www.excelbanter.com/excel-programming/389890-dcounta-function-not-working-right.html)

Grasshopper[_2_]

DCOUNTA function not working right
 
Hi all,

I am not quite sure if I did it right or there is something wrong with
the DCOUNTA function. Basically, I want to count the number of cells
that contains the letter "c" and "c" only (as the whole value in the
cell). A screen shot is provided at this link: http://www.f12f.com/dcounta.gif

As shown, the function also includes "cat" and "cap" - which is not
what I needed.

Could anyone help? The correct number should be 2.

I know this can be done using COUNTA function, but my employer wants
to use DCOUNTA to account for multiple criteria in the future.

Thanks.


merjet

DCOUNTA function not working right
 
I can't explain it, but here is a work-around:
=COUNTIF(B4:B15,B3)
To use more criteria, add COUNTIF's.

Hth,
Merjet



Grasshopper[_2_]

DCOUNTA function not working right
 
Thanks Merjet, but what I need is to use DCOUNTA. This is the
specification for the task. I already know about the CountIF as I
have mentioned in my first post.

Again, I need to use DCOUNTA due to the project specification
requirement.



Tom Ogilvy

DCOUNTA function not working right
 
Use this as your criteria:

="=c"

--
Regards,
Tom Ogilvy


"Grasshopper" wrote:

Thanks Merjet, but what I need is to use DCOUNTA. This is the
specification for the task. I already know about the CountIF as I
have mentioned in my first post.

Again, I need to use DCOUNTA due to the project specification
requirement.





All times are GMT +1. The time now is 01:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com