help with IF AND formula

mdorbach

New Member
Joined
Dec 21, 2016
Messages
1
hello you all,
i need some help with a formula
i have a list of ID numbers and corresponding dates on one table. on the other table i have a list of the same ID numbers but for each one there are several dates.
i need to find a way to find the closest date in the second table to the first list for each ID number.
e.g.


table 1
1 12.12.2006
2 15.07.2008
3 06.09.2012
4 08.10.2011


table 2
1 15.12.2001
1 16.01.2002
1 20.03.2004
1 05.04.2015
2 29.03.2015
2 16.05.2015
2 16.07.2016
2 17.07.2016
3 20.06.2001
3 30.01.2000


any ideas?


10X
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

FDibbins

Well-known Member
Joined
Feb 16, 2013
Messages
6,723
Hi, welcome to the board :)

So, what would some sample answers look like?
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,682
Messages
5,838,784
Members
430,568
Latest member
bortey

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
Top