I can't figure out the count. Thank you, if you can help.

bgurtz

New Member
Joined
Feb 15, 2018
Messages
4
I have cells A1 with dates such as 1/2/18
I have cell B1 with names (some are duplicate)
I am trying to figure out away to count how many (unique) names worked on per day of the month.
I can not figure out how to do this. I have tried using the .. =SUMPRODUCT(1/COUNTIF(A1:A22,A1:A22))
I can get the unique value for a people, but i can not get it to do the dates,

Any help would be great. Thank you.

[TABLE="width: 500"]
<tbody>[TR]
[TD]1/5/2018[/TD]
[TD]Mike[/TD]
[TD]............[/TD]
[/TR]
[TR]
[TD]1/5/2018[/TD]
[TD]Mike[/TD]
[TD]Example:[/TD]
[/TR]
[TR]
[TD]1/5/2018[/TD]
[TD]Chris[/TD]
[TD]1/5/2018 .. 4 people worlked[/TD]
[/TR]
[TR]
[TD]1/5/2018[/TD]
[TD]Frank[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/5/2018[/TD]
[TD]Chase[/TD]
[TD]1/7/2018 .. 2 people worked[/TD]
[/TR]
[TR]
[TD]1/7/2018[/TD]
[TD]Kian[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/7/2018[/TD]
[TD]Corey[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/7/2018[/TD]
[TD]Corey[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/10/2018[/TD]
[TD]Frank[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/10/2018[/TD]
[TD]Mark[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/14/2018[/TD]
[TD]Frank[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/22/2018[/TD]
[TD]Knox[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/22/2018[/TD]
[TD]Kian[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/22/2018[/TD]
[TD]Mike[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/22/2018[/TD]
[TD]Mike[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Try:
This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Drag formula down as needed.
Excel Workbook
ABCD
1DateNameDateCount
21/5/2018Mike1/5/20184
31/5/2018Mike1/7/20182
41/5/2018Chris1/10/20182
51/5/2018Frank1/14/20181
61/5/2018Chase1/22/20183
71/7/2018Kian
81/7/2018Corey
91/7/2018Corey
101/10/2018Frank
111/10/2018Mark
121/14/2018Frank
131/22/2018Knox
141/22/2018Kian
151/22/2018Mike
161/22/2018Mike
Sheet
 
Upvote 0
Try this!

The formula I put in cell E4 is

=SUMPRODUCT((($A$1:$A$15=D2))/COUNTIFS($A$1:$A$15,$A$1:$A$15&"",$B$1:$B$15,$B$1:$B$15&""))

frxMpxi.png
 
Upvote 0
I thought I had this, but i must be doing something wrong, I can not get it to work correct. I have been reading and trying to figure out what I have done wrong with the answers I have been given, but I must be doing it wrong. can anyone upload a sample sheet so i can see what i am doing wrong?
 
Upvote 0
The formula in post #2 is an array formula and must be entered with CTRL-SHIFT-ENTER.

If you just hit the enter key.
Press F2 key for edit.
Then CTRL-SHIFT-ENTER.

Note you can just copy my example into Excel.
 
Upvote 0

Forum statistics

Threads
1,223,270
Messages
6,171,102
Members
452,379
Latest member
IainTru

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