#1   Report Post  
Posted to microsoft.public.excel.misc
saybut
 
Posts: n/a
Default countif help


Hi,

Could anyone tell me how to/if its possible to use count if but specify
several criteria for the same count?

I currently have one =countif(E:E,"DAR") I'm trying to sum up, "DAR",
"DAC", "DAO" in the same cell. I thought something like
=countif(E:E,"DAR","DAC","DAO") but it doesnt work & I can't figure out
what to do!

any help is greatly appreciated.


--
saybut
------------------------------------------------------------------------
saybut's Profile: http://www.excelforum.com/member.php...fo&userid=5949
View this thread: http://www.excelforum.com/showthread...hreadid=528093

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default countif help


Try this:

A1: =SUMPRODUCT(COUNTIF(E:E,{"DAR","DAC","DAO"}))

(Note the curly braces around the criteria array)

Does that help?

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=528093

  #3   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default countif help

Hi

Use three separate COUNTIFs and add them together:
=countif(E:E,"DAR") + countif(E:E,"DAO") + countif(E:E,"DAC")

Andy.

"saybut" wrote in
message ...

Hi,

Could anyone tell me how to/if its possible to use count if but specify
several criteria for the same count?

I currently have one =countif(E:E,"DAR") I'm trying to sum up, "DAR",
"DAC", "DAO" in the same cell. I thought something like
=countif(E:E,"DAR","DAC","DAO") but it doesnt work & I can't figure out
what to do!

any help is greatly appreciated.


--
saybut
------------------------------------------------------------------------
saybut's Profile:
http://www.excelforum.com/member.php...fo&userid=5949
View this thread: http://www.excelforum.com/showthread...hreadid=528093



  #4   Report Post  
Posted to microsoft.public.excel.misc
saybut
 
Posts: n/a
Default countif help


Hi Ron,

thats brilliant thanks. It works a treat. I don't know if you changed
your post but it came through on email as "sumproduct" rather than just
"sum". The both do the same though.

Thanks again.

mark.


--
saybut
------------------------------------------------------------------------
saybut's Profile: http://www.excelforum.com/member.php...fo&userid=5949
View this thread: http://www.excelforum.com/showthread...hreadid=528093

  #5   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default countif help


Mark

Thanks for the feedback...I'm glad that worked for you.

Yeah...I edited the post to change it from SUMPRODUCT to SUM.
I thought I could finish the edit before the forum posted up to the
newsgroups...but, evidently not.

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=528093

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 Formula /Sort Bug??? orcfodder Excel Discussion (Misc queries) 2 January 12th 06 10:04 AM
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


All times are GMT +1. The time now is 02:47 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"