Good evening,
In the format below I'm trying to do the following based on the items that a user would select from the Validation lists at left. For example, if a user were to select just "Joe" from the People list and leave the other 2 lists blank, the "Count" column would return the values for each item that "Joe" is associated with - so it would show 1 Joe, 1 Zebra and 1 Apple and zero on everything else. If a user selects Steve, the count column would show 2 Steve, 1 dog, 1 zebra, 1 apple and 1 banana and the rest zeros. If a user selects, Steve and Zebra the column would show 1 Steve, 1 zebra and 1 banana and the rest zeros. If the user were to just select "Orange" from the fruit list, the column would show 1 Bob, 1 elephant and 1 orange. If a user were not to select any values from the lists, every item in the data set would be counted (since nothing is being restricted based on the validation lists).
My goal in formatting the data this way is to link a series of pie charts that will enable end users in our org to graphically see the distribution of various categories based on the user-defined variables they select. So if they wanted to see what Steve prefers for animals and fruit, they would see that 50% of the time it's dogs, 50% zebras, 50% apples and 50% bananas. If they wanted to see what Steve and his Dog prefer they would see that 100% of time it's an apple. I will have about 1000 rows of data in this format.
My macro writing is poor so any formula suggestions would be most welcome. Thanks in advance for your insights!
Regards,
Jeff
In the format below I'm trying to do the following based on the items that a user would select from the Validation lists at left. For example, if a user were to select just "Joe" from the People list and leave the other 2 lists blank, the "Count" column would return the values for each item that "Joe" is associated with - so it would show 1 Joe, 1 Zebra and 1 Apple and zero on everything else. If a user selects Steve, the count column would show 2 Steve, 1 dog, 1 zebra, 1 apple and 1 banana and the rest zeros. If a user selects, Steve and Zebra the column would show 1 Steve, 1 zebra and 1 banana and the rest zeros. If the user were to just select "Orange" from the fruit list, the column would show 1 Bob, 1 elephant and 1 orange. If a user were not to select any values from the lists, every item in the data set would be counted (since nothing is being restricted based on the validation lists).
My goal in formatting the data this way is to link a series of pie charts that will enable end users in our org to graphically see the distribution of various categories based on the user-defined variables they select. So if they wanted to see what Steve prefers for animals and fruit, they would see that 50% of the time it's dogs, 50% zebras, 50% apples and 50% bananas. If they wanted to see what Steve and his Dog prefer they would see that 100% of time it's an apple. I will have about 1000 rows of data in this format.
My macro writing is poor so any formula suggestions would be most welcome. Thanks in advance for your insights!
Regards,
Jeff
Book1 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | |||||||||||
2 | |||||||||||
3 | Validation Lists | Data Set | Count | ||||||||
4 | People | Animals | Fruit | People | |||||||
5 | People | Joe | Zebra | Apple | Joe | ||||||
6 | Joe | Steve | Dog | Apple | Steve | ||||||
7 | Steve | Steve | Zebra | Banana | Bob | ||||||
8 | Bob | Bob | Elephant | Orange | |||||||
9 | Animals | ||||||||||
10 | Animals | Zebra | |||||||||
11 | Zebra | Elephant | |||||||||
12 | Elephant | Dog | |||||||||
13 | Dog | ||||||||||
14 | Fruit | ||||||||||
15 | Fruit | Apple | |||||||||
16 | Apple | Banana | |||||||||
17 | Banana | Orange | |||||||||
18 | Orange | ||||||||||
19 | |||||||||||
20 | |||||||||||
21 | |||||||||||
22 | |||||||||||
23 | |||||||||||
Sheet1 |