+ Reply to Thread
Results 1 to 3 of 3

How to calculate equation with minimum, maximum and middle number by row?

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    How to calculate equation with minimum, maximum and middle number by row?

    There are three columns: A, B and C.

    Each column contains different numbers in every row.

    I need a formula for the following:

    [5*(the highest of A1,B1 and C1)] + [3*(the smallest of A1, B1 and C1)] + [2*(whatever the remaining, middle number is out of A1, B1 and C1)]


    Also, columns A, B and C will be referred to with INDEX:MATCH, not their direct letter reference as the columns they're in change every spreadsheet.


    Longer, more specific version:

    [5*(Highest of INDEX(3:3,MATCH("Column 1",$1:$1,0)), INDEX(3:3,MATCH("Column 2",$1:$1,0)) and INDEX(3:3,MATCH("Column 3",$1:$1,0)))]+[3*(Lowest of INDEX(3:3,MATCH("Column 1",$1:$1,0)), INDEX(3:3,MATCH("Column 2",$1:$1,0)) and INDEX(3:3,MATCH("Column 3",$1:$1,0)))]+[2*(Whatever the remaining, middle number is out of INDEX(3:3,MATCH("Column 1",$1:$1,0)), INDEX(3:3,MATCH("Column 2",$1:$1,0)) and INDEX(3:3,MATCH("Column 3",$1:$1,0)))]
    Last edited by ks100; 10-17-2013 at 02:54 PM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: How to calculate equation with minimum, maximum and middle number by row?

    Try

    =SUM(MAX(A1:C1)*5,MIN(A1:C1)*3,LARGE(A1:C1,2)*2)
    or
    =SUM(MAX(A1:C1)*5,MIN(A1:C1)*3,SMALL(A1:C1,2)*2)

    Adapt accordingly for the INDEX / MATCH
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,291

    Re: How to calculate equation with minimum, maximum and middle number by row?

    or =SUM(MAX(A1:C1)*5,MIN(A1:C1)*3,median(A1:C1)*2)
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

+ 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. minimum, maximum and average help
    By cdscivic in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-13-2013, 06:44 PM
  2. [SOLVED] Calculate maximum number of consecutive populated cells in a column
    By Jimbobby in forum Excel General
    Replies: 9
    Last Post: 11-11-2012, 04:24 PM
  3. [SOLVED] calculate equation, but report a minimum value if calculation is too low
    By Rule723 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-10-2012, 03:06 PM
  4. Replies: 8
    Last Post: 06-26-2012, 06:45 PM
  5. Maximum and Minimum
    By lurchybold in forum Excel General
    Replies: 6
    Last Post: 10-13-2010, 11:04 AM

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