Ok need some help here. I'm working on a spreadsheet to show sales in a specified date range but only if the stock number in the database table falls in a range of stock numbers from a different worksheet.
Here's the way I need it to work.
I have a StockNumbers worksheet and I'm running a query on it to pull in any stock numbers entered in a specified date range. I have a second PartSales worksheet where I'm querying all sales in a specified date range. Problem is, the sales are from all stock numbers, regardless of when they were entered so when I query the sales, I need to compare the list of stock numbers on the PartSales worksheet to the list of stock numbers on the StockNumbers worksheet and only show sales for those stock numbers.
Basically what I'm looking for is a report that I can run for stock numbers that were entered between, say 1/1/2012 and 12/31/2012 and then I want to see all my sales for parts on those stock numbers for say 1/1/2013 thru 12/31/2013.
Any help would be greatly appreciated.
Here's the way I need it to work.
I have a StockNumbers worksheet and I'm running a query on it to pull in any stock numbers entered in a specified date range. I have a second PartSales worksheet where I'm querying all sales in a specified date range. Problem is, the sales are from all stock numbers, regardless of when they were entered so when I query the sales, I need to compare the list of stock numbers on the PartSales worksheet to the list of stock numbers on the StockNumbers worksheet and only show sales for those stock numbers.
Basically what I'm looking for is a report that I can run for stock numbers that were entered between, say 1/1/2012 and 12/31/2012 and then I want to see all my sales for parts on those stock numbers for say 1/1/2013 thru 12/31/2013.
Any help would be greatly appreciated.