+ Reply to Thread
Results 1 to 6 of 6

How to modify the sum formula SUM(A5:E5)/5

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    How to modify the sum formula SUM(A5:E5)/5

    Dear all,
    How to modify the sum formula SUM(A5:E5)/5
    if no value in the range A5:E5 then it is showing default results as 0 (zero)
    but i want to get the results Blank as i did not put any value in the c (i mean no input value no output value)

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: How to modify the sum formula SUM(A5:E5)/5

    =if(count(a5:e5)=0,"",sum(a5:e5)/5)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How to modify the sum formula SUM(A5:E5)/5

    Hello nur2544,

    It depends on what you really want.

    Try:
    =IF(AND(A5,B5,C5,D5,E5=""),"",SUM(A5:E5)/5)
    Also see the "Please consider" note at the bottom of this post.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Registered User
    Join Date
    11-16-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: How to modify the sum formula SUM(A5:E5)/5

    =IF(SUM(A5:E5)/5=0,"",SUM(A5:E5)/5)
    Unless you want the cell to truly be blank and not contain a formula in it if there is no result. In that case, I think you'd need to use VBA.

    Edit: Winon's formula is a better way to go if you're using any negative values and there's a chance that the sum could equal 0 even with values entered.

  5. #5
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    Re: How to modify the sum formula SUM(A5:E5)/5

    Thanks goes to below listed excel expert as all logic are excellent. I appreciate...
    Ace_XL
    JSallen
    Winon

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How to modify the sum formula SUM(A5:E5)/5

    Hello nur2544,

    You are welcome.

    Glad we could help.

    Thank you for thr Rep.

+ 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