I have this table of all my students for the semester.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]NAME[/TD]
[TD]CLASS[/TD]
[TD]WHAT IS YOUR FAVORITE FOOD?[/TD]
[/TR]
[TR]
[TD]Blanca[/TD]
[TD]Day[/TD]
[TD]Mexican[/TD]
[/TR]
[TR]
[TD]Chong[/TD]
[TD]Night[/TD]
[TD]Pizza[/TD]
[/TR]
[TR]
[TD]David[/TD]
[TD]Day[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Eva[/TD]
[TD]Night[/TD]
[TD]Ice Cream[/TD]
[/TR]
[TR]
[TD]Fran[/TD]
[TD]Day[/TD]
[TD]Nachos[/TD]
[/TR]
[TR]
[TD]Frankie[/TD]
[TD]Day[/TD]
[TD]Pizza[/TD]
[/TR]
[TR]
[TD]Gretchen[/TD]
[TD]Day[/TD]
[TD]Ice Cream[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Night[/TD]
[TD]Burgers[/TD]
[/TR]
[TR]
[TD]Mandy[/TD]
[TD]Night[/TD]
[TD]Pizza[/TD]
[/TR]
[TR]
[TD]Pablo[/TD]
[TD]Night[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Penelope[/TD]
[TD]Day[/TD]
[TD]Candy[/TD]
[/TR]
[TR]
[TD]Prince[/TD]
[TD]Day[/TD]
[TD]Fruit[/TD]
[/TR]
[TR]
[TD]Richard[/TD]
[TD]Day[/TD]
[TD]Apples[/TD]
[/TR]
[TR]
[TD]Sandra[/TD]
[TD]Night[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sheila[/TD]
[TD]Night[/TD]
[TD]Fries[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]Day[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
When I filter by Class>Night, I get this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]NAME[/TD]
[TD]CLASS[/TD]
[TD]WHAT IS YOUR FAVORITE FOOD?[/TD]
[/TR]
[TR]
[TD]Chong[/TD]
[TD]Night[/TD]
[TD]Pizza[/TD]
[/TR]
[TR]
[TD]Eva[/TD]
[TD]Night[/TD]
[TD]Ice Cream[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Night[/TD]
[TD]Burgers[/TD]
[/TR]
[TR]
[TD]Mandy[/TD]
[TD]Night[/TD]
[TD]Pizza[/TD]
[/TR]
[TR]
[TD]Pablo[/TD]
[TD]Night[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sandra[/TD]
[TD]Night[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sheila[/TD]
[TD]Night[/TD]
[TD]Fries[/TD]
[/TR]
</tbody>[/TABLE]
I use this formula to calculate the # of night students I have, which is awesome because it ignores my hidden values: =SUBTOTAL(3, B2:B1000)
This formula returns the value 7. Just what I need.
My question is, is there a 'subtotal' type formula for non-numerical values? I am trying to extract a simple list of all the answers to WHAT IS YOUR FAVORITE FOOD? in a column by itself. When I use this formula =C2 and drag the formula down, I get the list below. When I filter my main list to show Night students, the list remains the same because it won't ignore hidden values. I want the list to ONLY include answers from my Night students. I tried using a Pivot Table but it groups similar answers, which I don't want. If my list says Pizza 3 times, I want Pizza to show up 3 times.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]WHAT IS YOUR FAVORITE FOOD?[/TD]
[/TR]
[TR]
[TD]Mexican[/TD]
[/TR]
[TR]
[TD]Pizza[/TD]
[/TR]
[TR]
[TD]Tacos[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[/TR]
[TR]
[TD]Nachos[/TD]
[/TR]
[TR]
[TD]Pizza[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[/TR]
[TR]
[TD]Burgers[/TD]
[/TR]
[TR]
[TD]Pizza[/TD]
[/TR]
[TR]
[TD]Potatoes[/TD]
[/TR]
[TR]
[TD]Candy[/TD]
[/TR]
[TR]
[TD]Fruit[/TD]
[/TR]
[TR]
[TD]Apples[/TD]
[/TR]
[TR]
[TD]Fries[/TD]
[/TR]
[TR]
[TD]Fries[/TD]
[/TR]
[TR]
[TD]Soda[/TD]
[/TR]
</tbody>[/TABLE]
Thank you! I hope this makes sense.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]NAME[/TD]
[TD]CLASS[/TD]
[TD]WHAT IS YOUR FAVORITE FOOD?[/TD]
[/TR]
[TR]
[TD]Blanca[/TD]
[TD]Day[/TD]
[TD]Mexican[/TD]
[/TR]
[TR]
[TD]Chong[/TD]
[TD]Night[/TD]
[TD]Pizza[/TD]
[/TR]
[TR]
[TD]David[/TD]
[TD]Day[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Eva[/TD]
[TD]Night[/TD]
[TD]Ice Cream[/TD]
[/TR]
[TR]
[TD]Fran[/TD]
[TD]Day[/TD]
[TD]Nachos[/TD]
[/TR]
[TR]
[TD]Frankie[/TD]
[TD]Day[/TD]
[TD]Pizza[/TD]
[/TR]
[TR]
[TD]Gretchen[/TD]
[TD]Day[/TD]
[TD]Ice Cream[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Night[/TD]
[TD]Burgers[/TD]
[/TR]
[TR]
[TD]Mandy[/TD]
[TD]Night[/TD]
[TD]Pizza[/TD]
[/TR]
[TR]
[TD]Pablo[/TD]
[TD]Night[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Penelope[/TD]
[TD]Day[/TD]
[TD]Candy[/TD]
[/TR]
[TR]
[TD]Prince[/TD]
[TD]Day[/TD]
[TD]Fruit[/TD]
[/TR]
[TR]
[TD]Richard[/TD]
[TD]Day[/TD]
[TD]Apples[/TD]
[/TR]
[TR]
[TD]Sandra[/TD]
[TD]Night[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sheila[/TD]
[TD]Night[/TD]
[TD]Fries[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]Day[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
When I filter by Class>Night, I get this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]NAME[/TD]
[TD]CLASS[/TD]
[TD]WHAT IS YOUR FAVORITE FOOD?[/TD]
[/TR]
[TR]
[TD]Chong[/TD]
[TD]Night[/TD]
[TD]Pizza[/TD]
[/TR]
[TR]
[TD]Eva[/TD]
[TD]Night[/TD]
[TD]Ice Cream[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Night[/TD]
[TD]Burgers[/TD]
[/TR]
[TR]
[TD]Mandy[/TD]
[TD]Night[/TD]
[TD]Pizza[/TD]
[/TR]
[TR]
[TD]Pablo[/TD]
[TD]Night[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sandra[/TD]
[TD]Night[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sheila[/TD]
[TD]Night[/TD]
[TD]Fries[/TD]
[/TR]
</tbody>[/TABLE]
I use this formula to calculate the # of night students I have, which is awesome because it ignores my hidden values: =SUBTOTAL(3, B2:B1000)
This formula returns the value 7. Just what I need.
My question is, is there a 'subtotal' type formula for non-numerical values? I am trying to extract a simple list of all the answers to WHAT IS YOUR FAVORITE FOOD? in a column by itself. When I use this formula =C2 and drag the formula down, I get the list below. When I filter my main list to show Night students, the list remains the same because it won't ignore hidden values. I want the list to ONLY include answers from my Night students. I tried using a Pivot Table but it groups similar answers, which I don't want. If my list says Pizza 3 times, I want Pizza to show up 3 times.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]WHAT IS YOUR FAVORITE FOOD?[/TD]
[/TR]
[TR]
[TD]Mexican[/TD]
[/TR]
[TR]
[TD]Pizza[/TD]
[/TR]
[TR]
[TD]Tacos[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[/TR]
[TR]
[TD]Nachos[/TD]
[/TR]
[TR]
[TD]Pizza[/TD]
[/TR]
[TR]
[TD]Ice Cream[/TD]
[/TR]
[TR]
[TD]Burgers[/TD]
[/TR]
[TR]
[TD]Pizza[/TD]
[/TR]
[TR]
[TD]Potatoes[/TD]
[/TR]
[TR]
[TD]Candy[/TD]
[/TR]
[TR]
[TD]Fruit[/TD]
[/TR]
[TR]
[TD]Apples[/TD]
[/TR]
[TR]
[TD]Fries[/TD]
[/TR]
[TR]
[TD]Fries[/TD]
[/TR]
[TR]
[TD]Soda[/TD]
[/TR]
</tbody>[/TABLE]
Thank you! I hope this makes sense.