+ Reply to Thread
Results 1 to 9 of 9

Excel 2007 : have Vlookup pull from 2 sheets in the same cell

  1. #1
    Forum Contributor
    Join Date
    02-02-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    255

    have Vlookup pull from 2 sheets in the same cell

    I have it pulling from from sheet but I need it to grab information from another if we put information that attains to the other sheet. The formula I have now is:

    =IF(ISBLANK(C3),"",VLOOKUP(C3,'R:\[02-23-2012 Raw Apples.xlsx]Processing'!$A$3:$AD$8000,5,FALSE))

    I need it to grab from the same document but a different sheet, the sheet name is Juice instead of Proccessing. Also the document title was changed to 2-28-2012 but my formula didn't, it stayed on the 2-23, that won't be a problem. It seem to still work.
    Last edited by srgtennis; 02-28-2012 at 01:36 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: have Vlookup pull from 2 sheets in the same cell

    Difficult to understand, but maybe?

    =IF(ISBLANK(C3),"",IFERROR(VLOOKUP(C3,'R:\[02-28-2012 Raw Apples.xlsx]Processing'!$A$3:$AD$8000,5,FALSE),VLOOKUP(C3,'R:\[02-28-2012 Raw Apples.xlsx]Juice'!$A$3:$AD$8000,5,FALSE))

    This will look first in the Processing sheet, if not found it will go to the Juice sheet... same ranges.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    02-02-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    255

    Re: have Vlookup pull from 2 sheets in the same cell

    It doesn't seem to work?

  4. #4
    Forum Contributor
    Join Date
    02-02-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    255

    Re: have Vlookup pull from 2 sheets in the same cell

    =IF(ISBLANK(C45),"",VLOOKUP(C45,'[02-28-2012 Raw Apples.xlsx]Processing'!$A$3:$AD$8000,5,FALSE)),VLOOKUP(C45,'[02-28-2012 Raw Apples.xlsx]Juice'!$A$3:$I$8000,4,FALSE))

    I can't get this to work. Need it to pull from Processing and from Juice. The first section works by itself but when I add the second section it won't work.

  5. #5
    Forum Contributor
    Join Date
    02-02-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    255

    Re: have Vlookup pull from 2 sheets in the same cell

    they both work it I seperate them but they won't work together.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: have Vlookup pull from 2 sheets in the same cell

    Are you using Excel 2007?

    if not try:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    02-02-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    255

    Re: have Vlookup pull from 2 sheets in the same cell

    yes I am using excel 2007

  8. #8
    Forum Contributor
    Join Date
    02-02-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    255

    Re: have Vlookup pull from 2 sheets in the same cell

    Yes that formula works awesome thank you. what does the "isna" mean?

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: have Vlookup pull from 2 sheets in the same cell

    If you are using EXCEL 2007, then the original should work, you need to just add another closing parenthesis at the end to my formula.....

    the ISNA() means if the result of the first VLOOKUP is #N/A error (meaning no matches found), then go to the other VLOOKUP, else do the first VLOOKUP.

+ 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