+ Reply to Thread
Results 1 to 5 of 5

Need a formula to find the minimum value in an array, then perform calculations on ....

  1. #1
    Registered User
    Join Date
    11-05-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Need a formula to find the minimum value in an array, then perform calculations on ....

    Need a formula to find the minimum value in an array, then perform calculations on adjacent cells.

    So what I'm really trying to do is create a grade book where the percentage is calculated by dropping the lowest score. Each assignment has a different amount of points possible. So I have three columns: score, possible, and percent in A, B, and C respectively. What I would like to do is find the lowest percent, then subtract that corresponding score from the sum of the scores, and subtract the corresponding possible from the sum of the possibles. Then divide to find the percentage. So something like:
    =(sum([A:A])-[score next to lowest percent])/(sum(B:B)-[possible next to lowest percent])
    I just don't know how to tell it to perform operations on cells next to another cell.
    And in some cases I'll drop two or more scores so it would probably be best to use small(C:C,1) and small(C:C,2) and so on for the minimum.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Need a formula to find the minimum value in an array, then perform calculations on ...

    Why not just =(sum(percents) - min(percents)) / (count(percents) - 1)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-05-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Need a formula to find the minimum value in an array, then perform calculations on ...

    Quote Originally Posted by shg View Post
    Why not just =(sum(percents) - min(percents)) / (count(percents) - 1)
    Because that would only be correct if every entry in possible is the same. For example

    score possible percent
    1 10 10
    2 15 13.33
    3 20 15

    then the average percent is 12.78
    but (1+2+3)/(10+15+20)=13.33

  4. #4
    Forum Contributor
    Join Date
    11-05-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: Need a formula to find the minimum value in an array, then perform calculations on ...

    I think you need to use a combination of Match and Index. Example1.xlsx
    Taming the Excel dragon... www.TheExcelphile.com

  5. #5
    Registered User
    Join Date
    11-05-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Need a formula to find the minimum value in an array, then perform calculations on ...

    Quote Originally Posted by TheExcelphile View Post
    I think you need to use a combination of Match and Index. Attachment 191667
    Yupp that was it. Thanks!

+ 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