ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Count question (https://www.excelbanter.com/excel-discussion-misc-queries/67569-count-question.html)

Boulder257

Count question
 

Why can't I count the number of cells filled with text? For instance,
let's say I have Column A filled with either Coke or Pepsi. Why can't I
just count the number of Coke?


--
Boulder257
------------------------------------------------------------------------
Boulder257's Profile: http://www.excelforum.com/member.php...o&userid=20053
View this thread: http://www.excelforum.com/showthread...hreadid=505356


Chip Pearson

Count question
 
You can use the COUNTIF function. E.g.,

=COUNTIF(A1:A10,"coke")

This formula will return the number of times 'coke' appears in
range A1:A10.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Boulder257"
wrote
in message
...

Why can't I count the number of cells filled with text? For
instance,
let's say I have Column A filled with either Coke or Pepsi. Why
can't I
just count the number of Coke?


--
Boulder257
------------------------------------------------------------------------
Boulder257's Profile:
http://www.excelforum.com/member.php...o&userid=20053
View this thread:
http://www.excelforum.com/showthread...hreadid=505356




Otto Moehrbach

Count question
 
You can. Say your range is A1:A8.
COUNTIF(A1:A8,"Coke")
HTH Otto
"Boulder257" wrote
in message ...

Why can't I count the number of cells filled with text? For instance,
let's say I have Column A filled with either Coke or Pepsi. Why can't I
just count the number of Coke?


--
Boulder257
------------------------------------------------------------------------
Boulder257's Profile:
http://www.excelforum.com/member.php...o&userid=20053
View this thread: http://www.excelforum.com/showthread...hreadid=505356





All times are GMT +1. The time now is 07:02 PM.

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