+ Reply to Thread
Results 1 to 9 of 9

Lookup between sheets

  1. #1
    Registered User
    Join Date
    01-17-2007
    Location
    Downunder NZ
    MS-Off Ver
    MS Office 365
    Posts
    82

    Lookup between sheets

    I am having problems to get my lookup formula to work

    =LOOKUP($M27,('sheet 1'!$G:$G),('Sheet1'!$AC:$AC))

    On this Sheet2 in S27 I am after the value from Sheet1 column AC that matches cell Sheet2 M27 that matches the data in Sheet1 column G.

    I hope this makes sense.

    Thanks in advance.

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Lookup between sheets

    You could try (obviously untested):

    =INDEX('Sheet1'!$AC:$AC,MATCH($M27,'Sheet1'!$G:$G,0))

    - Moo

  3. #3
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Lookup between sheets

    Think you could try this ...
    In Sheet2,
    In S27: =INDEX(Sheet1!AC:AC,MATCH(M27,Sheet1!G:G,0))
    --------------------------------
    Any good? Wave it, whack the little star at the bottom left of my responses

  4. #4
    Registered User
    Join Date
    01-17-2007
    Location
    Downunder NZ
    MS-Off Ver
    MS Office 365
    Posts
    82

    Re: Lookup between sheets

    Thanks guys.

    For my only interests.

    Whats the difference between Lookup and Index?

    What does the 0 do at the end.

    Also if there is not data in the look up column AC, can I show a blank cell in S27?

  5. #5
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Lookup between sheets

    > Whats the difference between Lookup and Index?
    I don't use Lookup but you could always check up Excel help for the differences

    Here's my views ..
    The expression Index/Match is in function similar to Vlookup. I prefer using Index/Match as it allows one to retrieve stuff to the left or right of the Match col, unlike Vlookup. Also Index/Match avoids the "hassle" with the column index num reference required in Vlookup. For eg its much easier to just copy across Index/Match to have the returns from consecutive columns. Using Vlookup, you would need to count/increment the column index num from the first column of the table/range

    > What does the 0 do at the end
    The zero in MATCH(M27,Sheet1!G:G,0)
    specifies the MATCH to look for an exact match for M27 within Sheet1!G:G
    --------------------------------
    Any worth? Hit the little star at the bottom left of my responses

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

    Re: Lookup between sheets

    @ Max, just to add in to what you said..."Using Vlookup, you would need to count/increment the column index num from the first column of the table/range "...you could use MATCH() to automate that part for you too. VLOOKUP() needs a column number - MATCH() returns a number - so you could use it to find the *matching* column heading for that column reference
    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

  7. #7
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Lookup between sheets

    @FDibbins
    .... If you re-read the views expressed, it was a plain vanilla to vanilla comparison of the 2 functions, and viz a vis formulae propagation. Your add on would be amongst sophistications, which could come later after OP grasps the fundamentals

  8. #8
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Lookup between sheets

    > Also if there is not data in the look up column AC, can I show a blank cell in S27?
    A simple error trap could be used, indicatively like this:
    =IF(Index/Match=0,"",Index/Match)
    Last edited by Max, Singapore; 11-19-2013 at 10:21 PM.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lookup between sheets

    Another one...

    If the formula normally returns a TEXT value:

    =T(lookup_formula_here)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Lookup between sheets
    By jsmity in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-25-2013, 08:26 PM
  2. Replies: 1
    Last Post: 11-07-2012, 01:57 PM
  3. Replies: 0
    Last Post: 07-18-2012, 05:32 AM
  4. lookup across sheets
    By drchris in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-12-2007, 09:39 AM
  5. Lookup and Sum across sheets
    By Engineers08 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-24-2007, 02:18 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