#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Sumif(or

Can I use Sumif and OR in combination to add a column if one or another
condition is present in another column, such as
=SUMIF(OR(M8:M264,"=Issued"),(M8:M264,"=Delivered" ),N8:N264)
where I want the sum of N8:N264 if M8:M264 is either "Issued" or "Delivered"
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sumif(or

Try it like this:

=SUM(SUMIF(M8:M264,{"Issued","Delivered"},N8:N264) )

Or, you could just use 2 SUMIFs:

=SUMIF(M8:M264,"Issued",N8:N264)+SUMIF(M8:M264,"De livered",N8:N264)

Or, maybe this:

=SUMPRODUCT(--(ISNUMBER(MATCH(M8:M264,{"Issued","Delivered"},0)) ),N8:N264)

Or, using cells to hold the criteria:

A1 = Issued
B1 = Delivered

=SUMIF(M8:M264,A1,N8:N264)+SUMIF(M8:M264,B1,N8:N26 4)
=SUMPRODUCT(--(ISNUMBER(MATCH(M8:M264,A1:B1,0))),N8:N264)


--
Biff
Microsoft Excel MVP


"Gmolatore" wrote in message
...
Can I use Sumif and OR in combination to add a column if one or another
condition is present in another column, such as
=SUMIF(OR(M8:M264,"=Issued"),(M8:M264,"=Delivered" ),N8:N264)
where I want the sum of N8:N264 if M8:M264 is either "Issued" or
"Delivered"



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Sumif(or

Thanks! Worked like a charm! Used two SumIf's as you suggested
=SUMIF(M8:M264,"Issued",N8:N264)+SUMIF(M8:M264,"De livered",N8:N264). I was
using a comma where you put the +, and I was using Sumif(OR( instead of SumIf
twice as in your suggestion. So those were the tips that made it all work! Is
there anywhere I can go to find lists of ways to use the Excel functions,
other than in Help in Excel?

"T. Valko" wrote:

Try it like this:

=SUM(SUMIF(M8:M264,{"Issued","Delivered"},N8:N264) )

Or, you could just use 2 SUMIFs:

=SUMIF(M8:M264,"Issued",N8:N264)+SUMIF(M8:M264,"De livered",N8:N264)

Or, maybe this:

=SUMPRODUCT(--(ISNUMBER(MATCH(M8:M264,{"Issued","Delivered"},0)) ),N8:N264)

Or, using cells to hold the criteria:

A1 = Issued
B1 = Delivered

=SUMIF(M8:M264,A1,N8:N264)+SUMIF(M8:M264,B1,N8:N26 4)
=SUMPRODUCT(--(ISNUMBER(MATCH(M8:M264,A1:B1,0))),N8:N264)


--
Biff
Microsoft Excel MVP


"Gmolatore" wrote in message
...
Can I use Sumif and OR in combination to add a column if one or another
condition is present in another column, such as
=SUMIF(OR(M8:M264,"=Issued"),(M8:M264,"=Delivered" ),N8:N264)
where I want the sum of N8:N264 if M8:M264 is either "Issued" or
"Delivered"




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sumif(or

You're welcome. Thanks for the feedback!

Is there anywhere I can go to find lists of ways to
use the Excel functions, other than in Help in Excel?


This site has a lot of general use formulas:

http://cpearson.com/excel/mainpage.aspx


--
Biff
Microsoft Excel MVP


"Gmolatore" wrote in message
...
Thanks! Worked like a charm! Used two SumIf's as you suggested
=SUMIF(M8:M264,"Issued",N8:N264)+SUMIF(M8:M264,"De livered",N8:N264). I was
using a comma where you put the +, and I was using Sumif(OR( instead of
SumIf
twice as in your suggestion. So those were the tips that made it all work!
Is
there anywhere I can go to find lists of ways to use the Excel functions,
other than in Help in Excel?

"T. Valko" wrote:

Try it like this:

=SUM(SUMIF(M8:M264,{"Issued","Delivered"},N8:N264) )

Or, you could just use 2 SUMIFs:

=SUMIF(M8:M264,"Issued",N8:N264)+SUMIF(M8:M264,"De livered",N8:N264)

Or, maybe this:

=SUMPRODUCT(--(ISNUMBER(MATCH(M8:M264,{"Issued","Delivered"},0)) ),N8:N264)

Or, using cells to hold the criteria:

A1 = Issued
B1 = Delivered

=SUMIF(M8:M264,A1,N8:N264)+SUMIF(M8:M264,B1,N8:N26 4)
=SUMPRODUCT(--(ISNUMBER(MATCH(M8:M264,A1:B1,0))),N8:N264)


--
Biff
Microsoft Excel MVP


"Gmolatore" wrote in message
...
Can I use Sumif and OR in combination to add a column if one or another
condition is present in another column, such as
=SUMIF(OR(M8:M264,"=Issued"),(M8:M264,"=Delivered" ),N8:N264)
where I want the sum of N8:N264 if M8:M264 is either "Issued" or
"Delivered"






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
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" Harry Seymour Excel Worksheet Functions 9 June 12th 07 10:47 PM
Sumif() help jhorsley Excel Discussion (Misc queries) 3 October 10th 05 05:37 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


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