# unique count

#### flojo_work

##### Board Regular
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},\$Z\$1:\$Z\$99,\$Y\$1:\$Y\$99),2,False) to lookup Y values to left of Z values.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
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.

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

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.

Replies
2
Views
105
Replies
3
Views
165
Replies
11
Views
522
Replies
5
Views
236
Replies
1
Views
863

1,219,035
Messages
6,145,909
Members
450,654
Latest member
lorento

### 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.

### Which adblocker are you using?

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

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