ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Counting specified words in a column - macro if possible (https://www.excelbanter.com/excel-programming/303343-counting-specified-words-column-macro-if-possible.html)

John Hayden

Counting specified words in a column - macro if possible
 
Looking to count the number of times say the following words appear in
column 1
Mouse
Ant
Pig

Is there a code that will count each of these individually
so I can then offset the results into another column?

Grateful for advice
John



JulieD

Counting specified words in a column - macro if possible
 
Hi John

=COUNTIF(A:A,"mouse")
=COUNTIF(A:A,"ant")
=COUNTIF(A:A,"pig")

Cheers
JulieD

"John Hayden" wrote in message
...
Looking to count the number of times say the following words appear in
column 1
Mouse
Ant
Pig

Is there a code that will count each of these individually
so I can then offset the results into another column?

Grateful for advice
John






All times are GMT +1. The time now is 12:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com