# Count Unique Entries

#### rajivsoni

##### Board Regular
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...

### 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.

#### VBA Noob

##### MrExcel MVP
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...

Replies
5
Views
268
Replies
7
Views
576
Replies
4
Views
329
Replies
1
Views
629
Replies
16
Views
593

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.

### Which adblocker are you using?

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

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