URGENT - I need help with INDEX / VLOOKUP and looking up a value

jim.thornton

New Member
Joined
Jun 16, 2009
Messages
7
Table:

1/12/17, value1
1/13/17, value2
1/16/17, value3
1/17/17, value4


I have an appointment at 9am tomorrow morning and I need to get this fixed by then. I would really appreciate some help!

I need to create a formula which will retrieve a spreadsheet date from say column N1. Then, the formulate needs to search the date in the list and find the value next to it. HOWEVER, if the date is not in the list then it needs to return the previously listed date.

FOR EXAMPLE:

N1 = 1/12/17 --> The value returned would be value1
N1 = 1/14/17 --> The value returned would be value2
N1 = 1/15/17 --> The value returned would be value2
N1 = 1/16/17 --> The value returned would be value3

Can somone please help me? My formula is returning #N/A for a date that is not listed and I can't figure out how to return the previous date in the list.

=VLOOKUP(N1,'Sheet1'!A:B,2,FALSE)
 

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.

Forum statistics

Threads
1,224,825
Messages
6,181,190
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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