+ Reply to Thread
Results 1 to 7 of 7

Not perform sum if cell is blank

  1. #1
    Registered User
    Join Date
    03-05-2013
    Location
    United Kingdom
    MS-Off Ver
    Version 2210
    Posts
    22

    Not perform sum if cell is blank

    Hello,

    I have the spreadsheet attached. The problem is that I only want data to show in the cells where the sum is complete (and the result is 70). I don't want there to be anything in the cells where one of the cells involved in the sum was blank (I currently get 0, 20 or 50 in these cells). Is there a formula I can do for this?

    And if so, is there a simple way of adding it into all cells, or will I have to manually add it to them?

    Thank you in advance for any assistance anyone can give.

    Example.xlsx

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Not perform sum if cell is blank

    In C3, then drag across
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Not perform sum if cell is blank

    I'm not sure if I understand what you want... but try =IF(C$2+$B3=70,70,"") in C3; drag across and down.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    03-05-2013
    Location
    United Kingdom
    MS-Off Ver
    Version 2210
    Posts
    22

    Re: Not perform sum if cell is blank

    Ah thanks for the help but I wasn't quite clear. This is an example - in my actual workbook there could be any number in the cell (it's not always 70). I'm looking for a formula that says not to perform the sum if one of the cells involved in the cell is blank.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Not perform sum if cell is blank

    If this isn't what you want, please amend your posted sheet to show what you DO expect to see.

    =IF(OR(C$2="",$B3=""),"",C$2+$B3) drag across & down.

  6. #6
    Registered User
    Join Date
    03-05-2013
    Location
    United Kingdom
    MS-Off Ver
    Version 2210
    Posts
    22

    Re: Not perform sum if cell is blank

    That, Glenn, is perfect! Thank you enormously!

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Not perform sum if cell is blank

    Cheers! You're very welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 11-05-2014, 10:54 AM
  2. [SOLVED] Trying to write a Loop to perform calculations within blank rows between populated rows
    By ObliviousAmI in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-15-2014, 06:35 PM
  3. [SOLVED] Only perform formula if another cell is non-blank
    By stevejfice in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-02-2012, 10:47 AM
  4. Perform If function if the cell is blank
    By capnhud in forum Excel General
    Replies: 17
    Last Post: 01-20-2012, 11:40 AM
  5. [SOLVED] perform caculations on displayed value in Excel 2000-how can i perform
    By Amir in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1