+ Reply to Thread
Results 1 to 6 of 6

VBA Multiple Criteria Index Match

  1. #1
    Registered User
    Join Date
    07-30-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    7

    VBA Multiple Criteria Index Match

    Hi. I am trying to do an index match with multiple criteria and it keeps on returning a 'False' value. I am also not sure if it is adjusting the indexmatch lookup values for each row. Thanks!
    Please Login or Register  to view this content.
    oh and I recorded the array function and it still did not work in vba

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,935

    Re: VBA Multiple Criteria Index Match

    Your If function is not complete, it's missing the "THEN" (VALUE IF FALSE) parameter.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    07-30-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: VBA Multiple Criteria Index Match

    The function "INDEX('C:\[Parts.xlsm]Parts'!$H$3:$H$36000,MATCH(D2,IF('C:\[Parts.xlsm]Parts'!$E$3:$E$36000=E2,'C:\[Parts.xlsm]Parts'!$D$3:$D$36000),0))" works in the actual spreadsheet. Does it require a 'then' if it is in VBA?

    I tried to use 'evaluate' before it and then I got a VALUE error.

    Not sure what is wrong

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: VBA Multiple Criteria Index Match


  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: VBA Multiple Criteria Index Match

    Thanks jindon

    Hello blablah, and welcome to the forum.

    Unfortunately you have inadvertently broken one of the forum rules. Please read the following and make the necessary change. Thanks.

    I'm afraid your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  6. #6
    Registered User
    Join Date
    07-30-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: VBA Multiple Criteria Index Match

    Thanks. I will do that next time.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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