Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Countif - problem counting text, other text

I have a database which lists addresses by city, state, zip. I have used
=COUNTIF(Database!H3:H33,"<A3""1") to count the number of times I see five
specific states appear (ID,UT,OR,NV,WA) BUT I now need to calculate the rest
of the states as "Other States". Must I list every other state abbrev.?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Countif - problem counting text, other text

=COUNTIF(Database!H3:H33,"<A3""1")

Not sure what that's counting but I'll take your word that it works!

Get the count of the *entire* range and then subtract the result of the
above formula. Something like this:

=COUNTA(Database!H3:H33)-COUNTIF(Database!H3:H33,"<A3""1")

--
Biff
Microsoft Excel MVP


"gmoore3055" wrote in message
...
I have a database which lists addresses by city, state, zip. I have used
=COUNTIF(Database!H3:H33,"<A3""1") to count the number of times I see
five
specific states appear (ID,UT,OR,NV,WA) BUT I now need to calculate the
rest
of the states as "Other States". Must I list every other state abbrev.?



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
Counting text problem - formula works initially Anne P Excel Worksheet Functions 3 July 8th 09 06:40 PM
counting a text value based on another text value. Rob K. Excel Discussion (Misc queries) 2 February 19th 09 04:26 AM
Counting a mixed text/number column based on text in another colum Sierra Vista Steve Excel Discussion (Misc queries) 3 December 17th 06 05:30 PM
Countif and Text - not counting karin Excel Discussion (Misc queries) 1 October 18th 05 07:43 PM
Counting Occurrence of Text within Text in Cells in Range. Jeremy N. Excel Worksheet Functions 1 September 8th 05 05:16 AM


All times are GMT +1. The time now is 04:15 AM.

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"