Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Multiple Criteria in Sum if Formula

Hi,
How to put multiple Criterias in Sum if formula???

If the data in A1 & B1 matches as per the criteria, it should add Cell C1...
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Multiple Criteria in Sum if Formula

If the data in A1 & B1 matches as per the criteria

It would have been better if you told us what the criteria are.

Try something like this:

=SUMPRODUCT(--(A1:A10="criteria1"),--(B1:B10="criteria2"),C1:C10)

Better to use cells to hold the criteria:

E1 = criteria1
F1 = criteria2

=SUMPRODUCT(--(A1:A10=E1),--(B1:B10=F1),C1:C10)

If you're using Excel 2007:

=SUMIFS(C1:C10,A1:A10,"criteria1",B1:B10,"criteria 2")

=SUMIFS(C1:C10,A1:A10,E1,B1:B10,F1)

In all of the above formulas if criteriaN is a NUMBER then don't use the
quotes.

=SUMPRODUCT(--(A1:A10=10),--(B1:B10=0),C1:C10)


--
Biff
Microsoft Excel MVP


"naveeenc" wrote in message
...
Hi,
How to put multiple Criterias in Sum if formula???

If the data in A1 & B1 matches as per the criteria, it should add Cell
C1...



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Multiple Criteria in Sum if Formula

Use SUMPRODUCT. See countless examples in the archives of this group.
--
David Biddulph

naveeenc wrote:
Hi,
How to put multiple Criterias in Sum if formula???

If the data in A1 & B1 matches as per the criteria, it should add
Cell C1...



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 506
Default Multiple Criteria in Sum if Formula

Try this€¦

If you want only to show C1 value when A1 & B1 values are matching then use
this formula
=IF(OR(A1="",B1=""),"",IF(A1=B1,C1,"A1 & B1 IS NOT MATCHING"))

If you want to sum A1 to C1 when a1 & b1 values are matching then use this
formula
=IF(OR(A1="",B1=""),"",IF(A1=B1,SUM(A1:C1),"A1 & B1 IS NOT MATCHING"))

If this post helps, Click Yes!

--------------------
(Ms-Exl-Learner)
--------------------



"naveeenc" wrote:

Hi,
How to put multiple Criterias in Sum if formula???

If the data in A1 & B1 matches as per the criteria, it should add Cell C1...

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
Sum if formula using multiple criteria Jeremy Excel Discussion (Misc queries) 4 June 26th 09 01:35 AM
Multiple Criteria formula Rodney Excel Discussion (Misc queries) 5 February 23rd 09 09:41 PM
Formula to sum multiple columns on multiple criteria vito Excel Discussion (Misc queries) 2 November 15th 07 03:30 PM
multiple criteria formula scott Excel Worksheet Functions 1 September 18th 06 09:08 PM
How do I set up a formula with multiple criteria? EFloyd Excel Worksheet Functions 1 February 2nd 05 08:13 PM


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