+ Reply to Thread
Results 1 to 4 of 4

Stuck with SUM formula

  1. #1
    Registered User
    Join Date
    05-29-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Stuck with SUM formula

    This should be easy for you all, but I am stuck.

    I am using this equation...

    =SUMIF(M3:AB3,">0",M3:AB3)/COUNTIF(M3:AB3,">0")

    to do this...

    Cell M3 through AB3 is a series of drop downs. the list included these values...

    n/a
    25%
    50%
    75%
    100%

    All I want to do is SUM up the range, and if there is an "n/a" in that range, I want to ignore it and calculate the total percentage.

    I keep getting: #DIV/0! error.

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

    Re: Stuck with SUM formula

    Not sure what you mean... that formula and the SUM() function will ignore the n/a 's

    Maybe you want:

    =IF(SUM(M3:AB3),SUMIF(M3:AB3,">0")/COUNTIF(M3:AB3,">0"),0)

    if there are no values at all in the range or if 0's only..
    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.

  3. #3
    Registered User
    Join Date
    05-29-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Stuck with SUM formula

    Thank you for the help; it did not work.

    Cell M3 through AB3 have percent values, I need to sum them all up, average them to make no more than 100% and exclude the "n/a" value if that value exists in that range.

    EX:

    #DIV/0! n/a 25% 50%

    The "DIV" should show the total average percentage.

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

    Re: Stuck with SUM formula

    With those 3 entries and the remainder blank.. I get 0.375 or 37.5%

    Can you post your workbook showing how this is not working? Maybe I am missing something.

+ 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