JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,687
- Office Version
- 365
- Platform
- Windows
I know CountIf can count the number of occurrences of a word in a range if each call in that range contains only a single word. Is there a formula that can count the number of occurrences of a word in a range where each cell may contains multiple words?
In this table, I would like the "house" count to be "3".
[TABLE="class: grid, width: 480"]
<tbody>[TR]
[TD="align: center"]R/C[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]house[/TD]
[TD="align: center"]1[/TD]
[TD]D4: =COUNTIF($C$4:$C$7,"house")[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD]dog[/TD]
[TD="align: center"]1[/TD]
[TD]D5: =COUNTIF($C$4:$C$7,"dog")[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD]house dog[/TD]
[TD="align: center"]0[/TD]
[TD]D6: =COUNTIF($C$4:$C$7,"cat")[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD]cat house
[/TD]
[TD="align: center"][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks
In this table, I would like the "house" count to be "3".
[TABLE="class: grid, width: 480"]
<tbody>[TR]
[TD="align: center"]R/C[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]house[/TD]
[TD="align: center"]1[/TD]
[TD]D4: =COUNTIF($C$4:$C$7,"house")[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD]dog[/TD]
[TD="align: center"]1[/TD]
[TD]D5: =COUNTIF($C$4:$C$7,"dog")[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD]house dog[/TD]
[TD="align: center"]0[/TD]
[TD]D6: =COUNTIF($C$4:$C$7,"cat")[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD]cat house
[/TD]
[TD="align: center"][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks