+ Reply to Thread
Results 1 to 3 of 3

If a cell contains certain text then VLOOKUP

  1. #1
    Registered User
    Join Date
    04-17-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    28

    If a cell contains certain text then VLOOKUP

    I've got a spreadsheet for past due accounts and each account is assigned to a particular collector. I'm trying to create a formula that will read the collectors name and depending on the name return a value from a different workbook. For example, if the collector is "Jessica" then retrieve info from Jessica's spreadsheet. If the collector is "Teresa" then retrieve info from her spreadsheet.

    Thanks,
    John

    EDITED: Oops!! It's late and I just had an errant set of quotation marks. Here's the formula I used that works =IF($M2="Teresa",(VLOOKUP($A2,'[Teresa.xlsx]Top 50 Teresa'!$A$2:$M$51,13,FALSE)),(IF($M2="Jessica",(VLOOKUP($A2,'[Jessica.xlsx]Top 50 Jessica'!$A$2:$M$51,13,FALSE)),"")))
    Last edited by Johnny Image; 01-02-2016 at 01:04 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: If a cell contains certain text then VLOOKUP

    So what is your question - or did you fix it?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,867

    Re: If a cell contains certain text then VLOOKUP

    Try (guessing your requirement) ..

    =VLOOKUP($A2,INDIRECT("'C:\Users\Anybody\Desktop\["&M2&".xlsx]Top 50 "&M2&"'!$A$2:$M$51"),13,FALSE)

+ 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: 4
    Last Post: 09-21-2015, 05:07 AM
  2. [SOLVED] Using vlookup to find text on different sheet. (Text will not always in the same cell)
    By onlyconnect in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-14-2014, 11:33 AM
  3. [SOLVED] Vlookup a cell if it contains a certain text (within a column of text)
    By Rob8489 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-13-2013, 06:32 AM
  4. If Cell Text Matches Any Text From Range, Then Apply VLOOKUP?
    By eliot1171 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-12-2013, 09:41 PM
  5. Vlookup the row if in cell some text.
    By ALEZI in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-19-2013, 01:55 PM
  6. Replies: 5
    Last Post: 12-19-2012, 09:16 AM
  7. Replies: 4
    Last Post: 04-26-2012, 04:29 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