[TABLE="class: outer_border, width: 600"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Apple[/TD]
[TD]Orange[/TD]
[TD]Kiwi[/TD]
[TD]Response 1[/TD]
[TD]Response 2[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]=countif(D2:E2, "Apple")
[/TD]
[TD]=countif(D2:E2,"Orange")[/TD]
[TD]=countif(D2:E2,"Kiwi")[/TD]
[TD]Apple[/TD]
[TD]Kiwi[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Do refer to the above for your understanding.
Given that as time goes by, I will have data add on Column F, G, H, I and etc onwards.
Is there any way for me to count the number of Apple, Orange, Kiwi starting from Column D onwards.
I do not want to set it as Table as I have plenty of worksheets and need to distribute to others to use.
I'm not considering of using the range of D2:Z2 or whichever wide range as to avoid any deletion of columns that may take place.
Is there any formula that will be able to detect the last notblank columns and make it as the range?
Thanks.
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Apple[/TD]
[TD]Orange[/TD]
[TD]Kiwi[/TD]
[TD]Response 1[/TD]
[TD]Response 2[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]=countif(D2:E2, "Apple")
[/TD]
[TD]=countif(D2:E2,"Orange")[/TD]
[TD]=countif(D2:E2,"Kiwi")[/TD]
[TD]Apple[/TD]
[TD]Kiwi[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Do refer to the above for your understanding.
Given that as time goes by, I will have data add on Column F, G, H, I and etc onwards.
Is there any way for me to count the number of Apple, Orange, Kiwi starting from Column D onwards.
I do not want to set it as Table as I have plenty of worksheets and need to distribute to others to use.
I'm not considering of using the range of D2:Z2 or whichever wide range as to avoid any deletion of columns that may take place.
Is there any formula that will be able to detect the last notblank columns and make it as the range?
Thanks.