Excel: SUMIF an Undefined Range set by Blank Cells -
i'm trying sum range of cells changing range.
a 0 0 5 0 b 1 c 2 4
as in "a" should return 5, "b" 1, , "c" 6. research tells offset formula may work i've got no luck.
how this: insert column between data columns , paste formula: (assuming col has a,b,c , col c has numbers , paste in col b): =if(and(a2="",a1<>""),b1,if(and(a2="",a1=""),b1,a2)) please add header row avoid error on first column...
this fill values , data like: cola colb colc 0 0 5 0 b b 1 c c 2 c 4
now can use sumif or array entered formula sum values:
formula in col f =sum(if($b:$b=e2,$c:$c,0)) (use ctrl+shift+enter instead of normal enter make array formula) cole colf c 6 b 1 5
hope helps.
Comments
Post a Comment