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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
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,190,856
Messages
5,983,242
Members
439,833
Latest member
CDaviess

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
Top