Results 1 to 1 of 1

VBA to output a value based on value from a Lookup table

Threaded View

  1. #1
    Registered User
    Join Date
    03-05-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2010
    Posts
    1

    VBA to output a value based on value from a Lookup table

    Hi there,

    I am new to VBA so this may be relatively straightforward. I am pulling data from several different workbooks, one of the values I want to extract I want to change it when outputted based on what I have in a Lookup table. To explain further I want to take the value in A1 and compare it to the value in my Lookup table and then give the value in the adjacent column.

    For example:
    A1 values from different workbooks
    WB1.S1.A1      WB2.S1.A1       WB3.S1.A1
    SalesUK        SalesUS         SalesEur
    Lookup Table
    A         B
    SalesUK   UK
    SalesUS   US
    SalesEur  EUR
    so if A1 in workbook 1 is equal to "SalesUK", I want to then check the lookup table for this value and output the value in column B, "UK".

    If anyone can help that would be great.

    Thanks in advance
    Last edited by JBeaucaire; 03-05-2013 at 08:22 AM.

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