+ Reply to Thread
Results 1 to 5 of 5

Largest discrepancy between two values in one range (index/match/indirect/largest/max)

  1. #1
    Registered User
    Join Date
    04-01-2015
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    10

    Largest discrepancy between two values in one range (index/match/indirect/largest/max)

    Thanks in advance for any input that you might contribute to my question. I'm unable to post a workbook at this time, sorry.

    I have values in C2:BY2, associated titles in C3:BY3. The total range is actually separated into two ranges with different values but identical titles. That is, C2:AM2 has one set of values. AO2:BY2 has another set of values. But the associated titles in C3:AM3 and AO3:BY3 are the same/duplicates.

    In my quest to identify (and present in a separate cell) which title is associated with the values with the largest discrepancies, I've found this nifty function:

    Please Login or Register  to view this content.
    This renders a result which isn't wrong. It does indeed locate (one of) the largest discrepancies and returns the (shared) associated title for these values. In this actual case, it locates "1" in the C2:AM2-range, and "5" in the AO2:BY2-range. However, I would like it to be "the other way around", so that it locates the "5" in the C2:AM2-range, and "1" in the AO2:BY2-range. I've fiddled and fiddled, can't seem to make it right.

    Any help is greatly appreciated.

    R

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Largest discrepancy between two values in one range (index/match/indirect/largest/max)

    Try to post a sample workbook with mock-up data at least with your desired results.
    Quang PT

  3. #3
    Registered User
    Join Date
    04-01-2015
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    10

    Re: Largest discrepancy between two values in one range (index/match/indirect/largest/max)

    Quote Originally Posted by bebo021999 View Post
    Try to post a sample workbook with mock-up data at least with your desired results.
    Done and done. In this example, the function in B8 returns the title "Item 28". The discrepancy between the two values associated with "Item 28" is 1 and 5. I would like the function to work the other way around, so that it returns the title that has the values 5 and 1, in this example corresponding to "Item 18".

    Is it understandable?

    R
    Attached Files Attached Files
    Last edited by RHEDE; 04-02-2015 at 05:26 AM.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Largest discrepancy between two values in one range (index/match/indirect/largest/max)

    Try this:

    Please Login or Register  to view this content.
    Replace + by - for vice versa

    Note this is array formula, must be confirmed with Ctrl-shift-enter rather than enter only.

  5. #5
    Registered User
    Join Date
    04-01-2015
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    10

    Re: Largest discrepancy between two values in one range (index/match/indirect/largest/max)

    Quote Originally Posted by bebo021999 View Post
    Try this:

    Please Login or Register  to view this content.
    Replace + by - for vice versa

    Note this is array formula, must be confirmed with Ctrl-shift-enter rather than enter only.
    Thanks bebo. Unfortunately it does not seem to work. It doesn't locate the biggest discrepancy, rather some arbitrary value/a really small discrepancy. Thoughts?

    Update: Nevermind, it seems to work just fine. Thank you.
    Last edited by RHEDE; 04-04-2015 at 04:28 AM.

+ 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: 12
    Last Post: 08-02-2013, 01:43 PM
  2. Replies: 30
    Last Post: 12-19-2011, 12:13 PM
  3. Finding 5 largest values in range by vba
    By mambofats in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2011, 08:12 AM
  4. Returning the Nth Largest / Smallest Values in a Range
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-29-2005, 07:53 AM
  5. Summing the N Largest Values in a Range
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-28-2005, 11:18 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