VLOOKUP or INDEX/MATCH if date falls within range and value matches

NAS__

New Member
Joined
Jun 29, 2017
Messages
1
Table 1:

DateCodePriceIdeal Price
01/01/20177?0
02/02/20174?0
03/03/20177?80

<tbody>
</tbody>







Table 2:
Sale DateCodePrice
01/10/20174$70
03/02/20174$65
03/06/20177$80

<tbody>
</tbody>

I want to populate table 1 prices based on a combination of matching codes and a matching date range, say +/-10 days.
I think I might need an array formula that will allow me to search for codes within an array of rows that meet the date criteria but I'm a rookie and I'm not sure I understand how those work. Thanks!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,214,832
Messages
6,121,843
Members
449,051
Latest member
excelquestion515

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