+ Reply to Thread
Results 1 to 7 of 7

VBA code 3 way lookup replace the old value by new value from masterdata

  1. #1
    Forum Contributor
    Join Date
    06-10-2014
    Location
    CANADA
    MS-Off Ver
    2016
    Posts
    118

    VBA code 3 way lookup replace the old value by new value from masterdata

    dear experts

    i have set of data need to compare with first 3 way lookup result with child series and description.

    lookup value is COUNTRY and DSERIAL and GCOA PARENT result should be match with masterdata file

    if not match replace by new value.

    for e.g COUNTRY = Luxembourg
    DSERIAL = 10004
    GCOA PARENT = P10000 RESULT SHOULD BE FOR THE MATCHING 100640

    find the attachment
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VBA code 3 way lookup replace the old value by new value from masterdata

    Hi,

    The simplest way would be to add a new column A to your data and concatenate the values now in B,C & D. i.e.
    =B2&C2&D2
    so that you have a unique 'key'

    Copy this down and you now have a VLookup table which you can use in sheet2
    i.e.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    06-10-2014
    Location
    CANADA
    MS-Off Ver
    2016
    Posts
    118

    Re: VBA code 3 way lookup replace the old value by new value from masterdata

    super sir if its works in vba it looks fantasy!! thanks for being time spend for me sir

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: VBA code 3 way lookup replace the old value by new value from masterdata

    VBA
    Please Login or Register  to view this content.

  5. #5
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: VBA code 3 way lookup replace the old value by new value from masterdata

    Last edited by macropod; 11-19-2015 at 11:58 PM.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,870

    Re: VBA code 3 way lookup replace the old value by new value from masterdata

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    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

  7. #7
    Forum Contributor
    Join Date
    06-10-2014
    Location
    CANADA
    MS-Off Ver
    2016
    Posts
    118

    Re: VBA code 3 way lookup replace the old value by new value from masterdata

    sorry sir for multiple-post

+ 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. Replace Macro recorded code with more effective code
    By scaffdog845 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-12-2014, 01:09 AM
  2. Replies: 0
    Last Post: 12-19-2012, 01:23 PM
  3. Lookup and Replace
    By Gavin Ling in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2009, 06:33 PM
  4. Lookup and replace help
    By cell-dweller in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-26-2008, 10:18 PM
  5. Replace #N/A from a lookup with 0 (zero)
    By stuck01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-10-2007, 02:01 PM
  6. Value lookup and replace value with a name
    By Walsh1234 in forum Excel General
    Replies: 4
    Last Post: 05-24-2007, 08:10 AM
  7. LOOKUP and REPLACE
    By wnfisba in forum Excel General
    Replies: 1
    Last Post: 01-12-2006, 02:10 PM

Tags for this Thread

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