Matching Based on Date Range and another field

gplhl

Board Regular
Joined
Feb 23, 2002
Messages
176
Hi,

I am struggling to return a result based on two criteria. A match on a Roll combined with a match on a date range to return a roll ID that was used. Please see below. I am used to using vlookup which would be simple if there were only one roll, its the addition of the dates that is throwing me.

Sorry, can't see how to add a screenshot? Below looks in line in edit mode..

So in the first instance below with a question mark, it would return Roll ID B2


Roll Date Changed Date To Roll ID End Time Flute Roll ID
B 23/07/2017 24/04/2018 B1 27/08/2018 B ?
B 25/04/2018 16/04/2019 B2 27/08/2017 R ?
C 01/04/2015 16/04/2019 E1 01/09/2018 B ?
E 28/02/2018 16/01/2019 E1 10/06/2016 R ?
E 17/01/2019 16/04/2019 E2 15/07/2018 B ?
EB 01/04/2015 16/04/2019 EB1 01/04/2019 C ?
R 01/04/2015 16/04/2019 R1 08/02/2019 E ?
 
Last edited:

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
put table in a spreadsheet, highlight, and paste into reply box, and explain why return would be Roll ID B2
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,613
Members
449,090
Latest member
vivek chauhan

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