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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,214,545
Messages
6,120,132
Members
448,947
Latest member
test111

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