+ Reply to Thread
Results 1 to 8 of 8

Look Up with multiple columns

  1. #1
    Forum Contributor
    Join Date
    06-05-2014
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    155

    Look Up with multiple columns

    Hi Team,

    Need your help to find a formula.

    I have a data in sheet 1 with numbers in column A and column B.. i have another data in sheet 2 in the same way..

    I am trying to figure out a formula with which i can identify the data in Sheet 1 in sheet 2..

    Example : - In sheet 1, row 1 has 197500 in column A and 100000001 in column B. I need to find out if the same numbers are available in sheet 2 in single row..

    Sample data attached.. Please refer sheet 1 and sheet 2. Please help..
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,445

    Re: Look Up with multiple columns

    Administrative note
    Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version. Your profile does not indicate your version.
    Thanks

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Look Up with multiple columns

    based on what you posted this should work... =IFERROR(IF(VLOOKUP(A3,Sheet1!A:A,1,FALSE)=A3,"Yes"),"No")
    But you don't really say if you are including the Project ID in the mix.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Forum Contributor
    Join Date
    06-05-2014
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    155

    Re: Look Up with multiple columns

    Quote Originally Posted by Sambo kid View Post
    based on what you posted this should work... =IFERROR(IF(VLOOKUP(A3,Sheet1!A:A,1,FALSE)=A3,"Yes"),"No")
    But you don't really say if you are including the Project ID in the mix.
    Yes, Project ID is included.. If the combination of Emp ID and Project ID is repeated in sheet 2.. It should be called out in sheet 2 with "Yes"..

  5. #5
    Forum Contributor
    Join Date
    11-10-2017
    Location
    INDIA
    MS-Off Ver
    365
    Posts
    184

    Re: Look Up with multiple columns

    Hi,

    In Sheet 1, add the formula in col C
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In Sheet 2,add the formula in col C
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Look Up with multiple columns

    this should work then, it is an array formula...
    =IFERROR(IF(VLOOKUP(A3&B3,Sheet1!$A$3:$A$11&Sheet1!$B$3:$B$11,1,FALSE)=A3&B3,"Yes"),"No")
    activate it by pressing ctrl+shift+enter so that the {} appear on both ends, you cannot add them, the three keys have to be pressed to activate it.

  7. #7
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Look Up with multiple columns

    In Cell C3 of Sheet2 try

    =IF(COUNTIFS(Sheet1!A:A,A3,Sheet1!B:B,B3),"Yes","No")

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,445

    Re: Look Up with multiple columns

    @Aruin
    Administrative note

    Please update your profile '(post #2)

+ 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] Pulling info from multiple possible columns using multiple criteria columns
    By Barren_Wuffett in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-08-2019, 05:37 PM
  2. Pulling single cell from multiple possible columns using multiple criteria columns
    By Barren_Wuffett in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-05-2019, 09:24 AM
  3. Replies: 5
    Last Post: 07-15-2019, 11:32 AM
  4. VBA Code to compare/match multiple columns in one sheet with multiple columns in another
    By cellsearch123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2016, 09:25 AM
  5. Add Multiple Columns based on same criteria found in multiple columns
    By KathyBNelson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-29-2014, 04:42 PM
  6. Replies: 9
    Last Post: 12-15-2013, 10:05 PM
  7. Combining multiple rows from 2 columns into sorted columns depending on 1st columns value
    By Dexamphetamine in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-11-2013, 10:00 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