excel - when using the sumif function how do you get the [sum_range] to only add the positive numbers? -
when using sumif function how [sum_range] add positive numbers?
so if function =sumif(a:h,c34,h:h) how add positive numbers in column h
in posted formula =sumif(a:h,c34,h:h)
because test range a:h , range summed h:o (the shape of a:h = 8 columns starting @ top left cellof h:h) not sure if intended. given overlap in criterai , sum ranges suspect not. btw means cell j34 included in sum
sumifs available in exel 2007 , later , work =sumifs(h:h, a:a, c34, h:h, ">0")
unlike range , criteria arguments in sumif function, in sumifs function, each criteria_range argument must contain same number of rows , columns sum_range argument.
if using excel 2003 or earlier, or if range behviour described above required, can use somthing like,
=sum(h:h*(a:a=$c$34)*(h:h>0))
or
=sum(h:o*(a:h=$c$34)*(h:o>0)) ' 1 won't work is, have resolve overlapping ranges
entered array formula (ctrl-shift-enter)
Comments
Post a Comment