+ Reply to Thread
Results 1 to 8 of 8

Help with a Vlookup pulling from another file

  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    66

    Help with a Vlookup pulling from another file

    I have two files. I need column N on my CRMsheet to pull data from 107sheet based on criteria in Column A on CRMSheet being the same as column C on 107sheet on the data tab.
    Last edited by missmea2005; 11-14-2012 at 11:30 AM.

  2. #2
    Registered User
    Join Date
    08-27-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    66

    Re: Help with a Vlookup pulling from another file

    I have the following forumula now
    HTML Code: 

  3. #3
    Registered User
    Join Date
    08-27-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    66

    Re: Help with a Vlookup pulling from another file

    Also tried this
    Please Login or Register  to view this content.
    I need it to search the entire column, but I am getting nothing

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

    Re: Help with a Vlookup pulling from another file

    the lookup value needs to be a single cell. hence

    =IFERROR(VLOOKUP($A2,[107Sheet.xlsx]Data!$A$2:$H$171,2,FALSE),"")

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

  5. #5
    Registered User
    Join Date
    08-27-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    66

    Re: Help with a Vlookup pulling from another file

    I'm still getting nothing back. Am I using the incorrect criteria in the forumla?

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

    Re: Help with a Vlookup pulling from another file

    Had a look at your files ..

    Use
    =IFERROR(VLOOKUP($A2,[107Sheet.xlsx]Data!$C:$H,2,FALSE),"")

  7. #7
    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
    52,933

    Re: Help with a Vlookup pulling from another file

    Thats because the very 1st column of the range you are searching in, HAS to contain what you are searching for, vlookup cannot (easily) search "behind" itself - ie to the left of the left of the column containing the search criteria

    For this, you need to use index/match. If you are looking for the grand total, try something like this...

    =INDEX('[107Sheet (1).xlsx]Data'!$A$2:$H$171,MATCH(A2,'[107Sheet (1).xlsx]Data'!$C$2:$C$171,0),1)
    or...

    you could do away with you're data sheet altogether and base everything off the PT on sheet1?
    =INDEX('[107Sheet (1).xlsx]Sheet1'!$A$2:$H$171,MATCH(A2,'[107Sheet (1).xlsx]Sheet1'!$B$2:$B$171,0),8)
    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

  8. #8
    Registered User
    Join Date
    08-27-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    66

    Re: Help with a Vlookup pulling from another file

    Thank you all soooo much!!!!!!! The index/match did it!!!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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