Return Blank Cell if SUM of Two Columns is Blank

Anonymous
2022-06-27T02:24:02+00:00

I'm trying to copy a formula down a column. The formula is a sum of F2:G2, but in column H I wanted it not to show the zeros. How do I do that?

I've used the "IFERROR" for summation down a single column, as you can see with F & G, but I can't figure out how to return blank cells for sums in H.

Microsoft 365 and Office | Excel | For business | Windows

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.

0 comments No comments
{count} votes
Answer accepted by question author
  1. OssieMac 47,981 Reputation points Volunteer Moderator
    2022-06-27T03:50:30+00:00

    Try the following.

    =IF(SUM(F2:G2)=0,"",SUM(F2:G2))

    3 people found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2022-06-27T03:00:44+00:00

    Hi OutlookUser3656,

    Good day! Thank you for posting to Microsoft Community. I am happy to help you.

    You can use the formula below to check if both F and G cells are blank before calculating SUM value.

    =IF(AND(ISBLANK(F2),ISBLANK(G2)),"",SUM(F2:G2))
    

    If you would like to change the criteria to any of F and G cells showing blank, simply replace OR with AND in the formula can do the work.

    Sincerely,

    Ryan | Microsoft Community Moderator

    ***Note: In the event that you're unable to reply to this thread, please ensure that your Email address is verified in the Community Website by clicking on Your Account Name > "My Profile" > "Edit Profile" > Add your Email Address > tick "Receive email notifications" checkbox > click on "Save".***

    1 person found this answer helpful.
    0 comments No comments
  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more