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

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,203
<?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.
 

flojo_work

Board Regular
Joined
May 6, 2010
Messages
63
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
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,203
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,553
Messages
5,636,989
Members
416,953
Latest member
broexc

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
Top