Modify formula in Column E to exclude recurring customer names in column A.

imran1059

Board Regular
Joined
Sep 28, 2014
Messages
112
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.

Customer NameRegionDivisionCategorySr. No. of Unique Customers per Region per Division per Category
(Output by Formula)
Sr. No. of Unique Customers per Region per Division per Category
(Desired Output)
ABC CommunicationCentralCNDPrivate1.001.00
ABC CommunicationCentralCNDGovernment1.000.50
ABC CommunicationCentralCNDSemi-Government1.001.00
ABC CommunicationWesternCNDSemi-Government1.000.33
ABC CommunicationWesternCNDSemi-Government2.000.33
ABC CommunicationWesternCNDSemi-Government3.000.33
ABC CommunicationWesternENDSemi-Government1.001.00
ABC CommunicationWesternCNDGovernment1.001.00
ABC CommunicationCentralCNDGovernment2.000.50
ABC CommunicationCentralMultiGovernment1.001.00
United CompanyEasternCNDPrivate1.001.00
United CompanyWesternBBTPrivate1.000.50
United CompanyWesternBBTPrivate2.000.50
United CompanyCentralBBTPrivate1.001.00
United CompanyCentralCKQPrivate1.000.25
United CompanyCentralCKQPrivate2.000.25
United CompanyCentralCKQPrivate3.000.25
United CompanyCentralCKQPrivate4.000.25

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>


Thanks,
Imran.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Its okay .... I didn't know about this rule. Accept my apologies and just cheer :) will take care from now on.
 
Upvote 0
For the reference of readers ....... I have got my desired output using following formula in Cell F2

=SUM(IF(COUNTIFS(A:A,A2,B:B,B2,C:C,C2,D:D,D2),1/COUNTIFS(A:A,A2,B:B,B2,C:C,C2,D:D,D2)))
 
Upvote 0
Glad to see you posted the solution for those who find this thread.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,212
Members
449,074
Latest member
cancansova

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