Looking up last entry before certain date

fbert

New Member
Joined
Sep 9, 2015
Messages
12
Hi,

my data looks like this:


img upload

Downloadable here: Sample data.xlsx - Speedy Share - upload your files here

I'm trying to get a formula that does what I did manually in Table 2, Column E.

In words: The first table gives me dates of yearly financial reportings per company. The second table gives me dates for M&A transactions these companies were involved in. In Column E in Table 2 I want to mark the financial reporting date that was the last one before the M&A transaction date.

I have no idea how to get there!

Thanks for your help.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Try this array formula entered with CTRL + SHIFT + ENTER

=MAX(IF((B$2:B$16=B21)*(D$2:D$16 < D21),D$2:D$16))
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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