+ Reply to Thread
Results 1 to 3 of 3

Index Match in VBA = Error "Expected: ="

  1. #1
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Minnesota
    MS-Off Ver
    Office 365
    Posts
    163

    Index Match in VBA = Error "Expected: ="

    I’m trying to use an index match formula with a loop, and am getting the compile error “Expected: =” before I get a chance to end the loop. Would someone please tell me what I’m doing wrong?

    Please Login or Register  to view this content.
    Thanks for the help!
    Last edited by OpieWinston; 09-12-2017 at 05:46 PM.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Index Match in VBA = Error "Expected: ="

    Hi,

    You have called a function that returns a value but you aren't doing anything with that value- you need to assign it to something, whether it be a cell or variable.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Minnesota
    MS-Off Ver
    Office 365
    Posts
    163

    Re: Index Match in VBA = Error "Expected: ="

    And the error went away - thank you very much!

+ 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: 2
    Last Post: 07-24-2017, 02:19 AM
  2. [SOLVED] Another "#REF error with Index/Match" question...
    By Triedtwice in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-10-2014, 01:05 PM
  3. INDEX & MATCH = "#NAME?" Error.
    By excelV3 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-17-2014, 05:33 PM
  4. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  5. Strings Variables in Range("A1").Formula = "=index/match" ?
    By nadnerb5 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-19-2012, 05:07 PM
  6. [SOLVED] Variable "sheet-name" and "range-name" wanted in INDEX/MATCH-function
    By Fiebuls in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-01-2012, 04:09 PM
  7. GoTo compile error: "Expected: line number or label"
    By elfsprin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-29-2011, 09:21 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