Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
zubee
 
Posts: n/a
Default Excel formula that does this...

Hi all,
I'm looking for a simple formula that will count the number of records that
meet these criteria. It doesn't matter if it's "countif", "sumif",
"sumproduct", etc... as long as it counts the number of records that meet the
criteria.
This is an example put in logical format:

=sumif((same_range,"one answer" OR same_range, "another answer") AND
(different_range, "required answer"))

Again, I'm looking for the count of (criteria OR criteria OR criteria) AND
(criteria)
Thanks for any help!


--
Cheers
  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

The equivalent of =sumif():

=sumproduct(--(a1:a10="one"),--(b1:b10="two"),c1:c10)
or
=SUMPRODUCT((A1:A10={"One","Not One"})*(B1:B10="two")*C1:C10)

For =Countif()

=sumproduct(--(a1:a10="one"),--(b1:b10="two"))
or
=SUMPRODUCT((A1:A10={"One","Not One"})*(B1:B10="two"))

zubee wrote:

Hi all,
I'm looking for a simple formula that will count the number of records that
meet these criteria. It doesn't matter if it's "countif", "sumif",
"sumproduct", etc... as long as it counts the number of records that meet the
criteria.
This is an example put in logical format:

=sumif((same_range,"one answer" OR same_range, "another answer") AND
(different_range, "required answer"))

Again, I'm looking for the count of (criteria OR criteria OR criteria) AND
(criteria)
Thanks for any help!

--
Cheers


--

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
Why does Excel show a formula in ONE cell ? edpaul Excel Discussion (Misc queries) 1 August 12th 05 07:29 PM
Excel CHALLENGE...3 questions(indirect,rank,array formula)... Mlowry Excel Worksheet Functions 8 August 1st 05 07:34 AM
converting formula from lotus.123 to excel zaharah Excel Worksheet Functions 2 July 27th 05 03:04 PM
How do I get the formula bar in excel 2003 unionhall Excel Discussion (Misc queries) 1 February 17th 05 10:10 AM
Suddenly Excel can't calculate formula!!! Bob H Excel Worksheet Functions 2 November 30th 04 08:35 PM


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