+ Reply to Thread
Results 1 to 12 of 12

Nested XLOOKUP help

  1. #1
    Registered User
    Join Date
    03-28-2024
    Location
    Kentucky
    MS-Off Ver
    Excel 365
    Posts
    8

    Nested XLOOKUP help

    In need of XLOOKUP help!

    Attached is the Sheet VENDOR NAME

    I am struggling to write an XLOOKUP formula that will give the desired outcome in Truck Template G2 through G4. The formula will live in column G of the Truck Template tab. I need it to take the Material Code in column A and compare it to Code column (column E on the Materials tab). I need it to find the correct line in the Materials tab and return the vendor name (Materials V1 through X1) with the value of 1 in V2 through X4.

    I tried to use =XLOOKUP(A2,Materials!E2:E4,(XLOOKUP(Z1,Materials!V1:X1,Materials!V2:X4)))

    Z1 is a reference cell that contains the number 1.

    Any help would be greatly appreciated. Please and thank you!

    Regards,
    David
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Nested XLOOKUP help

    There's nothing in cell Z1 on either of the sheets.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-28-2024
    Location
    Kentucky
    MS-Off Ver
    Excel 365
    Posts
    8

    Re: Nested XLOOKUP help

    It's just meant to be reference. It would contain the number 1.

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Nested XLOOKUP help

    Try this in G2 and copy down:

    =INDEX(Materials!$V$1:$X$1,,MATCH(1,FILTER(Materials!$V$2:$X$4,Materials!$E$2:$E$4=A2),0))

  5. #5
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Nested XLOOKUP help

    Another option:

    =XLOOKUP(1,FILTER(Materials!$V$2:$X$4,Materials!$E$2:$E$4=A2),Materials!$V$1:$X$1,"",0)

  6. #6
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Nested XLOOKUP help

    Another formulas

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Named tables.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

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

    Re: Nested XLOOKUP help

    Another solution for Excel 2010+

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by bebo021999; 03-29-2024 at 12:05 AM.
    Quang PT

  8. #8
    Registered User
    Join Date
    03-28-2024
    Location
    Kentucky
    MS-Off Ver
    Excel 365
    Posts
    8

    Re: Nested XLOOKUP help

    Both formulas worked like a champ, Greg! Thank you very much for the quick reply!

  9. #9
    Registered User
    Join Date
    03-28-2024
    Location
    Kentucky
    MS-Off Ver
    Excel 365
    Posts
    8

    Re: Nested XLOOKUP help

    This also works DJ! Thank you for your help!

  10. #10
    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,869

    Re: Nested XLOOKUP help

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.
    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.

  11. #11
    Registered User
    Join Date
    03-28-2024
    Location
    Kentucky
    MS-Off Ver
    Excel 365
    Posts
    8

    Re: Nested XLOOKUP help

    I already took care of that. Thank you!

  12. #12
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Nested XLOOKUP help

    You're welcome, and thanks for the rep and feedback.

+ 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. [SOLVED] XLOOKUP (maybe nested), INDIRECT, and Excel tables to get value
    By Apaka in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 02-18-2024, 12:07 PM
  2. [SOLVED] Nested Let Function with IF and Xlookup
    By yarlachiru in forum Excel General
    Replies: 14
    Last Post: 07-14-2023, 06:50 AM
  3. [SOLVED] Excel Nested Xlookup Question
    By CzechCzar in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-30-2023, 07:01 PM
  4. [SOLVED] Nested XLOOKUP formula returns #value error
    By mo1h43v in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-11-2023, 08:56 AM
  5. [SOLVED] Nested XLOOKUP/COUNTA
    By fractal0011 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-21-2023, 01:18 PM
  6. Nested Xlookup
    By vineet_sn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-12-2022, 05:13 PM
  7. Nested Xlookup hurts my brain, Need Help
    By Tmbrcrzr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-04-2021, 02:16 AM

Tags for this Thread

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