Using lookup and date ranges

DrH100

Board Regular
Joined
Dec 30, 2011
Messages
78
Hopefully this is quite a simple one

In Cell A1 i have a date

in cells d1 :e10 I have a table of date ranges and in f1:f10 I have a number
eg

What I would like is a formula to find which range the date in A1 falls within and then return the number that corresponds in column F. I would be putting this in B1

In the example i've been using (table below) I have used month start and end dates but in the real version the range may not be whole months or may be longer than a month.

Any help appreciated

def
01/03/201431/03/20141
01/04/201430/04/20142
01/05/201431/05/20143
01/06/201430/06/20144
01/07/201431/07/20145
01/08/201431/08/20146
01/09/201430/09/20147
01/10/201431/10/20148

<colgroup><col style="width: 53pt; mso-width-source: userset; mso-width-alt: 2596;" span="2" width="71"> <col style="width: 48pt;" width="64"> <tbody>
</tbody>
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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