L
Legacy 313294
Guest
Hi,
I have a list of terms (list a) and a list of the states (list b) and I want to write a formula that counts when one of the values in list a contains one of the values from list b
Example
[TABLE="width: 500"]
<tbody>[TR]
[TD]list a[/TD]
[TD]list b[/TD]
[/TR]
[TR]
[TD]cars to buy in florida[/TD]
[TD]florida[/TD]
[/TR]
[TR]
[TD]florida places to buy cars[/TD]
[TD]new york[/TD]
[/TR]
[TR]
[TD]new york car rental[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]buy cars new york[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Desired output
[TABLE="width: 500"]
<tbody>[TR]
[TD]Output[/TD]
[TD]Count[/TD]
[/TR]
[TR]
[TD]florida[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]new york[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
Normally I would just use =countif(A1, "*florida*") and sum the total, however there are >50 variables on list b and it would be very time consuming. I'm sure there is a way to do this more efficiently, but can't seem to figure it out.
Any help would be much appreciated!
I have a list of terms (list a) and a list of the states (list b) and I want to write a formula that counts when one of the values in list a contains one of the values from list b
Example
[TABLE="width: 500"]
<tbody>[TR]
[TD]list a[/TD]
[TD]list b[/TD]
[/TR]
[TR]
[TD]cars to buy in florida[/TD]
[TD]florida[/TD]
[/TR]
[TR]
[TD]florida places to buy cars[/TD]
[TD]new york[/TD]
[/TR]
[TR]
[TD]new york car rental[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]buy cars new york[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Desired output
[TABLE="width: 500"]
<tbody>[TR]
[TD]Output[/TD]
[TD]Count[/TD]
[/TR]
[TR]
[TD]florida[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]new york[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
Normally I would just use =countif(A1, "*florida*") and sum the total, however there are >50 variables on list b and it would be very time consuming. I'm sure there is a way to do this more efficiently, but can't seem to figure it out.
Any help would be much appreciated!