+ Reply to Thread
Results 1 to 6 of 6

Two-way Xlookup

  1. #1
    Registered User
    Join Date
    04-25-2019
    Location
    canada
    MS-Off Ver
    365
    Posts
    45

    Two-way Xlookup

    Hello,
    Could you please help me figure out how to make xlookup (or perhaps other function) to match the Part ID and the Column Name and insert the appropriate Part Name into the Appropriate Column?

    two way xlookup.JPG
    Data
    Part ID Part Name Column Name
    710 US-MADAC-18M Evolution
    710 BHMA18M-TF Eliminator TF
    710 BHMA18M Eliminator BP
    710 AG-MADAC-18M Channel Flow

    Result
    Part ID Evolution Channel Flow Eliminator BP Eliminator TF
    710 US-MADAC-18M AG-MADAC-18M BHMA18M BHMA18M-TF

    Thank you

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Two-way Xlookup

    Go completely old school:

    B10:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by hrlngrv; 03-28-2021 at 05:59 PM. Reason: correction

  3. #3
    Registered User
    Join Date
    04-25-2019
    Location
    canada
    MS-Off Ver
    365
    Posts
    45

    Re: Two-way Xlookup

    Did you mean B$9 (instead of B$10)?
    =INDEX($B$3:$B$6,MATCH(1,INDEX(($A$3:$A$6=$A10)*($C$3:$C$6=B$10),0),0))
    When I changed that it worked perfectly! Thank you so much!

  4. #4
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Two-way Xlookup

    Sorry, yes, B$9 rather than B$10.

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

    Re: Two-way Xlookup

    Another option using dynamic arrays in MS365. Let's say your Data consists of many IDs (just going down to A10 for this example). And let's say your results should show up next to your list (say in column E is where the list of unique part numbers would start and then F:I are your column Names. You could then show your results with 2 formulas in 2 cells, no copying down or across.

    E3 is this example would be:
    =UNIQUE(A3:A10)

    And F3 would be:
    =XLOOKUP(E3#&F2:I2,A3:A10&C3:C10,B3:B10,"",0)

    The results would SPILL as much as needed.

    See attached.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-25-2019
    Location
    canada
    MS-Off Ver
    365
    Posts
    45

    Re: Two-way Xlookup

    Awesome! Thank you very much!

+ 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 vs vlookup
    By Mr_Phil in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2021, 03:19 PM
  2. [SOLVED] Conditional XLOOKUP
    By gregwinter in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-11-2021, 11:36 AM
  3. [SOLVED] Xlookup with VBA, need some help!
    By CSimm in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-19-2021, 03:14 PM
  4. Xlookup alternative
    By showboat in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 12-07-2020, 09:19 PM
  5. XLOOKUP availability?
    By PeteABC123 in forum Excel General
    Replies: 8
    Last Post: 10-22-2020, 06:10 PM
  6. Xlookup & sum
    By lynusann in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-19-2020, 11:04 PM
  7. Can xlookup function be used in VBA?
    By jaryszek in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-22-2020, 02:20 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