Count Unique value with multiple conditon

EC_08

New Member
Joined
Sep 4, 2013
Messages
39
Hi,

My data is look like following.. in column A i have different date , In clolumn B :Different Name , Column C : Diff Grade(A,B,C)

DateNameGrade
26-AugJackA
26-AugMulyB
26-AugDeselyC
26-AugVizyC
26-AugUnitA
26-AugMulyA
26-AugDeselyB
26-AugVizyC
26-AugJackA
26-AugJackB
26-AugMulyB
26-AugDeselyB
26-AugVizyC

<tbody>
</tbody>

I want Unique count Output As following..

Grade26-Aug
A33 Is unique name in Column B that contain Grade A on 26th Aug
B33 Is unique name in Column B that contain Grade B on 26th Aug
C22 Is unique name in Column B that contain Grade C on 26th Aug

<tbody>
</tbody>

***This is only example i have different date 1 to 30 in column A , lots of name in Column B & 9 different grade in Column C. & Output also date wise(Like 26th , 27th,28th .... .
 
Last edited:

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Let A:C house the data and E:F the processing...

F2, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=SUM(IF(FREQUENCY(IF($C$2:$C$20=$E2,IF($B$2:$B$20<>"",
  IF($C$2:$C$20=E$1,MATCH($B$2:$B$20,$B$2:$B$20,0)))),
  ROW($B$2:$B$20)-ROW($B$2)+1),1))
 
Upvote 0
I think it should be:

=SUM(IF(FREQUENCY(IF($C$2:$C$20=$E2,IF($B$2:$B$20<>"",
IF($A$2:$A$20=F$1,MATCH($B$2:$B$20,$B$2:$B$20,0)))),
ROW($B$2:$B$20)-ROW($B$2)+1),1))
 
Upvote 0
Let A:C house the data and E:F the processing...

F2, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=SUM(IF(FREQUENCY(IF($C$2:$C$20=$E2,IF($B$2:$B$20<>"",
  IF($C$2:$C$20=E$1,MATCH($B$2:$B$20,$B$2:$B$20,0)))),
  ROW($B$2:$B$20)-ROW($B$2)+1),1))
Thanks Its working..

Only one thing here we use array function if my data is large then excel take much time to load ....
any other formula that not contain array.
 
Upvote 0
Hi,

You do need an array formula ...
May be without using Frequency, it is lighter ...
Code:
=SUM(IF($C$2:$C$20=$E2,IF($B$2:$B$20<>"",IF($A$2:$A$20=F$1,IF(MATCH($A$2:$A$14&$B$2:$B$14&$C$2:$C$14,$A$2:$A$14&$B$2:$B$14&$C$2:$C$14,0)=ROW($A$2:$A$14)-ROW($A$2)+1,1)))))

HTH
 
Upvote 0
Thanks Its working..

Only one thing here we use array function if my data is large then excel take much time to load ....
any other formula that not contain array.

Concatenating the relevant fields would alleviate the performance problem a bit.

D2, copied down:
Rich (BB code):
=$A2&"|"&$B2&"|"&C2

Assuming that the data is in Sheet1, define Ivec by means of Formulas | Name Manager as referring to:
Rich (BB code):
=ROW(Sheet1!$A$2:$A$20)-ROW(Sheet1!$A$2)+1
Now invoke...

F2, control+shift=enter, not just enter, and copy down:
Rich (BB code):
=SUM(IF(FREQUENCY(IF(ISNUMBER(SEARCH(F$1&"|*"&$E2,$D$2:$D$20)),
  MATCH($D$2:$D$20,$D$2:$D$20,0)),Ivec),1))
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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