+ Reply to Thread
Results 1 to 3 of 3

vba code for an index match functions across different workbooks - all open

  1. #1
    Registered User
    Join Date
    12-06-2016
    Location
    ADCADC
    MS-Off Ver
    13
    Posts
    5

    vba code for an index match functions across different workbooks - all open

    Hi, I am new to vba. Can anyone help me with a vba code for an index match functions across different workbooks. I have tried recording a macro but since my data size is huge it is taking a lot of time. I want the macro to search for a value across 8 workbooks and stop when it finds its first match. I also need this operation to be repeated till the last row where data exists. please help. Thank you in advance for your consideration.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,938

    Re: vba code for an index match functions across different workbooks - all open

    Does order matter? Do the workbooks have multiple sheets? Do you need to search all cells, or just specific columns? Exact match or just if the cell contains a substring? What do you want returned when the value is found?
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    12-06-2016
    Location
    ADCADC
    MS-Off Ver
    13
    Posts
    5

    Re: vba code for an index match functions across different workbooks - all open

    Does order matter? Do the workbooks have multiple sheets?
    Do you need to search all cells, or just specific columns?
    Exact match or just if the cell contains a substring?
    What do you want returned when the value is found?

    Hi thanks for your quick response. Yes order does matter.Just specific columns in each workbook.Each workbook has multiple sheets. In the macro i would
    want to define the sheet name in each workbook. Exact Match.When the value is found it paste the values and moves to the next row.(till the last row in which data is there.

    workbook 1 workbook 2 workbook 3
    alpha code alpha code alpha code
    a 12 a 21 r 20
    b 15 e 25 p 19
    c 20 f 28 q 18


    final workbook(workbook in which macro is inserted)
    alpha code
    b 15
    c 20
    r
    f
    t (if not found(mention "not found"))

+ 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. Replies: 1
    Last Post: 07-31-2017, 07:03 PM
  2. Help with index and match functions
    By romasasss in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-29-2013, 02:47 AM
  3. [SOLVED] Help with match and Index functions
    By i82 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-13-2013, 08:52 AM
  4. [SOLVED] Help with index and match functions
    By smile0 in forum Excel General
    Replies: 3
    Last Post: 05-30-2012, 01:11 PM
  5. Index and Match functions
    By bmark in forum Excel General
    Replies: 3
    Last Post: 05-01-2012, 06:02 PM
  6. Index And Match Functions
    By Ansonicus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2008, 02:20 PM
  7. Using Index() & Match() functions
    By Walter349 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-08-2006, 09: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