+ Reply to Thread
Results 1 to 4 of 4

VBA to use evaluate with index match returns #VALUE! error

  1. #1
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    VBA to use evaluate with index match returns #VALUE! error

    Hi

    I am currently attempting to evaluate the following in VBA but get the #VALUE! error.

    Please Login or Register  to view this content.
    Is someone able to help me to see where I'm going wrong?

    Thanks

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: VBA to use evaluate with index match returns #VALUE! error

    Hi,

    Need one more closing bracket :

    ..........*(Summary!$N1:$N300000 = 0),0)")
    ..........*(Summary!$N1:$N300000 = 0),0))")

  3. #3
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: VBA to use evaluate with index match returns #VALUE! error

    Perfect! Thank you

    Any ideas how I can turn this into a variable?

    What I'm trying to achieve is to have this in each cell in col AI. The above array formula when entered directly is much too slow when copied down 300000 rows!

    Thanks

  4. #4
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: VBA to use evaluate with index match returns #VALUE! error

    You are welcome, thanks for the rep. points.

    Turn into a variable: do you mean turn into a function (as a replacement to Excel formula) ? It is called UDF (User Defined Function).
    But based on your very huge data (300.000 rows x 16 columns), it is unwised to do so, since an Excel Formula, and also an UDF, is auto recalc.
    Everytime you change something in affacted range, the 300.000 Formulas/UDFs will recalculate, this will make Excel not responsive.
    I suggest you use a normal sub instead, and call this sub manually when needed.

    You can upload a small subset of your workbook, so the layout can be analyzed, and some Experts here can help you to make the UDF.

+ 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+Match doesnt returns right values
    By SwissExcel in forum Excel General
    Replies: 10
    Last Post: 07-21-2015, 08:39 AM
  2. Sum of multiple Index Match returns!?
    By Spicey_888 in forum Excel General
    Replies: 6
    Last Post: 04-25-2015, 05:30 AM
  3. [SOLVED] Help evaluate problem with INDEX and MATCH formula
    By rizmomin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-03-2013, 05:10 PM
  4. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  5. Mulitple Criteria Index,Match or Evaluate issue
    By Journeyman3000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2013, 04:30 PM
  6. [SOLVED] MATCH/INDEX Formula Returns an Error Instead of 0
    By livifivil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-07-2013, 04:18 PM
  7. Excel 2007 : Index Match returns 0
    By Martin Chamberlin in forum Excel General
    Replies: 6
    Last Post: 10-27-2011, 09:49 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