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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,217,476
Messages
6,136,870
Members
450,028
Latest member
CHlEFS47

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