+ Reply to Thread
Results 1 to 2 of 2

VBA index

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-16-2020
    Location
    Alberta, Canada
    MS-Off Ver
    365
    Posts
    230

    VBA index

    I can't seem to get this index to work in VBA



    SP1Mxa = Application.WorksheetFunction.VLookup("a", "'[Library.xlam]Main Sheet'!" & SP1, Match("Mx", Index("'[Library.xlam]Main Sheet'!" & SP1, 1, 0), 0), 0)
    the Index comes back with wrong number of arguments or invalid property assignment.

    "a" is the row value I'm looking for
    SP1 is the table name
    'Mx" is the table header name i'm looking for

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: VBA index

    What should the formula look like without VBA?

+ 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 not cycling through entire index. Formula not updating when values change...
    By nordxnortheast in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2020, 10:44 AM
  2. [SOLVED] Index/Aggregate formula calculates correct row but does not yield name from Index array
    By FivestarMac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2019, 05:07 PM
  3. Replies: 1
    Last Post: 08-17-2019, 01:11 PM
  4. [SOLVED] Use Weekday function with (Countif Sumproduct, +Index) also If(IsError(search(mid +Index
    By Brian.Aerojet in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-09-2018, 06:16 AM
  5. [SOLVED] Index un-indexed items keeping original index numbers where they exist
    By BRISBANEBOB in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-25-2016, 03:55 AM
  6. [SOLVED] Converting Hlookup to Index Match with variable column index number
    By SimonLock in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-09-2015, 09:14 AM
  7. Replies: 4
    Last Post: 12-27-2012, 06:18 PM

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