+ Reply to Thread
Results 1 to 5 of 5

Need sum of values if any value from range is not blank

Hybrid View

  1. #1
    Registered User
    Join Date
    07-10-2017
    Location
    PUNE, INDIA
    MS-Off Ver
    2013
    Posts
    9

    Need sum of values if any value from range is not blank

    I have cell D5 to O5, which can be zero or greater.

    I want sum of D5 to O5 in P5, if any value of this range is not blank.

    Else it should be blank (not zero)

    Note : if all the values are blank then it should not show result as zero.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Need sum of values if any value from range is not blank

    try this
    =if(counta(D5:O5)>0,sum(d5:o5),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-10-2017
    Location
    PUNE, INDIA
    MS-Off Ver
    2013
    Posts
    9

    Re: Need sum of values if any value from range is not blank

    Thank you FDibbins. Its working.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Need sum of values if any value from range is not blank

    Good stuff, happy to help

  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
    90,759

    Re: Need sum of values if any value from range is not blank

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.

+ 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. Regression with blank values in x range
    By excelhelpguy123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-14-2017, 12:16 PM
  2. [SOLVED] Fill blank range with corresponding values..
    By kay007 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-02-2016, 10:02 AM
  3. [SOLVED] Looking for final four values in range, excluding any blank cells
    By OffTheFairway22 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-02-2015, 07:32 AM
  4. Count Unique Values within range when other column is not blank
    By samn827 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-29-2015, 09:50 AM
  5. Replies: 8
    Last Post: 03-31-2015, 01:06 PM
  6. pick next blank cell in range to add some values.
    By cdafonseca in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-26-2013, 03:15 PM
  7. [SOLVED] Creating a new worksheet by checking for blank values in a range
    By Geoff in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2006, 05:35 PM

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