I have a large set of data from which I am trying to generate information. I am having difficulty with the following example (obviously my data set is much larger than this):
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name
[/TD]
[TD]Favorite Color
[/TD]
[TD]# of Pets
[/TD]
[/TR]
[TR]
[TD]Joe[/TD]
[TD]yellow[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Kelly[/TD]
[TD]green[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]David[/TD]
[TD]green[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Richard[/TD]
[TD]orange[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Vicki[/TD]
[TD]blue[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
What I am trying to do is make a function that will determine how many different favorite colors there are for people who have X amount of pets. For example, there are 2 different favorite colors for people who own 3 pets.
Since my data set is large, I would like to create a formula that can do this over a ~5000 rows.
Thanks
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name
[/TD]
[TD]Favorite Color
[/TD]
[TD]# of Pets
[/TD]
[/TR]
[TR]
[TD]Joe[/TD]
[TD]yellow[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Kelly[/TD]
[TD]green[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]David[/TD]
[TD]green[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Richard[/TD]
[TD]orange[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Vicki[/TD]
[TD]blue[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
What I am trying to do is make a function that will determine how many different favorite colors there are for people who have X amount of pets. For example, there are 2 different favorite colors for people who own 3 pets.
Since my data set is large, I would like to create a formula that can do this over a ~5000 rows.
Thanks