+ Reply to Thread
Results 1 to 2 of 2

Xlookup search for value in multiple cols

  1. #1
    Registered User
    Join Date
    07-06-2021
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    19

    Xlookup search for value in multiple cols

    Hello,

    I am trying to search for value in row A of one sheet in the col A or C of a second sheet and return the value of col K from that second sheet. The formula below works when it's just one col I am searching for:


    =XLOOKUP(A4,'Station 3'!$A$3:$A$2001,'Station 3'!$K$3:$K$2001)

    But when I want to search in multiple cols using the formula below, I change the range and instead I get a #VALUE!.

    =XLOOKUP(A4,'Station 3'!$A$3:C$2001,'Station 3'!$K$3:$K$2001)

    Sorry if I am making a basic error here....

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,632

    Re: Xlookup search for value in multiple cols

    If I understand the scenario well:

    Excel shall look for A4 in column A - if found return value from respective row in column K, if not found in A look into C and if found return value from K:

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

    Kaper

+ 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. Chained xlookup and reverse partial lookup/search?
    By paventiger in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-16-2021, 01:04 AM
  2. [SOLVED] search data using xlookup function in excel?
    By rena80 in forum Excel General
    Replies: 0
    Last Post: 09-15-2021, 11:57 PM
  3. [SOLVED] Using IF, Xlookup and Match/search, to find value in array.
    By Lee_of_Excel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-16-2020, 12:09 AM
  4. [SOLVED] Formula to search for a particular part of an ID and return a Count from other Cols
    By hammer2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-24-2015, 03:18 AM
  5. [SOLVED] Compilation of Multiple Cols into 2 Cols in new sheet
    By hammer2 in forum Excel General
    Replies: 4
    Last Post: 07-31-2012, 06:46 AM
  6. search numbers in 2 cols
    By VBisgreat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2009, 06:47 PM
  7. Macro to change value 2 cols over from search
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-27-2005, 05:05 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