Sum if number is positive

Hi, i have YTD row that calculates the sum of all the month values (numbers) from Jan-Dec (each month has a column named Jan, Feb, March etc). However I want to only include months inthe sum when the month value is greater than zero (i.e. is not a negative number)
any help would be super-duper appreciated.
thanks!
Best Answer
-
@craig 2022 You can try using a SUMIF formula:
=SUMIF(Jan@row:Dec@row, @cell > 0)
This will only add the values that are greater than 0.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
@craig 2022 You can try using a SUMIF formula:
=SUMIF(Jan@row:Dec@row, @cell > 0)
This will only add the values that are greater than 0.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Hello! Have you tried the SUMIF function? =SUMIF({Range},>0,{Range})
-
Jeff thanks soooo much! that did it.
-
Excellent!
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Help Article Resources
Categories
Check out the Formula Handbook template!