How about something like,
=IF(COUNTIFS(<range>, "<>"&0,<range>, "<>"), SUM(<range>), "")
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How can I identify if a range contains data. I am looking for a formula which I can drag down to check a range.
The range will contain either 0, or a positive or negative number.
I have added a helper column, using a SUM to SUM range- however if the range contains, for example +5 and (5), result is zero. If the range contains 0 + 0= same result zero.
I want to be able to identify if the result is a positive number, negative or zero, but to ignore if all cells in the range contain zero.
I have attempted to solve this by issuing ISNUMBER , returns a result TRUE even if result is zero, ISBLANK also does not hep as all cells contain something.
I hope I have explained this clearly. I am sure there is a simple solution, but this has eluded me so far.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
How about something like,
=IF(COUNTIFS(<range>, "<>"&0,<range>, "<>"), SUM(<range>), "")
Hi,
Please take a clear example of your dataset and also share the expected solution.
Thank you, just what i was attempting to solve...