Hi Guys,
I am stuck…
It seems really easy to do when I look at it, but telling excel to do what I can clearly see is not so fun!!
Basically I have a list of clients (this list changes all the time so the formula needs to be dynamic)
Against each client is a product that they own. What I want to do is quickly find out what product each client owns the most of.
Example:
(the following in cells A1:C23
Client-Product-MainProd
John-apple-?
John-apple-?
John-beans-?
John-apple-?
John-beans-?
Frank-tomato-?
Frank-tomato-?
Frank-squash-?
Frank-squash-?
Frank-tomato-?
Tom-egg-?
Tom-egg-?
Tom-egg-?
Tom-egg-?
Jane-carrots-?
Jane-mango-?
Jane-mango-?
Jane-mango-?
Jane-carrots-?
Jane-mango-?
Jane-carrots-?
Jane-mango-?
So against each Client ID is a product. You can see that in all cases one product will be more common than the rest. So for John it is apples. Sometimes it is the only product a client has. Like for Tom, he only has eggs/
How do I count for each client individually their holdings in each product they own to then get a result of the product with the highest count... ???
So the result in the MajorProdResult should be:
Client-Product-MainProd
John-apple-apple
John-apple-apple
John-beans-apple
John-apple-apple
John-beans-apple
Frank-tomato-tomato
Frank-tomato-tomato
Frank-squash-tomato
Frank-squash-tomato
Frank-tomato-tomato
Tom-egg-egg
Tom-egg-egg
Tom-egg-egg
Tom-egg-egg
Jane-carrots-mango
Jane-mango-mango
Jane-mango-mango
Jane-mango-mango
Jane-carrots-mango
Jane-mango-mango
Jane-carrots-mango
Jane-mango-mango
Hope that makes sense . . .
Is this possible via Formula??
I can probably do it easily via VBA ... but i would like not to use any macro in this instance....
thank you for any time and help you may be able to provide!
Cheers
I am stuck…
It seems really easy to do when I look at it, but telling excel to do what I can clearly see is not so fun!!
Basically I have a list of clients (this list changes all the time so the formula needs to be dynamic)
Against each client is a product that they own. What I want to do is quickly find out what product each client owns the most of.
Example:
(the following in cells A1:C23
Client-Product-MainProd
John-apple-?
John-apple-?
John-beans-?
John-apple-?
John-beans-?
Frank-tomato-?
Frank-tomato-?
Frank-squash-?
Frank-squash-?
Frank-tomato-?
Tom-egg-?
Tom-egg-?
Tom-egg-?
Tom-egg-?
Jane-carrots-?
Jane-mango-?
Jane-mango-?
Jane-mango-?
Jane-carrots-?
Jane-mango-?
Jane-carrots-?
Jane-mango-?
So against each Client ID is a product. You can see that in all cases one product will be more common than the rest. So for John it is apples. Sometimes it is the only product a client has. Like for Tom, he only has eggs/
How do I count for each client individually their holdings in each product they own to then get a result of the product with the highest count... ???
So the result in the MajorProdResult should be:
Client-Product-MainProd
John-apple-apple
John-apple-apple
John-beans-apple
John-apple-apple
John-beans-apple
Frank-tomato-tomato
Frank-tomato-tomato
Frank-squash-tomato
Frank-squash-tomato
Frank-tomato-tomato
Tom-egg-egg
Tom-egg-egg
Tom-egg-egg
Tom-egg-egg
Jane-carrots-mango
Jane-mango-mango
Jane-mango-mango
Jane-mango-mango
Jane-carrots-mango
Jane-mango-mango
Jane-carrots-mango
Jane-mango-mango
Hope that makes sense . . .
Is this possible via Formula??
I can probably do it easily via VBA ... but i would like not to use any macro in this instance....
thank you for any time and help you may be able to provide!
Cheers