I have been using a combination of Pivot Tables and IF logic statements to determine customer cross-sell however with 10's of thousands of rows of data Excel either stops responding or my computer shuts off completely due to the massive amount of processing capacity needed to execute these functions. I am hoping a VBA code could perform the same calculation an solve for the processing issues.
Objective: Calculate total number of distinct customers and bankers to determine product cross-sell. Cross-sell is only applied when the SAME Banker sells multiple products to the SAME Customer. If the second product is sold in a later month the cross sell is credited to the month of the first sale. See below example....
I would like the VBA code to return a summary of the total # of customers that were cross-sold by month (according to the above criteria)
For the data above it would return this...
Explanation:
thank you so much!
Objective: Calculate total number of distinct customers and bankers to determine product cross-sell. Cross-sell is only applied when the SAME Banker sells multiple products to the SAME Customer. If the second product is sold in a later month the cross sell is credited to the month of the first sale. See below example....
A | B | C | D | E |
Date | Credited Month | Customer name | Product | Banker |
10/02/20 | October | Smith | aaa | Dave |
10/10/20 | October | Smith | bbb | Sally |
09/10/20 | September | Williams | aaa | Mark |
11/02/20 | October | Smith | ccc | Dave |
11/08/20 | November | James | aaa | Sally |
11/08/20 | November | James | bbb | Sally |
I would like the VBA code to return a summary of the total # of customers that were cross-sold by month (according to the above criteria)
For the data above it would return this...
Summary by Months | September | October | November |
Total Customers | 1 | 2 | 1 |
Cross-Sell Customers | 0 | 1 | 1 |
% Cross Sell | 0% | 50% | 100% |
Explanation:
- In Sep Mark made 1 sale to 1 customer = 1 customer with no cross sell
- in Oct Dave made only 1 sale to Smith but another to Smith in Nov (since cross is credited to the month of the first sale by the same banker = 1 cross sell counts for Oct. Sally also sold to Smith but only 1 product = no cross sell so Smith counts as two customers (1 single sale customer and 1 cross sell customer for the month of Oct)
- In Nov Sally sold 2 products to the same customer = 1 cross sell for Nov
thank you so much!