+ Reply to Thread
Results 1 to 8 of 8

formula to get average percentage?

  1. #1
    Forum Contributor
    Join Date
    06-28-2009
    Location
    newcastle, uk
    MS-Off Ver
    Excel 2010
    Posts
    171

    formula to get average percentage?

    Hi

    I have a table with various percentages, and I would like a formula to have an average of these. Please see attached file to get more of an idea.

    Thanks
    G
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    21,528

    Re: formula to get average percentage?

    Perhaps:

    I3: =IF(COUNT(C3:H3),AVERAGE(C3:H3),"")
    copied down

    from that I think you can work out / adapt the above for the Row average ?

  3. #3
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: formula to get average percentage?

    IF u want to exclude zeros so u can use an array formula like
    =IFERROR(AVERAGE(IF((C3:H3<>"")*(C3:H3<>0),C3:H3)),"")
    in I3, confirm w/ctrl+shift+enter and copy it down
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, «Born in USSR»
    Vusal M Dadashev

    Baku, Azerbaijan

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    21,528

    Re: formula to get average percentage?

    No need for Array if using 2007 functions as implied by use of IFERROR - just use AVERAGEIF

    =AVERAGEIF(C3:H3,"<>0",C3:H3)

  5. #5
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: formula to get average percentage?

    whoops....

  6. #6
    Forum Contributor
    Join Date
    06-28-2009
    Location
    newcastle, uk
    MS-Off Ver
    Excel 2010
    Posts
    171

    Re: formula to get average percentage?

    the only problem wth these formulas are that they dont include how many runs there have been, so it is not giving me the answer correctly. for example in I5 there were 3 runs. in the fast column the result was 0/2 which made 0&#37;, and in the firm column the result was 1/1, which made 100%. so in total it was 1/3, which would be 33.33%, but it comes up 100%.

    i realise it may not be possible to do, just thought i would ask. thanks for help so far.

    G

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    21,528

    Re: formula to get average percentage?

    Might be a clever way of doing it that I can't think of right now, failing that a UDF could do it:

    Please Login or Register  to view this content.
    inserted into a module (ensure Macros enabled) and then called from a cell

    I3: =AVERAGEAVG(C3:H3)
    copied down

  8. #8
    Forum Contributor
    Join Date
    06-28-2009
    Location
    newcastle, uk
    MS-Off Ver
    Excel 2010
    Posts
    171

    Re: formula to get average percentage?

    that worked, genius!

    thanks so much. my chats should be completed now, with a bit of luck, unless i decide to change them again lol

    thanks again
    G

+ 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