jeremypyle
Board Regular
- Joined
- May 30, 2011
- Messages
- 173
Hi,
I want to count the number of occurrences of words or phrases in columns even if there are multiple phrases or words in one cell.
Suppose I have the following:
a1=red cow
a2=blue cow
a3=red cow
a4=yellow cow, red cow
a5=blue cow
a6=red cow
Now I want a formula that will result in the following:
b1=red cow4
b2=blue cow2
b3=yellow cow1
b4=blue cow1
I will have several hundred thousand items in column A so I need a formula that I can simply drag down in column B that will show the number of the occurence of each phrase.
Is it also possible to make a formula that will do something similar except over multiple columns?
For example:
a1=red cow
a2=blue cow
a3=red cow
a4=yellow cow, red cow
a5=blue cow
a6=red cow
b1=black cow
b2=blue cow
b3=red cow
b4=pink cow, red cow
b5=orange cow
c1=pink cow
c2=milking cow
c3=purple cow
c4=black cow
c5=blue cow, red cow
c6=red cow
c7=white cow
Then in d1, I need the formula that will result in the following:
d1=red cow8
d2=blue cow4
d3=yellow cow1
d4=black cow2
d5=pink cow2
d6=orange cow1
d7=milking cow1
d8=purple cow1
d9=white cow1
I'm stuck so would greatly appreciate anybody's help on this. Thanks so much
I want to count the number of occurrences of words or phrases in columns even if there are multiple phrases or words in one cell.
Suppose I have the following:
a1=red cow
a2=blue cow
a3=red cow
a4=yellow cow, red cow
a5=blue cow
a6=red cow
Now I want a formula that will result in the following:
b1=red cow4
b2=blue cow2
b3=yellow cow1
b4=blue cow1
I will have several hundred thousand items in column A so I need a formula that I can simply drag down in column B that will show the number of the occurence of each phrase.
Is it also possible to make a formula that will do something similar except over multiple columns?
For example:
a1=red cow
a2=blue cow
a3=red cow
a4=yellow cow, red cow
a5=blue cow
a6=red cow
b1=black cow
b2=blue cow
b3=red cow
b4=pink cow, red cow
b5=orange cow
c1=pink cow
c2=milking cow
c3=purple cow
c4=black cow
c5=blue cow, red cow
c6=red cow
c7=white cow
Then in d1, I need the formula that will result in the following:
d1=red cow8
d2=blue cow4
d3=yellow cow1
d4=black cow2
d5=pink cow2
d6=orange cow1
d7=milking cow1
d8=purple cow1
d9=white cow1
I'm stuck so would greatly appreciate anybody's help on this. Thanks so much