+ Reply to Thread
Results 1 to 8 of 8

Need help with vlookup

  1. #1
    Registered User
    Join Date
    12-02-2005
    Posts
    9

    Need help with vlookup

    Hi all,

    Trying to use vlookup to fetch a column based on matching string. Not sure if can be done with vlookup, so far no luck.

    My target is I want to grab the emails for Tom, John and Jarry in Excel file1 under header2 when the value is Red in Excel File2 under header2.

    How I can put that IF or Match condition inside vlookup?

    So that the file will look like:

    header1 header2
    -------- ---------
    Tom [email protected]
    John [email protected]
    Jarry [email protected]


    Current Excel file1 has sheet1 which has one column as
    header1 header2
    -------- ---------
    Tom
    John
    Jarry


    Excel File2 has sheet1 with 3 columns as

    header1 header2 header3
    ---------------------------------
    Tom Red [email protected]
    John Black [email protected]
    Jarry White [email protected]
    Tom Blue [email protected]
    John Red [email protected]
    Jarry Red [email protected]



    Thanks in advance.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need help with vlookup

    Maybe use INDEX() and MATCH() functions, will be easier

  3. #3
    Registered User
    Join Date
    12-02-2005
    Posts
    9

    Re: Need help with vlookup

    =VLOOKUP(A2,[Book2.xlsx]Sheet1!$A$2:$C$7,3,0) gives me the 1st match and also can't put the condition to look only for Red.

    Will take a look at the match and index. But any example would be a great help.

    thanks.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,597

    Re: Need help with vlookup

    Try this ARRAY formula, to be confirmed with Ctrl+Shift+Enter together.
    Please Login or Register  to view this content.
    Last edited by kvsrinivasamurthy; 07-23-2017 at 12:41 AM.

  5. #5
    Registered User
    Join Date
    12-02-2005
    Posts
    9

    Re: Need help with vlookup

    Got 0 in the cell.

    excelerr.jpg

  6. #6
    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
    81,215

    Re: Need help with vlookup

    We can't troubleshoot a screenshot - please upload the workbook.
    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.

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,597

    Re: Need help with vlookup

    Are you searching only for Tom Or Tom& Red. Pl Upload file showing the required results.

  8. #8
    Registered User
    Join Date
    12-02-2005
    Posts
    9

    Re: Need help with vlookup

    Perfect, thanks a lot PMiafzal555 and everyone.

    That was what I was looking for.

    Thanks.

+ 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. Replies: 5
    Last Post: 12-07-2016, 09:18 AM
  2. Replies: 3
    Last Post: 12-04-2014, 01:27 PM
  3. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  4. Display Cell within VLookup range that excel thinks matches the VLookup Value
    By headachexcelperson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 04:56 PM
  5. how to bring all vlookup returns even with duplicate vlookup search keys
    By NYC4LIFE in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2013, 04:53 PM
  6. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  7. Replies: 5
    Last Post: 07-29-2009, 07:53 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