count unique entries based on 2 criteria - not able to use filter

swqa123

New Member
Joined
Jul 13, 2024
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
Hi...simple problem but wracking my brain!
sample data
order numberrouteDate
1​
1​
01-Jul​
1​
1​
01-Jul​
3​
2​
01-Jul​
4​
1​
02-Jul​
2​
2​
02-Jul​
1​
2​
02-Jul​

I want to create a count of unique order numbers when route and date match so...
if route = 2 and date = 2nd july, unique order count = 2 etc
i cannot use unique and filter combo as using excel v2019

any help really appreciated
 

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
Close with Ctrl + shift + enter

Book1
ABCDEFG
1order numberrouteDateroute2
2122-juldate2-jul
3111-jul
4321-julunique count2
5412-jul
6222-jul
7122-jul
8
Sheet1
Cell Formulas
RangeFormula
G4G4=SUMPRODUCT(--(FREQUENCY(IF((B2:B7=G1)*(C2:C7=G2),MATCH(A2:A7,A2:A7,0),""),ROW(A2:A7)-1)>0))
 
Upvote 0
Solution
JEC - stunning job and I thank you for taking the time to look at my problem and come up with the solution. 👏
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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