Hi Everone,
I have following formula in E2
=COUNTIFS($A$2:$A2,A2,$B$2:$B2,B2,$D$2:$D2,D2,$C$2:$C2,C2)
and its giving me following output. I need to count unique customers in given criteria. Right Most column is my desired output.
[TABLE="width: 677"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Customer Name[/TD]
[TD]Region[/TD]
[TD]Division[/TD]
[TD]Category[/TD]
[TD]Sr. No. of Unique Customers per Region per Division per Category
(Output by Formula)[/TD]
[TD]Sr. No. of Unique Customers per Region per Division per Category
(Desired Output)[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Central[/TD]
[TD]CND[/TD]
[TD]Private[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Central[/TD]
[TD]CND[/TD]
[TD]Government[/TD]
[TD]1.00[/TD]
[TD]0.50[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Central[/TD]
[TD]CND[/TD]
[TD]Semi-Government[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Western[/TD]
[TD]CND[/TD]
[TD]Semi-Government[/TD]
[TD]1.00[/TD]
[TD]0.33[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Western[/TD]
[TD]CND[/TD]
[TD]Semi-Government[/TD]
[TD]2.00[/TD]
[TD]0.33[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Western[/TD]
[TD]CND[/TD]
[TD]Semi-Government[/TD]
[TD]3.00[/TD]
[TD]0.33[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Western[/TD]
[TD]END[/TD]
[TD]Semi-Government[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Western[/TD]
[TD]CND[/TD]
[TD]Government[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Central[/TD]
[TD]CND[/TD]
[TD]Government[/TD]
[TD]2.00[/TD]
[TD]0.50[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Central[/TD]
[TD]Multi[/TD]
[TD]Government[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD="align: left"]United Company[/TD]
[TD]Eastern[/TD]
[TD]CND[/TD]
[TD]Private[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD="align: left"]United Company[/TD]
[TD]Western[/TD]
[TD]BBT[/TD]
[TD]Private[/TD]
[TD]1.00[/TD]
[TD]0.50[/TD]
[/TR]
[TR]
[TD="align: left"]United Company[/TD]
[TD]Western[/TD]
[TD]BBT[/TD]
[TD]Private[/TD]
[TD]2.00[/TD]
[TD]0.50[/TD]
[/TR]
[TR]
[TD="align: left"]United Company[/TD]
[TD]Central[/TD]
[TD]BBT[/TD]
[TD]Private[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD="align: left"]United Company[/TD]
[TD]Central[/TD]
[TD]CKQ[/TD]
[TD]Private[/TD]
[TD]1.00[/TD]
[TD]0.25[/TD]
[/TR]
[TR]
[TD="align: left"]United Company[/TD]
[TD]Central[/TD]
[TD]CKQ[/TD]
[TD]Private[/TD]
[TD]2.00[/TD]
[TD]0.25[/TD]
[/TR]
[TR]
[TD="align: left"]United Company[/TD]
[TD]Central[/TD]
[TD]CKQ[/TD]
[TD]Private[/TD]
[TD]3.00[/TD]
[TD]0.25[/TD]
[/TR]
[TR]
[TD="align: left"]United Company[/TD]
[TD]Central[/TD]
[TD]CKQ[/TD]
[TD]Private[/TD]
[TD]4.00[/TD]
[TD]0.25[/TD]
[/TR]
</tbody>[/TABLE]
Thanks,
Imran.
I have following formula in E2
=COUNTIFS($A$2:$A2,A2,$B$2:$B2,B2,$D$2:$D2,D2,$C$2:$C2,C2)
and its giving me following output. I need to count unique customers in given criteria. Right Most column is my desired output.
[TABLE="width: 677"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Customer Name[/TD]
[TD]Region[/TD]
[TD]Division[/TD]
[TD]Category[/TD]
[TD]Sr. No. of Unique Customers per Region per Division per Category
(Output by Formula)[/TD]
[TD]Sr. No. of Unique Customers per Region per Division per Category
(Desired Output)[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Central[/TD]
[TD]CND[/TD]
[TD]Private[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Central[/TD]
[TD]CND[/TD]
[TD]Government[/TD]
[TD]1.00[/TD]
[TD]0.50[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Central[/TD]
[TD]CND[/TD]
[TD]Semi-Government[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Western[/TD]
[TD]CND[/TD]
[TD]Semi-Government[/TD]
[TD]1.00[/TD]
[TD]0.33[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Western[/TD]
[TD]CND[/TD]
[TD]Semi-Government[/TD]
[TD]2.00[/TD]
[TD]0.33[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Western[/TD]
[TD]CND[/TD]
[TD]Semi-Government[/TD]
[TD]3.00[/TD]
[TD]0.33[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Western[/TD]
[TD]END[/TD]
[TD]Semi-Government[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Western[/TD]
[TD]CND[/TD]
[TD]Government[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Central[/TD]
[TD]CND[/TD]
[TD]Government[/TD]
[TD]2.00[/TD]
[TD]0.50[/TD]
[/TR]
[TR]
[TD="align: left"]ABC Communication[/TD]
[TD]Central[/TD]
[TD]Multi[/TD]
[TD]Government[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD="align: left"]United Company[/TD]
[TD]Eastern[/TD]
[TD]CND[/TD]
[TD]Private[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD="align: left"]United Company[/TD]
[TD]Western[/TD]
[TD]BBT[/TD]
[TD]Private[/TD]
[TD]1.00[/TD]
[TD]0.50[/TD]
[/TR]
[TR]
[TD="align: left"]United Company[/TD]
[TD]Western[/TD]
[TD]BBT[/TD]
[TD]Private[/TD]
[TD]2.00[/TD]
[TD]0.50[/TD]
[/TR]
[TR]
[TD="align: left"]United Company[/TD]
[TD]Central[/TD]
[TD]BBT[/TD]
[TD]Private[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD="align: left"]United Company[/TD]
[TD]Central[/TD]
[TD]CKQ[/TD]
[TD]Private[/TD]
[TD]1.00[/TD]
[TD]0.25[/TD]
[/TR]
[TR]
[TD="align: left"]United Company[/TD]
[TD]Central[/TD]
[TD]CKQ[/TD]
[TD]Private[/TD]
[TD]2.00[/TD]
[TD]0.25[/TD]
[/TR]
[TR]
[TD="align: left"]United Company[/TD]
[TD]Central[/TD]
[TD]CKQ[/TD]
[TD]Private[/TD]
[TD]3.00[/TD]
[TD]0.25[/TD]
[/TR]
[TR]
[TD="align: left"]United Company[/TD]
[TD]Central[/TD]
[TD]CKQ[/TD]
[TD]Private[/TD]
[TD]4.00[/TD]
[TD]0.25[/TD]
[/TR]
</tbody>[/TABLE]
Thanks,
Imran.