Hi, sooo.....
I have list in table 1 (below) and I want to count in table 2, the number times the text in table 2 column A appear in the list from table 1. BUT i need to to exclude any entries that are in A4 or A5 from table2.
I can do count if but i cant figure out how to exclude.
for the count if ive got in table2 B1. =COUNTIF('table1'!$A:$A,"*"&A1&"*")
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]ab/home/west[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]ab/home/east[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]ab/home/east/up[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]ab/home/up[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]ab/home/down[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]ab/away/east[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]ab/away new/west[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]ab/state/east[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]ab/state new/east[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]up[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]down[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]east[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]away[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]state[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have list in table 1 (below) and I want to count in table 2, the number times the text in table 2 column A appear in the list from table 1. BUT i need to to exclude any entries that are in A4 or A5 from table2.
I can do count if but i cant figure out how to exclude.
for the count if ive got in table2 B1. =COUNTIF('table1'!$A:$A,"*"&A1&"*")
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]ab/home/west[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]ab/home/east[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]ab/home/east/up[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]ab/home/up[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]ab/home/down[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]ab/away/east[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]ab/away new/west[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]ab/state/east[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]ab/state new/east[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]up[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]down[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]east[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]away[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]state[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]