+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Assignment Help? Averages not coming out correct in an "if" function...

  1. #1
    Registered User
    Join Date
    04-10-2011
    Location
    Toronto
    MS-Off Ver
    Excel 2007
    Posts
    3

    Assignment Help? Averages not coming out correct in an "if" function...

    Hi everyone,

    I have an assignment for college where I'm completing a scenario in which the professor has students do 5 tests; if they complete all 5 then you drop the lowest mark and calculate the average, if not then you simply calculate the average.

    I have written this function but it doesn't seem very successful since the averages are turning out to be 200 and 300...which is obviously incorrect if the highest score you can get is 100!:

    =IF(COUNT(B4:F4)=5,SUM(B4:F4-(MIN(B4:F4))/4,AVERAGE(B4:F4))

    I put the parentheses around the MIN because I thought it would affect the order of operations, but no luck. Does anyone have any suggestions? It is greatly appreciated!
    Last edited by lsrh0009; 04-11-2011 at 01:26 PM.

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Assignment Help? Averages not coming out correct in an "if" function...

    Try this slight modification:

    Please Login or Register  to view this content.
    abousetta

  3. #3
    Registered User
    Join Date
    04-10-2011
    Location
    Toronto
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Assignment Help? Averages not coming out correct in an "if" function...

    Ahhh! Thank you very much! I've been slowly driving myself crazy for a few hours doing this so I'm very grateful. I'm new to nested functions. Hopefully next time I can do it on my own.

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Assignment Help? Averages not coming out correct in an "if" function...

    Glad I could be of help. It takes a while to get the hang of it and sometimes its good to calculate each part on its own until you figure out what's going on. That's sort of what I did to resolve this problem.

    If you are satisfied with results, please mark the thread as [SOLVED] by editing your original post.

    Thanks.

    abousetta

  5. #5
    Registered User
    Join Date
    04-10-2011
    Location
    Toronto
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Assignment Help? Averages not coming out correct in an "if" function...

    Thanks for the tip, I'll use it!

+ 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