Index match with closest date

L

Legacy 386498

Guest
Hi all,

I want to create a formula that will search the amount of a product in a division for the closest date given.

So, for the 2 images link, if I want to know the amount for Cakes in division 161 the nearest to the December 2nd, it would be 3.50$.

https://imageshack.com/i/pmP1dYlLj

https://imageshack.com/i/pn6sqAaXj

I thought that index and match would be the best formula, but I'm open to any suggestion.

Thanks and have a nice day.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
This is an array formula that must be entered with CTRL-SHIFT-ENTER.
Excel Workbook
ABCD
1DivisionProdAmountDate
2166Cakes1311/6/2017
3161Cakes14.511/10/2017
4161Cakes3.511/17/2017
5165Cakes511/27/2017
6164Fruit212/3/2017
7164Pan410/30/2017
8162Pan411/23/2017
9161Pan4.610/30/2017
10
11
12FindDiv161
13ProdCakes
14Date12/2/2017
15
16Amount3.5
Sheet



 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
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