#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AJ
 
Posts: n/a
Default countif

I want to count the occurrences of multiple character strings eg. "AB" "XD"
and "CD". Is there an easier way than = (countif(1:100), "AB") +
(countif(1:100), "XD") etc.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default countif

=SUM(COUNTIF(A1:a100,{"AB","xd","cd"}))

AJ wrote:

I want to count the occurrences of multiple character strings eg. "AB" "XD"
and "CD". Is there an easier way than = (countif(1:100), "AB") +
(countif(1:100), "XD") etc.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AJ
 
Posts: n/a
Default countif

Thank you! Exactly what I am looking for. I tried to put something like
this together but didn't realize that I would have to use "SUM" and I admit
that I don't know when to use the characters "{" and "}" in a formula.

"Dave Peterson" wrote:

=SUM(COUNTIF(A1:a100,{"AB","xd","cd"}))

AJ wrote:

I want to count the occurrences of multiple character strings eg. "AB" "XD"
and "CD". Is there an easier way than = (countif(1:100), "AB") +
(countif(1:100), "XD") etc.


--

Dave Peterson

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
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM
countif, again Liz G Excel Worksheet Functions 2 November 1st 04 11:20 PM


All times are GMT +1. The time now is 01:35 PM.

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

About Us

"It's about Microsoft Excel"