Consulting

Results 1 to 4 of 4

Thread: Automate Vlookup in Excel spreadsheet

  1. #1

    Automate Vlookup in Excel spreadsheet

    Hello All,

    I'm kinda stuck with this spreadsheet lookup. I've a sheet 1 and sheet 2 in single spreadsheet:
    Sheet 1..........................Sheet 2

    Col A Col B Col A Col B
    1 Damaged
    2 Rework Needed
    12 Customer Reject
    11 Lost
    16 Poor Quality
    I need to automate this using Vlookup/or any other technique you guys suggest, so that when user enters value say (1 or 2) in Col B of sheet 1 then Col A of (sheet 1) will populate the values automatically from sheet 2 (Damaged, Rework needed, etc)

    Please help guys

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,729
    Location
    So if someone enters a 16 in A1 of Sheet1 you want "Poor Quality" in B1?

    Why not just use a normal worksheet VLookup formula in B1?
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by Paul_Hossler View Post
    So if someone enters a 16 in A1 of Sheet1 you want "Poor Quality" in B1?
    Other way around Paul.

    =VLOOKUP(B1,Sheet2!A:B,2,False)

    in A1 and copy down.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,729
    Location
    A - B

    B - A

    Close enough for government work
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •