I have 8000 line file that I am trying to identify a particular discount amount against another file of about 3000 lines. I have to match an item # plus a start and end date with the other file within a date range and bring back a discount/dollar amount. The table will look like this.
File Needed To Populate
[pre]
[/pre]
Thanks!
File Needed To Populate
[pre]
Code:
Items Start Date End Date Discount Amount
Item 1 7/8/12 7/14/12 ?
Item 1 7/22/12 7/28/12 ?
Item 1 7/29/13 8/4/12 ?
Item 2 7/8/12 7/14/12 ?
Item 2 7/22/12 7/28/12 ?
Item 2 7/29/13 8/4/12 ?
Item 2 8/5/12 8/11/12 ?
Item 3 7/29/13 8/4/12 ?
Item 3 8/5/12 8/11/12 ?
Item 4 7/8/12 7/14/12 ?
Item 4 7/22/12 7/28/12 ?
Item 4 7/29/13 8/4/12 ?
Item 5 7/22/12 7/28/12 ?
Item 6 7/8/12 7/14/12 ?
Item 6 7/22/12 7/28/12 ?
Item 6 7/29/13 8/4/12 ?
Item 6 8/5/12 8/11/12 ?
===============================================================================
Data Table
Items Start Date End Date Discount Amount
Item 1 6/24/12 7/1/12 $2.75
Item 1 7/2/12 8/4/12 $2.75
Item 1 9/2/12 9/30/12 $2.75
Item 2 10/1/12 10/27/12 $2.75
Item 2 11/22/12 1/5/13 $4.44
Item 2 7/2/12 7/30/12 $2.75
Item 2 8/1/12 8/27/12 $3.50
Item 2 11/22/12 1/5/13 $4.44
Item 2 10/14/12 11/17/12 $2.50
Item 3 12/2/12 12/29/12 $2.75
Item 3 12/30/12 3/2/13 $2.75
Item 3 7/4/12 7/29/12 $5.50
Item 3 9/2/12 9/30/12 $2.75
Item 3 8/1/12 8/27/12 $2.75
Item 3 10/28/12 12/29/12 $2.75
Item 4 7/1/12 7/15/12 $2.50
Item 4 7/16/12 8/1/12 $2.75
Item 4 10/1/12 10/27/12 $2.50
Item 4 10/28/12 12/29/12 $2.75
Item 4 7/8/12 9/8/12 $2.75
Item 4 10/14/12 11/17/12 $2.50
Item 4 12/2/12 12/29/12 $2.75
Item 4 10/14/12 11/17/12 $2.50
Item 4 10/14/12 11/17/12 $2.50
Item 5 10/14/12 11/17/12 $2.50
Item 5 7/8/12 9/8/12 $2.75
Item 5 10/14/12 11/17/12 $2.50
Item 5 7/8/12 9/8/12 $2.75
Item 5 6/24/12 7/1/12 $6.75
Item 5 7/2/12 8/4/12 $2.75
Item 6 10/14/12 11/17/12 $2.50
Item 6 10/28/12 11/17/12 $2.75
Item 6 7/2/12 8/4/12 $4.44
Item 6 6/24/12 7/1/12 $2.75
Thanks!