+ Reply to Thread
Results 1 to 4 of 4

XLOOKUP and INDEX formulas in tandem

  1. #1
    Registered User
    Join Date
    12-28-2021
    Location
    Norway
    MS-Off Ver
    365
    Posts
    22

    XLOOKUP and INDEX formulas in tandem

    Hi, could someone help me to figure out what is wrong in my formula?
    Im trying to find a number closest to 0, regardless +/- in column K and return a number from a column F which at the same row. Column K should have some cells with #NUM! errors.
    INDEX is meant to find a cell K281 (-52,3286927) and XLOOKUP should return a number 243000 from a cell F281, see attached image link
    Capture.JPG
    Attached Images Attached Images
    Last edited by SergeyZh; 12-28-2021 at 04:20 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,907

    Re: XLOOKUP and INDEX formulas in tandem

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: XLOOKUP and INDEX formulas in tandem

    Try this:

    =INDEX(F242:F362,MATCH(AGGREGATE(15,6,ABS(K242:K362)/(K242:K362<>""),1),ABS(K242:K362),0))

  4. #4
    Registered User
    Join Date
    12-28-2021
    Location
    Norway
    MS-Off Ver
    365
    Posts
    22

    Re: XLOOKUP and INDEX formulas in tandem

    Quote Originally Posted by Phuocam View Post
    Try this:

    =INDEX(F242:F362,MATCH(AGGREGATE(15,6,ABS(K242:K362)/(K242:K362<>""),1),ABS(K242:K362),0))
    Very appreciate you, it works like it should

+ 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. Do I use an INDEX/MATCH function or XLOOKUP for this example?
    By Majestic1976 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-13-2021, 08:57 AM
  2. Index/Match vs Xlookup
    By lastnn30 in forum Excel General
    Replies: 3
    Last Post: 11-28-2021, 01:53 PM
  3. XLOOKUP vs INDEX & MATCH?
    By andrewc in forum Excel General
    Replies: 9
    Last Post: 08-26-2021, 10:59 AM
  4. Two-way Xlookup
    By Ballet4ever in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-28-2021, 10:11 PM
  5. Replies: 14
    Last Post: 09-28-2019, 10:32 PM
  6. [SOLVED] Use MIN and MAX in tandem
    By sunnynayak in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2013, 05:48 PM
  7. Can 2 Dropdown List Boxes work in tandem?
    By Spellbound in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-09-2007, 05:59 PM

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