+ Reply to Thread
Results 1 to 3 of 3

Code mapping from another sheet

  1. #1
    Forum Contributor
    Join Date
    05-13-2009
    Location
    London, England
    MS-Off Ver
    Excel XP
    Posts
    174

    Code mapping from another sheet

    Hi guys

    basically I got 2 sheets - 'Sheet1' and 'Codes'

    In sheet 1 I have many columns of info(irrelevant here), we focus on one Column N, there are codes in this column and depending on the code I need to enter an Asset Class in Column AG.

    The Sheet (Codes) - has 2 columns with the code(column A) and its corresponding asset class in Column B.

    A lot of the codes belong to the same asset class so dont be confused if u see the same asset class category twice


    I need the macro to copy the correct asset class value from Column B(Sheet 'Codes) to Column AG of Sheet1.

    hope that was simple.

    thanks, please let me know if there are any questions
    Attached Files Attached Files
    Last edited by Pasha81; 11-11-2009 at 07:40 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Code mapping from another sheet

    In AG2 and copy down, =VLOOKUP(N2, Codes!$A$1:$B$107, 2, FALSE)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    05-13-2009
    Location
    London, England
    MS-Off Ver
    Excel XP
    Posts
    174

    Re: Code mapping from another sheet

    Thanks shg

    But is it possible to write a macro to do it? because it is a page that will have new data everyday, and the columns will be dynamic as well

+ 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