Count Unique Names with Criteria

shawnw

New Member
Joined
Apr 6, 2016
Messages
34
Hello,

I'm really struggling with this one. I read a few articles and even watched a video, but it's not working out for me.


  • I have a list of team members (e.g., Joe, Mary, Bill) in Col A.
  • Each name appears once in the list. No name is repeated.
  • For each name, I have a cell with the number of hours that person worked (e.g., 0, 1, 2...infinity).
  • I am trying to get a count of the names where the number of hours is greater than zero.

COL ACOL B
R1NameHours
R2Andy8
R3Bill6
R4Charlie2
R5David0
R6Edward10
R7Frank4
R8George0
R9Harry9
R10Ian12
R11Jack0

<tbody>
</tbody>


In the example above, I have 10 unique names. Of these, 3 have zero hours and should be excluded. Seven have hours > 0 and should be counted.

So now in a separate worksheet I need a formula that results in "7" (indicting that 7 unique names had greater than 0 hours).

Thanks!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I think I got it!

=SUM(--(FREQUENCY(IF(People[Total Effort]>0,MATCH(People[VersionOne User],People[VersionOne User],0)),ROW(People[VersionOne User])-ROW(People!A2)+1)>0))
 
Upvote 0
As there are no duplicates, you can use a simpler formula

=COUNTIF(Sheet1!B2:B11,">0")

M.
 
Upvote 0

Forum statistics

Threads
1,216,291
Messages
6,129,911
Members
449,540
Latest member
real_will_smith

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top