Lookup value within a date range

joelui

New Member
Joined
Nov 3, 2011
Messages
25
hi guys,

I need some help with a formula, I have a value 8319 and date 02-Feb-18, I would like to the formula to return the result of column D, if it can find a match of Column A and also within the date range of Column B and C......
#From DateEnd DateResult
83191-May-1731-Dec-17A
83191-Jan-1810-May-18B
831915-May-1830-May-18T

<tbody>
</tbody><colgroup><col><col span="2"><col></colgroup>

thanks in advance.
Cheers,
Joe
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
hi Aladin, that's correct. the outcome I expect is B

#From DateEnd DateResult83192-Feb-18B
83191-May-1731-Dec-17A
83191-Jan-1810-May-18B
831915-May-1830-May-18T

<tbody>
</tbody>

F1: 8319

G1: 2-feb-18

In H1 control+shift+enter, not just enter:

=INDEX($D$2:$D$4,MATCH(F1,IF(G1>=B2:B4,IF(G1<=C2:C4,A2:A4)),0))
 
Upvote 0

Forum statistics

Threads
1,215,051
Messages
6,122,872
Members
449,097
Latest member
dbomb1414

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