Return a value (c) if this date is between (a) and (b)

jmcn8422

New Member
Joined
May 28, 2014
Messages
4
I have a matrix of date ranges with a value on sheet 1, like this:</SPAN></SPAN>
A</SPAN></SPAN>
B</SPAN></SPAN>
C</SPAN></SPAN>
1/1/2014</SPAN></SPAN>
7/1/2014</SPAN></SPAN>
3.625</SPAN></SPAN>
7/1/2013</SPAN></SPAN>
1/1/2014</SPAN></SPAN>
1.75</SPAN></SPAN>
1/1/2013</SPAN></SPAN>
7/1/2013</SPAN></SPAN>
2.5</SPAN></SPAN>
7/1/2012</SPAN></SPAN>
1/1/2013</SPAN></SPAN>
2.75</SPAN></SPAN>
1/1/2012</SPAN></SPAN>
7/1/2012</SPAN></SPAN>
8.125</SPAN></SPAN>
7/1/2011</SPAN></SPAN>
1/1/2012</SPAN></SPAN>
4.125</SPAN></SPAN>
1/1/2011</SPAN></SPAN>
7/1/2011</SPAN></SPAN>
12.5</SPAN></SPAN>
7/1/2010</SPAN></SPAN>
1/1/2011</SPAN></SPAN>
14.000</SPAN></SPAN>
1/1/2010</SPAN></SPAN>
7/1/2010</SPAN></SPAN>
4.25</SPAN></SPAN>

<TBODY>
</TBODY>
Etc etc. </SPAN></SPAN>

On a Sheet 2 I have a list of dates
</SPAN></SPAN>

Dates</SPAN></SPAN>
6/25/1987</SPAN></SPAN>
6/20/2010</SPAN></SPAN>
2/13/2014</SPAN></SPAN>
4/15/1990</SPAN></SPAN>
6/12/1991</SPAN></SPAN>
4/24/1987</SPAN></SPAN>
1/24/2010</SPAN></SPAN>
8/24/2011</SPAN></SPAN>



<TBODY>
</TBODY>
I am looking for a formula that will identify and return the value in column C if the date in question is in between column A and B.</SPAN></SPAN>
Is this possible?
</SPAN></SPAN>
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Your date ranges overlap..

7/1/2013, should that return 1.75 or 2.5 ?
1/1/2013, should that return 2.5 or 2.75 ?

Also, can you sort the dates ASCENDING by column A (oldest dates on top) ?
 
Upvote 0
7/1/2013 should return 1.75
1/1/2013 should return 2.5


yes, I can sort acending, if need be i can modify the matrix to not overlap, if that makes this easier.
 
Upvote 0
If the dates are sorted Ascending by column A, and given your clarification of the overlaps...

try this assuming both sheets have the dates beginning in A2.
=LOOKUP('Sheet 2'!A2,'Sheet 1'!A$2:C$10)


FYI, column B (the high end of each date range) is not required.
 
Upvote 0
The vlookup you have included does not show a column index, or lookup range, am I missing something?

I believe this may be more complex than a Vlookup, as the search data is not an exact match,
perhaps my phrasing is off, I am looking for something that will do something like this

If x is between A and B return C
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,712
Members
449,093
Latest member
Mnur

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