Hello,
I'm trying to use the following formula:
=COUNTIF(D2,"Vanilla")+COUNTIF(D2,"BlueBerry")+COUNTIF(D2,"Cherry")
I also would like to add if cell (D2) is blank, then use the data in Cell (C2). I'm not sure how to write that part of the formula.
Example Data Sheet:
[TABLE="width: 253"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD] C[/TD]
[TD] D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]Cherry[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]Vanilla[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]Blueberry[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD]Strawberry[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Banana[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Vanilla[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD]Banana[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD]Vanilla[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD]Blueberry[/TD]
[/TR]
</tbody>[/TABLE]
I'm trying to use the following formula:
=COUNTIF(D2,"Vanilla")+COUNTIF(D2,"BlueBerry")+COUNTIF(D2,"Cherry")
I also would like to add if cell (D2) is blank, then use the data in Cell (C2). I'm not sure how to write that part of the formula.
Example Data Sheet:
[TABLE="width: 253"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD] C[/TD]
[TD] D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]Cherry[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]Vanilla[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]Blueberry[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD]Strawberry[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Banana[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Vanilla[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD]Banana[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD]Vanilla[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD]Blueberry[/TD]
[/TR]
</tbody>[/TABLE]