+ Reply to Thread
Results 1 to 4 of 4

VBA vlookup to match 3 set of data

  1. #1
    Registered User
    Join Date
    04-28-2019
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    1

    VBA vlookup to match 3 set of data

    Hi all,

    This is the first time posting here as I just cannot figure out a code to VBA and match the column. Currently I am doing it for my workers in an Excel so it can simplify several checking procedure with a click of a button. I only know how to match 1 column using VBA with the QTY.

    Excel table.png

    So basically I will need the first check be the 4th column to match with the 1st column and the row will move to match. Next will be the 5th column to check and match with the 2nd column and the 3rd check will be 6th column match and check with the 3rd column. The first 3 columns will not be moved and last 3 columns' row will be move together. If there is no match, it will be highlighted RED. As I will need VBA such that with a press of a button it will be match. Thank you very much in advance.

    So basically the process flow will be Excel will use the value of Cell A2 to match with value of column D. Thus cell D4 has the same value as cell A2 and the whole row of D4,E4 and F4 will be moved to D2, E2 and F2 respectively. Next row will be the same however the cell F3 has a different value thus will be highlighted red. The 3rd row will also match accordingly. On the 4th row , the column D has the same value but column E do not have the same value thus it will be highlighted red. The column D 5th row do not even have the same value thus it will be be matched at all and just be highlighted red.

    So the first criteria will be the column D follow by column E and F. Whenever one of the value dont match, it will be highlighted red. Thank you.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: VBA vlookup to match 3 set of data


    Hi !

    No need any code just using the cell conditional formatting …

  3. #3
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: VBA vlookup to match 3 set of data

    Something like

    Please Login or Register  to view this content.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: VBA vlookup to match 3 set of data

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

+ 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. Match the data with the help of Vlookup
    By AVG123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-05-2018, 02:11 AM
  2. Data validation and automatically Vlookup with match data
    By Anisusa in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 06-06-2018, 04:11 PM
  3. [SOLVED] how do I vlookup a cell with mulitple data to match another another multiple data,
    By kemi2299 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-13-2013, 08:21 AM
  4. Best way to Match Data i.e Vlookup
    By johnny_p in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-08-2013, 12:18 PM
  5. How to use VLOOKUP to match the data?
    By kalucharan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-30-2012, 02:26 AM
  6. Use vlookup to match a range of data?
    By lukumanii in forum Excel General
    Replies: 2
    Last Post: 07-25-2011, 08:58 PM
  7. Trying to use a VLOOKUP to match data...
    By JonnyNYC90 in forum Excel General
    Replies: 3
    Last Post: 06-27-2011, 11:23 AM

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