+ Reply to Thread
Results 1 to 3 of 3

How to compare values and output the higher of the two?

  1. #1
    Registered User
    Join Date
    12-17-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    39

    How to compare values and output the higher of the two?

    Hi,

    I currently have a a table with a range of values. These values are used when comparing theoretical values and then selecting an actual value from the table. This can be seen from my excel file attached.

    B3 - output value from a calculation
    B4 - Criteria to indicate which row in which to perform search
    B6 - Theoretical answer from table

    Currently, my formula used to calculated and answer for B6 is:

    =INDEX(E10:J10,MATCH(MIN(ABS(E10:J10-$B$3)),ABS(E10:J10-$B$3),0))

    This formula gives me the value closest to B3 in the range of numbers in the row.

    I however would like the formula to give me the highest value between which B3 lies.

    eg. B3 = 10 and we have values 9, 15, 20.

    My current formula would give me 9, however i would like it to give me 15.

    Help would be much appreciated.

    Regards
    A
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: How to compare values and output the higher of the two?

    Maybe something like:
    =MIN(IF(OFFSET(F9:J9,MATCH(B4,OD,0),0)-B3<0,1000,OFFSET(F9:J9,MATCH(B4,OD,0),0)-B3))+B3
    as an array formula (confirm with ctrl+shift+enter)

  3. #3
    Registered User
    Join Date
    12-17-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: How to compare values and output the higher of the two?

    Unfortunately this formula does not work all of the time. if there are any other suggestions, that would be much appreciated.

+ 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. Replies: 2
    Last Post: 11-14-2011, 06:22 PM
  2. Replies: 2
    Last Post: 05-31-2010, 03:23 PM
  3. Find two closest values that are higher
    By calebm12 in forum Excel General
    Replies: 11
    Last Post: 06-30-2009, 10:28 AM
  4. Compare cells in two worksheets, insert a row on the worksheet with the higher value
    By macombej in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-15-2009, 12:56 PM
  5. Configuring a cell to take higher values only
    By hdhuri40 in forum Excel General
    Replies: 5
    Last Post: 05-25-2005, 04:53 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