+ Reply to Thread
Results 1 to 8 of 8

Sum if cell value is blank

Hybrid View

  1. #1
    Registered User
    Join Date
    11-29-2013
    Location
    România
    MS-Off Ver
    Excel 2003
    Posts
    19

    Sum if cell value is blank

    Hello !

    I have a problem with the sum of a range of cells. If one of them is blank it gives me a calculation error.
    I have attached an example in the post.
    If there is any possibility to simplify the calculation formulas I am open to suggestions.
    The sheet is for over 1000 rows.( Maybe a UDF function or VBA for speeding. I am using Excel 2010 )
    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,691

    Re: Sum if cell value is blank

    change your formula to this in E16 then double click to auto fill down... =SUM(C16:D16)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    11-29-2013
    Location
    România
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Sum if cell value is blank

    I don`t understand. Can you upload the working sheet? For me is the same error. #VALUE!

  4. #4
    Registered User
    Join Date
    11-29-2013
    Location
    România
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Sum if cell value is blank

    The result should be like in sheet attached!
    Attached Files Attached Files

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,036

    Re: Sum if cell value is blank

    In E16 copied down:

    =IF(AND(C16="",D16=""),"",SUM(C16:D16))

    Change commas to semi-colons for your locale.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  6. #6
    Registered User
    Join Date
    11-29-2013
    Location
    România
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Sum if cell value is blank

    Thanks you very much! It is working!
    You can close the post.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,036

    Re: Sum if cell value is blank

    No, you have to do that.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,963

    Re: Sum if cell value is blank

    Provide another method for reference
    E16 cell formula , drag down

    HTML Code: 

+ 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. Macro for Summing Rows above blank cell until previous blank cell
    By RKK1699BGC in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2020, 04:07 AM
  2. [SOLVED] IF Cell is blank, calculate, if cell isn't blank, leave blank
    By amthyst826 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-04-2015, 03:54 PM
  3. Calculate differnce between 2 dates, but if 1 date cell is blank leave cell blank
    By Vicious00013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-11-2014, 11:31 PM
  4. [SOLVED] Concatenate If Blank - remove blank line if first cell is blank
    By ker9 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-27-2014, 02:14 PM
  5. Replies: 3
    Last Post: 01-23-2014, 12:19 PM
  6. [SOLVED] Cell referenced in formula has no information displayed (shows blank), return blank cell
    By nunayobinezz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2013, 04:51 PM
  7. If cell blank OR another cell blank then show blank, if not display value
    By stevop622 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-09-2013, 04:07 AM

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