Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" | Excel Worksheet Functions | |||
Sumif() help | Excel Discussion (Misc queries) | |||
Embedding a Sumif in a sumif | Excel Worksheet Functions | |||
nested sumif or sumif with two criteria | Excel Worksheet Functions | |||
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function | Excel Worksheet Functions |