+ Reply to Thread
Results 1 to 2 of 2

VBA Help - Keeping Source Data Formatting Using Vlookup for Multiple Cells

  1. #1
    Registered User
    Join Date
    08-17-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    2

    VBA Help - Keeping Source Data Formatting Using Vlookup for Multiple Cells

    Hello,

    I was wondering if someone may be able to help me. I have been looking through the forums but all the macros i can find are quite basic and only work for singular columns. I am extremely to using VBA so please treat all responses as if it's my first time using VBA. Conditional formatting is not an option due to inconsistent information in every cell.

    I have a workbook that has 3 sheets in it (1- Master, 2- Unique ID No Allocation, 3- Data). What I need to do is when I paste the new information in the "Data" tab to be able to run a macro what will transfer the 3 comments from the data tab to the master register against the unique ID. It needs to only update the IDs stated in the data tab and leave all other information as is against all other IDs. This is a large register with almost 10,000 unique IDs.

    TAB 1 (MASTER) - Master Register
    Column A - Unique ID No. - inserted via Vlookup from Tab 2 which has the ID list =IFERROR(VLOOKUP(M6,Sheet2!A:B,2,0),"")
    Column M - Document Number
    Column AB - Comment 1 - Vlookup =IFERROR(VLOOKUP(A6,Data!A:C,3,0),"") - need to replace this formulas function with the macro
    Column AC - Comment 2 - Vlookup =IFERROR(VLOOKUP(A6,Data!A:D,4,0),"") - need to replace this formulas function with the macro
    Column AD - Comment 3 - Vlookup =IFERROR(VLOOKUP(A6,Data!A:E,5,0),"") - need to replace this formulas function with the macro

    TAB 2 (Sheet 2) - ID Register
    Column A - Document Number
    Column B - Unique ID Number Allocated

    TAB 3 (Data) - Updated information is pasted in here
    Column A - Unique ID No. - inserted via Vlookup from Tab 2 which has the ID list =IFERROR(VLOOKUP(M6,Sheet2!A:B,2,0),"")
    Column B - Document Number
    Column C - Comment 1 (new comment)
    Column D - Comment 2 (new comment)
    Column E - Comment 3 (new comment)

    If anyone can solve this for me I would be forever grateful.

    Thanks

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: VBA Help - Keeping Source Data Formatting Using Vlookup for Multiple Cells

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

+ 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] Excel VBA Help: Keeping source formatting in VLOOKUP
    By Smores in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-06-2017, 05:31 PM
  2. [SOLVED] Keeping Source Formatting with Paste Link and VLOOKUP
    By nrehman in forum Excel General
    Replies: 1
    Last Post: 10-06-2005, 02:05 PM
  3. [SOLVED] Combining Cells BUT Keeping source formatting
    By FROSTY in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. [SOLVED] Combining Cells BUT Keeping source formatting
    By Vasant Nanavati in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  5. Combining Cells BUT Keeping source formatting
    By FROSTY in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  6. Combining Cells BUT Keeping source formatting
    By FROSTY in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  7. Combining Cells BUT Keeping source formatting
    By FROSTY in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-08-2005, 08:05 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