ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   DCount?? not working. Pls help (https://www.excelbanter.com/excel-discussion-misc-queries/42816-dcount-not-working-pls-help.html)

KDD

DCount?? not working. Pls help
 
My data is orgnaised as follows:

A B C D E
David 2245 abcd efgh ijk
Susan 2249 xyz etc etc
Mickey 1234 etc 123 etc
Arnold 4321 etc....
David 1441
Mickey abcd
etc etc

I want to count the number of non blank cells in B for each "David", "Susan"
etc in A, and have the value returned in another sheet.

I tried DCount, but it doesnt seem to be working.
--
KDDXB

Dave O

I mocked up your data as you provided it, with names in A1:A6 etc. I
entered "David" in A8 and this formula in B8:
=SUMPRODUCT(--($A$1:$A$6=A8),--($B$1:$B$6<""))


KDD

Amazing stuff. Perfect. Thank you my friend.
--
KDDXB


"Dave O" wrote:

I mocked up your data as you provided it, with names in A1:A6 etc. I
entered "David" in A8 and this formula in B8:
=SUMPRODUCT(--($A$1:$A$6=A8),--($B$1:$B$6<""))



Dave O

Glad to help!



All times are GMT +1. The time now is 09:03 PM.

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