Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Nothing wrong with your formula, here's another way using SUMIF
=SUM(SUMIF(BD$5:BD$98,{"=500","=600"},BC$5:BC$98 )*{1,-1}) which is the equivalent of two SUMIFs =SUMIF(BD$5:BD$98,"=500",BC$5:BC$98)-SUMIF(BD$5:BD$98,"=600",BC$5:BC$98) -- Regards, Peo Sjoblom "ddate" wrote in message ... I have a formula that I created based on other examples that I saw in the discussion group. Just wondering if this is the simplest formula for this example. I am using this formula to sum all values in column BC when values in BD are greater/equal to 500 but less than 600. =SUMPRODUCT(--(BD$5:BD$98=500),--(BD$5:BD$98<600),BC$5:BC$98) Also, can someone explain what the -- prior to the criteria does? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Summing a range based on value criteria | Excel Discussion (Misc queries) | |||
Any way to have a dynamic range for ranking, based on criteria? | Excel Worksheet Functions | |||
color a range of cells based on a criteria | Excel Discussion (Misc queries) | |||
Bucketing data based on DATE Range criteria | Excel Discussion (Misc queries) | |||
MIN within range based on criteria | Excel Discussion (Misc queries) |