Count Unique Entries

rajivsoni

Board Regular
Joined
May 5, 2006
Messages
133
hi...
i have a column wherein i have Customer id's inserted Column A.
Column B has Order Numbers...
I want to count the number of orders placed by a particular Customer.
i tried countif but tht gives me the total count of orders...
Eg. Customer id = 4568
Order Numbers = OR001, OR002, OR001, OR003.

The formula should give me a result of 3 orders placed.
Coz Order number OR001 is repeated twice. it should count only unique orders for tht particular customer.
how can i do tht???
awaiting quick response... :)
Thanks guys... in advance :)
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Control+shift+enter, not just enter...
Code:
=SUM(IF(FREQUENCY(
    IF($B$2:$B$50<>"",
    IF($A$2:$A$50=E2,
     MATCH("~"&$B$2:$B$50,$B$2:$B$50&"",0))),ROW($A$2:$A$50)-ROW($A$2)+1),1))

where E2 houses a Customer id of interest.

hi...
i have a column wherein i have Customer id's inserted Column A.
Column B has Order Numbers...
I want to count the number of orders placed by a particular Customer.
i tried countif but tht gives me the total count of orders...
Eg. Customer id = 4568
Order Numbers = OR001, OR002, OR001, OR003.

The formula should give me a result of 3 orders placed.
Coz Order number OR001 is repeated twice. it should count only unique orders for tht particular customer.
how can i do tht???
awaiting quick response... :)
Thanks guys... in advance :)
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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