The number of duplicate data in two lists

avido83

New Member
Joined
Apr 15, 2012
Messages
5
Hi,
I am working on a workbook to help me schedule vacation in my department. One thing that I am having trouble with is getting excel to return the number of days that exist in two different lists.

Example:

WEEK 1 REQUEST1
5/13/2012 5/10/2012
5/14/2012 5/11/2012
5/15/2012 5/12/2012
5/16/2012 5/13/2012
5/17/2012 5/14/2012
5/18/2012
5/19/2012

I would like excel to return 2, because two of the days in request1 fall within the range of week 1.

I know there has to be a simple way to get these results, but I have been hitting my head against a wall for a week trying to find it. Any help would be great!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hi,

Assuming your data starts at A1 with headers in row 1,

=SUMPRODUCT((B2:B8<=MAX(A2:A8))*(B2:B8>=MIN(A2:A8)))
 
Upvote 0
Davesweep,
Thank you very much for your help. It works like a charm! I have read the sumproduct description on microsoft's website and I have no idea how it is working, but it does, perfectly!
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

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