+ Reply to Thread
Results 1 to 14 of 14

VLookup Formula using two worksheets

  1. #1
    Registered User
    Join Date
    11-01-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    14

    VLookup Formula using two worksheets

    I need a formula to look up the Trancode on the "Data" tab and find it on the “AMR wTranCodes” tab and send me back the Access Model Name for that trancode. I am running the Vlookup from the “Data” tab. Right now what I have is:

    =Vlookup(A2,”AMR wTran Codes’!A2:F11,’AMR wTranCodes’!A:A,)

    As you can see it doesn’t work. Anyone? Below are snapshots of my worksheets. They are in the same document. Does the formatting of the cell have anything to do with it? Column E in the Data tab is General. Column F in the AMBR wTran Codes tab is Number.

    Thanks for any help you can be.
    Attached Files Attached Files
    Last edited by Stormy4757; 12-26-2013 at 02:02 PM. Reason: Marking it solved

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

    Re: VLookup Formula using two worksheets

    You'll need to use LOOKUP or INDEX/MATCH. VLOOKUP only works if the value you are looking up is on the left side of your lookup range.
    Try:
    =INDEX('AMR wTran Codes'!A$2:A$1000, MATCH(A2, 'AMR wTran Codes'!F$2:F$1000,0))

    However, very few of your transcodes from Data are in column F of AMR...
    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

  3. #3
    Registered User
    Join Date
    11-01-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: VLookup Formula using two worksheets

    Let me explain again. The first tab is the Data tab which contains the "Trancode" that I want to search for on the second tab (AMR wTran Codes) and find the Access Model name that correlates with that trancode. I want to bring that Access Model name back to the Data tab so that the boss can see that info on the Data tab. I tried your formula, it did not work. Anyone else?

  4. #4
    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,946

    Re: VLookup Formula using two worksheets

    What ChemistB is saying is that out of 6242 entries, only 1 360 transcoded in DATA are in the AMR sheet. I tested the formula suggested, and it works just fine.

    I tried your formula, it did not work.
    what didnt work? what answer were you expecting?
    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

  5. #5
    Registered User
    Join Date
    11-01-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: VLookup Formula using two worksheets

    I want to pull the Access Model Name from column A of the 2nd tab, "AMR...". This formula is pulling the trancode over. And yes, I know that all of the numbers in the DATA tab are not there. It is not fully built yet!

    Let's go to line 5042 of the Data tab. The Transcode is 0016. We move over to the Column E to insert the formula. When inserting the formula, whatever we use, LOOKUP, MATCH, INDEX, we go to the AMR wTran Code tab, (take a look) and we see the Tran Code we are looking for on line 2. I want the result in Column A returned. I hope this makes sense. Maybe I haven't been making myself clear. IDK Anyway, I have pasted the formula provided and handtyped it in and the first thing it does is give me a pop up window that is titled "Update Values: AMR wTran Codes". It looks like the pop up window you get when you are opening a new document.

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

    Re: VLookup Formula using two worksheets

    Here you go with the formula applied.
    Row 5042 returns AM_ICS_TC_PAN_0016_UPD
    Is this what you are looking for?
    Attached Files Attached Files

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: VLookup Formula using two worksheets

    It works for me (and you have been perfectly clear about what you want).

    You can't put the formula Chemist posted into E5042 directly.
    Because it would then be looking at A2 (not A5042)

    You have to put it in E2, then Fill it down so the A2 incriments to A3 to A4 etc...

    In E5042 the formula will look like
    =INDEX('AMR wTran Codes'!A$2:A$1000, MATCH(A5042, 'AMR wTran Codes'!F$2:F$1000,0))


    See here
    EFStormy.xlsx

  8. #8
    Registered User
    Join Date
    11-01-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: VLookup Formula using two worksheets

    ChemistB:
    Yes, this is what I am looking for but when I tried your formula it did not work for me. I did paste it into the row two and copied it down. Don't know what happened. I will play with it to see why it did not work for me. I have saved your worksheet for my reference. I have studied it and it now makes sense to me. Not sure why it didn't work the first few times. Thank you! Thank you! Thank you!

    Stormy

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: VLookup Formula using two worksheets

    Perhaps you have calculation set to manual in your book.

  10. #10
    Registered User
    Join Date
    11-01-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: VLookup Formula using two worksheets

    Jonmo1,
    I took a look and I have it set to auto. But thanks for your feedback. Since I have your attention, can either one of you recommend a course on excel that really goes into detail on this kind of stuff? I have access to Skillsoft courses online but you probably know they are so basic. I have watched some on YouTube. I am willing to spend the money if there is a good comprehensive one. Thanks again!

    Stormy

  11. #11
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: VLookup Formula using two worksheets

    I've never been much of a 'book learner'
    I learn best by trial and error.
    So reading these excel forums was really the best educational tool for me.

  12. #12
    Registered User
    Join Date
    11-01-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: VLookup Formula using two worksheets

    ok thanks!

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

    Re: SOLVED: VLookup Formula using two worksheets

    Sorry, my story is the same as Jonmo's. I learned 90% of what I know about Excel on the forums and trying them out.

  14. #14
    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,946

    Re: SOLVED: VLookup Formula using two worksheets

    I guess that makes 3 of us then, most of what I know has come from here and from a "there must be an easier way of doing this" approach

+ 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. [SOLVED] Dynamic Vlookup Formula to get information from different worksheets
    By BigDawg15 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-07-2013, 06:26 PM
  2. Replies: 9
    Last Post: 06-16-2013, 04:58 PM
  3. [SOLVED] VBA code for change vlookup formula to vlookup formula with ISNA
    By erprasannaa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2013, 03:33 AM
  4. [SOLVED] Help Joining 3 worksheets using common fields using IF & VLOOKUP formula
    By Jennsy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-02-2012, 11:44 AM
  5. [SOLVED] how to use 2 worksheets in one formula with INDIRECT & VLOOKUP
    By NEWB in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-03-2005, 01:50 AM

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