Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I've tried the Google and many solutions, and keep coming up with wrong
answers. I have a list of customers, the types of merchandise they buy, and how much they spent on each product. I used SUMPRODUCT to calculate how much is spent on each product. (=SUMPRODUCT (Merchandise Column="criteria"*Revenue Column) Now I want to know what the average spend for each customer is. Here's where it gets tricky: A customer can buy the same type of merchandise several times. So a COUNTIF does not work - that tells me average spend per transaction for each type of merch, not by customer. I tried SUMPRODUCT (Merchandise Column="Criteria"*Revenue Column*Customer Column), that gave me an error. I tried replacing Customer Column in the above with SUM(IF(FREQUENCY(MATCH(Customer Column,Customer Column,0),MATCH(Customer Column,Customer Column,0))0,1)). THAT multiplied times the TOTAL number of discrete customers, not just the ones that bought this type of merchandise. I tried a couple of other things uglier than THAT. Please help. Thanks (For those who prefer examples, one follows) SAMPLE DATA: (Customer, Merchandise,Revenue) Bill, Yo-Yo, 5 Charlie, Guitar, 50 Dora, Lipstick, 10 Efrem, Pomade, 6 Fred, Yo-Yo, 5 Bill, Eyeliner, 7 George, Guitar, 65 Bill, Yo-Yo, 5 So, for Yo-Yo, I'd have SUMPRODUCT(Merch Column="Yo-Yo"*Revenue Column) =$15 What I'd like is average customer spend on Yo-Yos. I have two Yo-Yo customers - Bill and Fred. So $15/2 = $7.50. How do I get the count of Bill and Fred? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Count number of cells and total in one column, based on another column suffix | Excel Worksheet Functions | |||
how to count number of highlighted cells in column | Excel Discussion (Misc queries) | |||
Count no. of nonblank cells in one column based on criteria of ano | Excel Discussion (Misc queries) | |||
Count cells based on date range in another column | New Users to Excel | |||
count number of cells based on TWO conditions (2 different columns | Excel Worksheet Functions |