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
 

Some videos you may like

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

FDibbins

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

So, what would some sample answers look like?
 

Watch MrExcel Video

Forum statistics

Threads
1,123,320
Messages
5,600,946
Members
414,417
Latest member
Nobu

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