+ Reply to Thread
Results 1 to 2 of 2

Adding cells with values but if cells do not have values then return blank

  1. #1
    Registered User
    Join Date
    08-22-2012
    Location
    birmingham
    MS-Off Ver
    EXCEL 2010
    Posts
    30

    Adding cells with values but if cells do not have values then return blank

    Hi all, as title basically.

    I have values in cells C9:L9 and i want these to be added. I can do this with normal Sum formula. HOwever what i want is that if the cells are blank then the formula in cell A9 should be blank aswell. However i am getting a #VALUE error.

    In cells C9:L9 the values are made up from formulas so these cells already have formulas.

    The formula works fine if the cell has values in it but as soon as there is a blank then i get the #Value error.

    I have tried the following:

    IF(ISBLANK(C9:L9),"",SUM(C9+D9+E9+F9+G9+H9+I9+J9+K9+L9))

    This works if there are values in C9:L9 but returns #Value error if they are blank

    Any help please

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Adding cells with values but if cells do not have values then return blank

    Try:

    =IF(SUM(C9:L9)=0,"",SUM(C9:L9))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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