+ Reply to Thread
Results 1 to 11 of 11

Lookup from a separate sheet

  1. #1
    Registered User
    Join Date
    09-28-2010
    Location
    Petal, MS
    MS-Off Ver
    Excel 2007
    Posts
    4

    Lookup from a separate sheet

    I am looking for a formula that will look up in a given text in a specific column on a different tab and return the corresponding answer from different column. All answer that appliy.
    Last edited by NBVC; 09-28-2010 at 12:28 PM. Reason: OP couldn't edit title

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,883

    Re: Excel Formula

    You can probably make use of VLOOKUP

    Regards

  3. #3
    Registered User
    Join Date
    09-28-2010
    Location
    Petal, MS
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Excel Formula

    I tried that one but no luck.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,010

    Re: Excel Formula

    David, you might be able to get more assistance if you were more specific about your issue. You have provided only general issues so you have recieved only general responses. The more details you provide, the more specific the solutions. Want to try this again?

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,883

    Re: Lookup from a separate sheet

    To pick up on Alan's point, a sample workbook with typical data would be helpful with a succinct definition of your requirements.

    It may be that, if you are looking up something in column C but want data returned from column A or B, you could use INDEX/MATCH.

    At the moment it's difficult to guess at your exact needs and why VLOOKUP isn't appropriate.

    Regards

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

    Re: Lookup from a separate sheet

    e.g.

    =Vlookup(A1,'Sheet2'!A:B,2,false)

    looks up value in A1 of active sheet, finds it in column A of Sheet2, and returns value from 2nd column in range A:B, ie. from Column B
    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.

  7. #7
    Registered User
    Join Date
    09-28-2010
    Location
    Petal, MS
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Lookup from a separate sheet

    From sheet 2, I want to find all entries in column A of sheet 1 with "excess" in it and retreive the data in column E that correspondes with data in column Aand return it to sheet 2 with all of the data.
    Attached Files Attached Files

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

    Re: Lookup from a separate sheet

    Try this:

    In G1 of Sheet1 enter:

    =COUNTIF($A$1:A1,"Excess")

    and copy down

    in H1 enter:

    =MAX(G:G)

    Then in Sheet2, A2 enter:

    =IF(ROWS($A$1:$A1)>Sheet1!$H$1,"",INDEX(Sheet1!E:E,MATCH(ROWS($A$1:$A1),Sheet1!$G:$G)))

    copied down as far as you want.

  9. #9
    Registered User
    Join Date
    09-28-2010
    Location
    Petal, MS
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Lookup from a separate sheet

    Sorry, no luck with this one.

  10. #10
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Lookup from a separate sheet

    NBVC forgot a 0

    =IF(ROWS($A$1:$A1)>Sheet1!$H$1,"",INDEX(Sheet1!E:E,MATCH(ROWS($A$1:$A1),Sheet1!$G:$G,0)))

    See attached.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

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

    Re: Lookup from a separate sheet

    Thanks Chemist.. you are correct... should've double checked the results.... :oops:

+ 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