Formula to count Unique Values in one column based on 2 criteria from 2 other columns

CAHIGHAM

New Member
Joined
Dec 28, 2017
Messages
11
Hi,

I have dates in column E and routes in column AU. On another sheet I am trying to figure out the number of unique postal codes (column AH) delivered to by route and by date.

I feel like I need a sum product combined with a countifs. Can't figure it out.

Thanks for any help you can provide.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
ROUTEDATE POSTAL
NVP015/23/2018 V7X1K8
NVP015/23/2018V6E4S3
NVP015/23/2018V6E4A2
NVP015/23/2018V6E4A2
NVP015/23/2018V6E0C5
NVP015/23/2018V6E0C5
NVP015/23/2018V6Z2S9
NVP015/23/2018V6Z2S9
NVP015/23/2018V6E2J3
NVP015/23/2018V6E0C5

<colgroup><col width="68" style="width:51pt" span="3"> </colgroup><tbody>
</tbody>

Here is a sample. The value I am trying to get is route NVP01 had 7 stops (7 unique postal codes) on May 23rd.

I need the formula to search data to find the route, the date, and then count unique postal code values.
 
Upvote 0
Maybe something like this:
Change ranges to match your data.
This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Drag formula down as needed
Excel Workbook
EFGHIJK
1DatesRoutesPostal CodeFind
26/1/2018130027DateRouteUnique
36/1/20181300266/1/201812
46/1/20181300276/1/201822
56/1/20182300276/1/201831
66/1/20182300286/5/201813
76/1/20181300276/5/201821
86/1/20181300266/5/201831
96/1/2018330030
106/1/2018330030
116/5/2018130030
126/5/2018130026
136/5/2018130026
146/5/2018130030
156/5/2018130031
166/5/2018230038
176/5/2018230038
186/5/2018330025
Sheet
 
Upvote 0

Forum statistics

Threads
1,214,385
Messages
6,119,209
Members
448,874
Latest member
b1step2far

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