LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
RJB RJB is offline
external usenet poster
 
Posts: 86
Default Count Number of Discrete Cells, Based on Another Column

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count number of cells and total in one column, based on another column suffix Pierre Excel Worksheet Functions 5 October 31st 07 12:28 AM
how to count number of highlighted cells in column Mike K[_2_] Excel Discussion (Misc queries) 5 May 9th 07 08:41 PM
Count no. of nonblank cells in one column based on criteria of ano Beach Lover Excel Discussion (Misc queries) 9 February 19th 07 03:39 PM
Count cells based on date range in another column [email protected] New Users to Excel 1 May 5th 05 08:11 PM
count number of cells based on TWO conditions (2 different columns Troi-Xanh Excel Worksheet Functions 2 February 12th 05 12:46 AM


All times are GMT +1. The time now is 05:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"