+ Reply to Thread
Results 1 to 14 of 14

Need help on how to calculate the average

  1. #1
    Registered User
    Join Date
    07-05-2017
    Location
    MANILA, PHILIPPINES
    MS-Off Ver
    EXCEL 2010
    Posts
    5

    Need help on how to calculate the average

    Hi,

    I am working on a form and am i stuck in figuring out what formula to use in order to get the result that I need.
    This involves criteria with result of N/A and its effect on the whole score.

    I have attached detailed questions and raw data in excel hoping someone can help me.


    Thanks in advance for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Need help on how to calculate the average

    This ???

    =COUNTIF(E4:E16,"=YES")/COUNTIF(E4:E16,"<>N/A")

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Need help on how to calculate the average

    im not 100% sure what you are trying to acomplish but is this what you mean?
    Attached Files Attached Files
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  4. #4
    Registered User
    Join Date
    07-05-2017
    Location
    MANILA, PHILIPPINES
    MS-Off Ver
    EXCEL 2010
    Posts
    5

    Re: Need help on how to calculate the average

    Hi,

    Thank you for your quick reply. Apology if I was not able to explain my self correctly. I am trying to find a way wherein the criteria with N/A result will not affect the total score. Meaning if there is a result of N/A the score will still be 100%. For example if I choose all YES, the total score will be 100%. If I have 1 N/A (with equivalent points of 0.03) the total will be 97 points but the percentage will still be 100%. This means that with the N/A the maximum points that could be given will be 97/97 = 100%. Hope it makes sense.

    Appreciate your help.

  5. #5
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Need help on how to calculate the average

    im still not sure what you mean, can you create a sheet showing some expected results (several versions some with NA some with yes etc) so i can try replicate results

  6. #6
    Registered User
    Join Date
    07-05-2017
    Location
    MANILA, PHILIPPINES
    MS-Off Ver
    EXCEL 2010
    Posts
    5

    Re: Need help on how to calculate the average

    Hi,

    I attached sample scenarios.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Need help on how to calculate the average

    Try

    =SUMIF(E4:E32,"=YES",D4:D32)/SUMIF(E4:E32,"<>N/A",D4:D32)

  8. #8
    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,623

    Re: Need help on how to calculate the average

    Hmm, as I see it in G35
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    of course you can add =
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    PS. Somehow - I can't see average (as posted in title) here
    Best Regards,

    Kaper

  9. #9
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Need help on how to calculate the average

    to be honest i may have gone a bit wonky on this but i think i got it to work (however if the above post works use that as its more elegant)



    also you say the last scenario should be 96% i think it should be 97% (92/95)*100 = 96.84%
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    07-05-2017
    Location
    MANILA, PHILIPPINES
    MS-Off Ver
    EXCEL 2010
    Posts
    5

    Re: Need help on how to calculate the average

    @twiggywales, is there a possibility that the formula would also include the data in section "part 2"? attached is a file with sample scenario and expected result.
    Attached Files Attached Files

  11. #11
    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,623

    Re: Need help on how to calculate the average

    Please comment also on John's and mine suggestions (they may be wrong, but anyway - let us know. we can stand it ).

  12. #12
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Need help on how to calculate the average

    im not sure why it wasn't anyway i must have missed something but i have update to suit.


    personally this formula has got way outa hand i would be looking for a better solution. if you try the other guys ideas they might work better without all this junk.


    to be fair i wouldn't use my own formula here i would find another way.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    07-05-2017
    Location
    MANILA, PHILIPPINES
    MS-Off Ver
    EXCEL 2010
    Posts
    5

    Re: Need help on how to calculate the average

    Hi all, thank you so much for your help! I was able to combine all your suggestions and come up with a solution. All your inputs are greatly appreciated.

  14. #14
    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,623

    Re: Need help on how to calculate the average

    I'm glad to hear so, and thanks for marking thread solved and for reputation point.

+ 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] Calculate average sum by name
    By am760 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2016, 06:42 AM
  2. [SOLVED] Use the AVERAGE() function to calculate a sample average
    By alice2011 in forum Excel General
    Replies: 1
    Last Post: 09-24-2014, 08:04 AM
  3. Need to calculate an Average please!!
    By Ted210 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-26-2013, 07:48 AM
  4. Calculate average
    By Ramesh Velu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-28-2013, 07:58 AM
  5. calculate average
    By eugz in forum Excel General
    Replies: 2
    Last Post: 07-06-2011, 09:22 AM
  6. Calculate average withouot incorporating sub average
    By ybu1106 in forum Excel General
    Replies: 25
    Last Post: 06-15-2010, 09:47 AM
  7. [SOLVED] If/Then calculate the average
    By LynnJ in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-03-2006, 06:30 PM

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