lizardbreath
Board Regular
- Joined
- Feb 23, 2012
- Messages
- 54
Hello,
I will do my best to explain what I am looking to do.
1) Column A has a person's name
2) The top columns have all 50 states
3) The states that the people have licenses in will have an "x" in them.
So it would look something like this
[TABLE="width: 435"]
<tbody>[TR]
[TD][/TD]
[TD]CA[/TD]
[TD]AZ[/TD]
[TD]FL[/TD]
[TD]OR[/TD]
[TD]NV[/TD]
[/TR]
[TR]
[TD]Betty Sue[/TD]
[TD]X[/TD]
[TD][/TD]
[TD]X[/TD]
[TD][/TD]
[TD]X[/TD]
[/TR]
[TR]
[TD]Alert Einstein[/TD]
[TD]X[/TD]
[TD]X[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]George Bush[/TD]
[TD]X[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Weighted Total[/TD]
[TD="align: right"]1.58[/TD]
[TD="align: right"]0.5[/TD]
[TD="align: right"]0.33[/TD]
[TD][/TD]
[TD="align: right"]0.33[/TD]
[/TR]
</tbody>[/TABLE]
What I am trying to do is derive an excel calculation (Or VBA function) that looks at all of the licenses that have an "x" in them for that 1 person. Then it takes 1 and divides it by the number of licenses with the X and that assigns a value for each of the licenses for that person.
As an example looking at Betty Sue in the image above. She has 3 licenses in CA, FL, and NV. If we took her 1 and divide it by 3 (for her 3 licenses), each of the states are given a weight of .33
For Albert Einstein he has an X in CA & AZ. So if you 1 and divide it by his two states, it gives them both a .5 weight. So CA & AZ would be allocated a weight of .5
Is this possible in excel?
I will do my best to explain what I am looking to do.
1) Column A has a person's name
2) The top columns have all 50 states
3) The states that the people have licenses in will have an "x" in them.
So it would look something like this
[TABLE="width: 435"]
<tbody>[TR]
[TD][/TD]
[TD]CA[/TD]
[TD]AZ[/TD]
[TD]FL[/TD]
[TD]OR[/TD]
[TD]NV[/TD]
[/TR]
[TR]
[TD]Betty Sue[/TD]
[TD]X[/TD]
[TD][/TD]
[TD]X[/TD]
[TD][/TD]
[TD]X[/TD]
[/TR]
[TR]
[TD]Alert Einstein[/TD]
[TD]X[/TD]
[TD]X[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]George Bush[/TD]
[TD]X[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Weighted Total[/TD]
[TD="align: right"]1.58[/TD]
[TD="align: right"]0.5[/TD]
[TD="align: right"]0.33[/TD]
[TD][/TD]
[TD="align: right"]0.33[/TD]
[/TR]
</tbody>[/TABLE]
What I am trying to do is derive an excel calculation (Or VBA function) that looks at all of the licenses that have an "x" in them for that 1 person. Then it takes 1 and divides it by the number of licenses with the X and that assigns a value for each of the licenses for that person.
As an example looking at Betty Sue in the image above. She has 3 licenses in CA, FL, and NV. If we took her 1 and divide it by 3 (for her 3 licenses), each of the states are given a weight of .33
For Albert Einstein he has an X in CA & AZ. So if you 1 and divide it by his two states, it gives them both a .5 weight. So CA & AZ would be allocated a weight of .5
Is this possible in excel?
Last edited: