+ Reply to Thread
Results 1 to 4 of 4

VBA Index Match

  1. #1
    Registered User
    Join Date
    03-05-2018
    Location
    sydney
    MS-Off Ver
    2010
    Posts
    6

    VBA Index Match

    Hi everyone,

    I'm just trying to get index match formula to work with VBA.
    I have it set up like this

    Please Login or Register  to view this content.
    array1 = range of data to return value from, array 2 = lookup array, test = value to look for.
    But when I have it run with indexmatch(a1), I get a #VALUE! error, anyone know how I can get it to work?

    Thanks!

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VBA Index Match

    Where and how do you define the arrays? Are they Public variables?

    Is this suppose to be a User Defined Function used as a formula in a worksheet?
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    03-05-2018
    Location
    sydney
    MS-Off Ver
    2010
    Posts
    6

    Re: VBA Index Match

    Hey AlphaFrog,

    I've just chosen two ranges of data down columns as arrays1 and arrays2
    Yes, it should ideally be a formula they can just type in a worksheet
    Last edited by acho92; 03-12-2018 at 07:37 PM.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VBA Index Match

    Quote Originally Posted by acho92 View Post
    I've just chosen two ranges of data down columns as arrays1 and arrays2
    I'm not exactly sure what that means?

    What do you mean "chosen" and how does that relate to arrays1 and arrays2? Be very specific please.

+ 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 instead of VLOOKUP+MATCH, why is INDEX a better choice and how to re-write?
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 10:54 AM
  2. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  3. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  4. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  7. Replies: 3
    Last Post: 05-02-2013, 01:31 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