+ Reply to Thread
Results 1 to 3 of 3

VBA excel - match based on 3 criterias and retrieve values from another workbook

  1. #1
    Registered User
    Join Date
    06-10-2018
    Location
    SG
    MS-Off Ver
    MS Office 2013
    Posts
    7

    VBA excel - match based on 3 criterias and retrieve values from another workbook

    I have two separate workbooks saved in the same file location (Workbook 1 and Workbook 2)

    what i'm looking for is a macro that searches for a VehicleKey (unique key number) by 3 criteria - YRMANF(year of manufacture) , CAPCTY(car capacity), brand(car brand) from workbook1(macro for car) to YearGroup(year of manufacture) , EngineSize(car capacity), MakeDescription(car brand) from workbook 2(redbook).

    Workbook 2 consist of about 10000 rows of data and my current method of looping is too slow.

    If a match is found then I want the corresponding values from column A in Workbook 2 to be copied onto workbook 1's column J. Here is the values populated in Workbook1,Worksheet1.jpg
    then matched in Workbook2 worksheet2.jpg

    Workbook 2 won't be opened by the user, they will just click a button in Workbook1 and it will populate the data.

    I currently have this working but with Vlookups which has greatly slowed down opening workbook 1.
    My current work is:

    Please Login or Register  to view this content.
    any help is appreciated! Thank you.
    Last edited by mrdouglaswee; 06-19-2018 at 05:30 AM.

  2. #2
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: VBA excel - match based on 3 criterias and retrieve values from another workbook

    Hi,
    Do I understand correctly?
    You have "Workbook2", basically database and "Workbook1" where you manually input some paramaters and want to get additionally info from "Workbook2"?
    If you say that "Workbook2" will not be opened by user - this means that data are static and will not be updated, but only used as a source for "Workbook1"?
    You could decsribe more in detail how do you use "Workbook1" and attach two sample files, with dummy data, but the same structure as original files.
    There are several ways how to make it faster, but need some more info

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

    Re: VBA excel - match based on 3 criterias and retrieve values from another workbook


    Hi !

    An easy way to extract data is to use an advanced filter …

+ 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] Index match formula based on 4 criterias
    By St3ff3ns in forum Excel General
    Replies: 1
    Last Post: 08-12-2016, 11:38 AM
  2. Look at multiple criterias to see if table values match values of other tables
    By gaudi93080 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-15-2014, 06:45 PM
  3. [SOLVED] Index / Match from another sheet based on 2 criterias (date & name)
    By chico.corrales in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-10-2013, 10:30 PM
  4. Match two values between two list using two criterias
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2013, 09:56 AM
  5. Centralized Excel sheet and a way to find values based on 3 criterias
    By Tim Georgiev in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-05-2012, 08:17 AM
  6. index match based on multiple criterias
    By jw01 in forum Excel General
    Replies: 4
    Last Post: 09-13-2011, 02:21 PM
  7. Replies: 2
    Last Post: 10-20-2010, 07:23 AM

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