unique count

flojo_work

Board Regular
Joined
May 6, 2010
Messages
63
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p> </o:p>
I have a set of data that has multiple columns where one column is a name and the second column is the date they attended a call, I want to show the number of days worked as they may have attended more that one call on a date I have used this formula to count the number of unique dates occurred, ; =IF(COUNTIF($D$2:D2,D2)=1,1,0)
Bottom of For but I have more than one name in the first column is there a formula I can use that will incorporate my count formula at each name change
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
I have a set of data that has multiple columns where one column is a name and the second column is the date they attended a call, I want to show the number of days worked as they may have attended more that one call on a date I have used this formula to count the number of unique dates occurred, ; =IF(COUNTIF($D$2:D2,D2)=1,1,0)
Bottom of For but I have more than one name in the first column is there a formula I can use that will incorporate my count formula at each name change

Are you after?...

1) Control+shift+enter, not just enter:
Code:
=SUM(IF(FREQUENCY(IF($D$2:$D$100<>"",
   MATCH("~"&$D$2:$D$100,$D$2:$D$100&"",0)),
    ROW($D$2:$D$100)-ROW($D$2)+1),1))

2) Control+shift+enter, not just enter:
Code:
=SUM(IF(FREQUENCY(IF($D$2:$D$100<>"",
   IF($C$2:$C$100=F2,MATCH("~"&$D$2:$D$100,$D$2:$D$100&"",0))),
    ROW($D$2:$D$100)-ROW($D$2)+1),1))

where F2 houses an attender name.
 
Upvote 0
sorry I dont quite undersand this reply how am I supose to enter the formula , its probibly me if I hold down the key as uyou instructed am I then supose to type the formula nothing seems to happen and if I copy the fommual in with the name I get N/A's
 
Upvote 0
sorry I dont quite undersand this reply how am I supose to enter the formula , its probibly me if I hold down the key as uyou instructed am I then supose to type the formula nothing seems to happen and if I copy the fommual in with the name I get N/A's

Type the formula in a cell outside the data area, press the control and shift ket at the same time while you hit the enter key. If you do this properly, you'll see { and } appear around the formula.
 
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,772
Members
449,049
Latest member
greyangel23

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