+ Reply to Thread
Results 1 to 7 of 7

Sum only cells that are filled in

  1. #1
    Registered User
    Join Date
    03-17-2016
    Location
    Amsterdam
    MS-Off Ver
    2010
    Posts
    3

    Sum only cells that are filled in

    Hi everyone,

    I've been looking around for this answer quite some time now, but I can't find the correct formula. My problem is as follows:

    In (a large) Excel file, I want to SUM cells L1, U1 and AF1, and so on for every row down (so L2 + U2+ AF2 etc). So the formula I'm using seems logic (=SUM(L1+U1+AF1), but I don't want this formula to calculate a total if none of these cells is filled in. So it's OK when 1 out of these 3 is filled in, then Excel may calculate a total, but when none of them is, I don't want anything to appear in my "total" column.

    Anyone who can help?

    Thanks!

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,616

    Re: Sum only cells that are filled in

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Sum only cells that are filled in

    =if(count(l1,u1,af1),sum(l1,u1,af1),"")
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,616

    Re: Sum only cells that are filled in

    Just a comment:
    Count is of course fine,
    but one shall be carefull with countA which seems appropriate, but is not, if cells are not "just empty", but have for instance formula which returns null string in them, then CountA will count them.

  5. #5
    Registered User
    Join Date
    03-17-2016
    Location
    Amsterdam
    MS-Off Ver
    2010
    Posts
    3

    Re: Sum only cells that are filled in

    Thanks for your input, but these formulas are still not working. Any other idea?

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,616

    Re: Sum only cells that are filled in

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window (or use the paperclip icon).

  7. #7
    Registered User
    Join Date
    03-17-2016
    Location
    Amsterdam
    MS-Off Ver
    2010
    Posts
    3

    Re: Sum only cells that are filled in

    Thank you all for your input! I managed it now to do it this way:
    =IF(COUNT(L1;U1;AF1)>0;SOM(L3;U3;AF3);"")

    This works fine, thanks for your advivce!

+ 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. [SOLVED] Need cells to remain blank until figures filled in the related cells
    By Philm1971 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-21-2015, 09:09 AM
  2. Data Validation to circle blanks cells between filled cells
    By jamiem4 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2014, 05:58 PM
  3. Count filled and empty cells from the first filled cell in a row
    By mdaoust in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-01-2014, 01:23 PM
  4. Replies: 2
    Last Post: 07-14-2014, 05:45 AM
  5. Replies: 12
    Last Post: 07-10-2012, 05:04 PM
  6. Replies: 4
    Last Post: 04-04-2012, 04:44 PM
  7. Replies: 1
    Last Post: 10-11-2009, 04:59 AM

Tags for this Thread

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