jlcochran38
New Member
- Joined
- Jun 11, 2016
- Messages
- 9
I need some help with a formula (see tables below). What I need is for the Reference ID in the first table to lookup the Reference ID in the second table, and if the date range for that Reference ID in the first table falls inside one the date ranges within the second table, the price needs to show.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Reference ID[/TD]
[TD]Product Name[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]00123[/TD]
[TD]Product ABCD[/TD]
[TD]10/1/2016[/TD]
[TD]10/31/2016[/TD]
[TD]$59.00[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Reference ID[/TD]
[TD]Product Name[/TD]
[TD]Price[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[/TR]
[TR]
[TD]00123[/TD]
[TD]Product ABCD[/TD]
[TD]182.00[/TD]
[TD]7/1/2018[/TD]
[TD]6/30/2019[/TD]
[/TR]
[TR]
[TD]00124[/TD]
[TD]Product EFGH[/TD]
[TD]75.00[/TD]
[TD]7/1/2015[/TD]
[TD]6/30/2017[/TD]
[/TR]
[TR]
[TD]00124[/TD]
[TD]Product EFGH[/TD]
[TD]64.00[/TD]
[TD]7/1/2017[/TD]
[TD]6/30/2018[/TD]
[/TR]
[TR]
[TD]00124[/TD]
[TD]Product EFGH[/TD]
[TD]87.00[/TD]
[TD]7/1/2018[/TD]
[TD]6/30/2019[/TD]
[/TR]
[TR]
[TD]00123[/TD]
[TD]Product ABCD[/TD]
[TD]59.00[/TD]
[TD]7/1/2015[/TD]
[TD]6/30/2017[/TD]
[/TR]
[TR]
[TD]00123[/TD]
[TD]Product ABCD[/TD]
[TD]24.00[/TD]
[TD]7/1/2017[/TD]
[TD]6/30/2018[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Reference ID[/TD]
[TD]Product Name[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]00123[/TD]
[TD]Product ABCD[/TD]
[TD]10/1/2016[/TD]
[TD]10/31/2016[/TD]
[TD]$59.00[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Reference ID[/TD]
[TD]Product Name[/TD]
[TD]Price[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[/TR]
[TR]
[TD]00123[/TD]
[TD]Product ABCD[/TD]
[TD]182.00[/TD]
[TD]7/1/2018[/TD]
[TD]6/30/2019[/TD]
[/TR]
[TR]
[TD]00124[/TD]
[TD]Product EFGH[/TD]
[TD]75.00[/TD]
[TD]7/1/2015[/TD]
[TD]6/30/2017[/TD]
[/TR]
[TR]
[TD]00124[/TD]
[TD]Product EFGH[/TD]
[TD]64.00[/TD]
[TD]7/1/2017[/TD]
[TD]6/30/2018[/TD]
[/TR]
[TR]
[TD]00124[/TD]
[TD]Product EFGH[/TD]
[TD]87.00[/TD]
[TD]7/1/2018[/TD]
[TD]6/30/2019[/TD]
[/TR]
[TR]
[TD]00123[/TD]
[TD]Product ABCD[/TD]
[TD]59.00[/TD]
[TD]7/1/2015[/TD]
[TD]6/30/2017[/TD]
[/TR]
[TR]
[TD]00123[/TD]
[TD]Product ABCD[/TD]
[TD]24.00[/TD]
[TD]7/1/2017[/TD]
[TD]6/30/2018[/TD]
[/TR]
</tbody>[/TABLE]