#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 85
Default Count Text In Column

I just need a formula to count how many times "ZB" appears in column H.

I've tried
=SUMPRODUCT(H1:H300="zb")
=COUNT("zb", H2:H300)
=COUNT(H2:H300, "zb")

This does not seem like a terribly difficult formula, but everything returns
0.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Count Text In Column

Try the following formula, substituting your range for the range A1:A16:

=COUNTIF(A1:A16,"=ZB")
--
Kevin Backmann


"Jeremy" wrote:

I just need a formula to count how many times "ZB" appears in column H.

I've tried
=SUMPRODUCT(H1:H300="zb")
=COUNT("zb", H2:H300)
=COUNT(H2:H300, "zb")

This does not seem like a terribly difficult formula, but everything returns
0.
Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Count Text In Column

Try like this:

=COUNTIF(H2:H300,"zb")
or
=SUMPRODUCT(--(H2:H300="zb"))


"Jeremy" wrote:

I just need a formula to count how many times "ZB" appears in column H.

I've tried
=SUMPRODUCT(H1:H300="zb")
=COUNT("zb", H2:H300)
=COUNT(H2:H300, "zb")

This does not seem like a terribly difficult formula, but everything returns
0.
Thanks in advance.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
lookup text in one column, count in another column dmshurley Excel Worksheet Functions 1 August 17th 07 11:32 PM
count text occurences in a column Daniel_ITSM Excel Discussion (Misc queries) 20 March 7th 07 08:46 PM
Count Text in Column? nastech Excel Discussion (Misc queries) 2 March 22nd 06 12:22 PM
how do I count the number of times text in column A matches text i Sheila Excel Worksheet Functions 2 November 16th 05 10:20 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


All times are GMT +1. The time now is 11:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"