reducedjuice
Board Regular
- Joined
- Oct 29, 2008
- Messages
- 99
Hi All,
Can anyone pls assist with the following? I'll try and lay this out as clearly as possible:
Can anyone pls assist with the following? I'll try and lay this out as clearly as possible:
- I have 2 different worksheets, WS1 and WS2 (in different files but that doesn't matter)
- In WS1 Column A, I have a list of customer numbers. All values are unique, and there are no duplicates.
- In WS1 Column B, I have a date of a certain event for each customer
- In WS1 Column C, I have another date 28 days prior to the date in Column B (so, simply =B2-28)
- In WS1 Column D, I have another date 28 days ahead of the date in Column B (so, =B2+28)
- In WS2, I have transactional data for customers. Each row represents a unique transaction. A customer may have zero or multiple transactions.
- In WS2 Column A, the Customer Number for that transaction appears in the same format as WS1 Column A
- In WS2 Column B, the transaction date appears
- In WS2 Column C, the profit for the transaction appears
- If the Customer Number in WS1 Column A appears in WS2 Column A AND the transaction date in WS2 Column B is between the date range in WS1 Columns B and C, then I want it to return the number of instances (ie. transactions) there were for that specified customer in that date range.
- Using the same parametres as above, I want it to return the sum of all profit on the transactions that fell within that date range.