Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I always forget that { } stuff !!!
Thanks But I prefer the logic of =SUM(B11:B4) - SUMIF(A1:A4,{3420,4474},B1:B4) cheers -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Teethless mama" wrote in message ... =SUM(B1:B4)-(SUMIF(A1:A4,3420,B1:B4)+SUMIF(A1:A4,4474,B1:B4)) simplify version: =SUM(B11:B4,-SUMIF(A1:A4,{3420,4474},B1:B4)) "Bernard Liengme" wrote: either =SUMPRODUCT(--(A1:A4<3420),--(A1:A4<4474),B1:B4) or =SUM(B1:B4)-(SUMIF(A1:A4,3420,B1:B4)+SUMIF(A1:A4,4474,B1:B4)) Adjust ranges as needed. Note that only Excel 2007 permits full column references with SUMPRODUCT best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Ivano" wrote in message ... Hi, I'm trying to use the SUMPRODUCT formula to add up a colunm but exlude certain values based on a criteria in another column. I have column A which has the criteria and colunm H which has the value. I want to add up all of colunm H but exclude certain values which meet a specific criteria. For example, add up column H except for the values under column A that is equal to the criteria 3420 and 4474: A H 1 3410 $100 2 3420 $200 3 4474 $300 4 5425 $400 Thanks, |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Multiple criteria for sumproduct | Excel Discussion (Misc queries) | |||
Using Min Formula with Multiple Criteria Excluding Zeros | Excel Worksheet Functions | |||
SUMPRODUCT / SUMIF on Multiple Worksheets with Multiple Criteria | Excel Discussion (Misc queries) | |||
SUMPRODUCT excluding multiple conditions | Excel Worksheet Functions | |||
Using Sumproduct with multiple Criteria | Excel Worksheet Functions |