Find the first date less than cell and return adjacent value..

JamesBowdidge

New Member
Joined
Nov 8, 2018
Messages
46
I have 2 columns A and B

In A there are 20 dates that get larger as you go down starting on 20/12/2018 but not necessarily by 1 IE 20/12/2018 then 01/01/19 then 02/01/19 then 10/01/19 then 15/01/19 etc)

In column B there are 20 numbers starting from 1 and ascending but again not increasing by 1.. doesn't matter what they are.. they just increase..

I have a separate tab with sequential dates starting at 01/01/2019 for the whole year..

What I want to do is...

1 - on the separate tab with the year of dates, lookup/find the first date from A that is LESS than the date on the tab, then
2 - return the number in the adjacent cell B

I think I am having a brain fart cos I just cant work out how to do it...


so the first tab looks like this...



[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[/TR]
[TR]
[TD]20/12/2018
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]01/01/2019[/TD]
[TD]1972[/TD]
[/TR]
[TR]
[TD]04/01/2019[/TD]
[TD]2982[/TD]
[/TR]
[TR]
[TD]09/01/2019[/TD]
[TD]6924[/TD]
[/TR]
[TR]
[TD]16/01/2019[/TD]
[TD]10880[/TD]
[/TR]
</tbody>[/TABLE]



Second tab looks like this, with the result im expecting in the second row.. I need to formula for this second row...


[TABLE="class: grid, width: 100, align: center"]
<tbody>[TR]
[TD]01/01/2019[/TD]
[TD]02/01/2019[/TD]
[TD]03/01/2019[/TD]
[TD]04/01/2019[/TD]
[TD]05/01/2019[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1972[/TD]
[TD]1972[/TD]
[TD]1972[/TD]
[TD]2982[/TD]
[/TR]
</tbody>[/TABLE]

Been doing my head in all day..

thanks

James
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
How about
=INDEX(Sheet1!$B$2:$B$6,MATCH(A1-1,Sheet1!$A$2:$A$6,1))
 
Upvote 0
-1... Jesus, thats all it was... I gave up with the index/match when all I needed was a goddam -1...

Thank you sooooo much..

CHeers

J
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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