+ Reply to Thread
Results 1 to 3 of 3

array formula in vba debugging error

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2021
    Posts
    974

    array formula in vba debugging error

    Was hoping someone could assist me with making this formula work in vba:
    =IFERROR(IF(I13="x","",TRIM(INDEX(Dep!$J$3:Dep!$J$100000,SMALL(IF(COUNTIF($E$4,Dep!$A$3:Dep!$A$100000)*COUNTIF($E$6,Dep!$B$3:Dep!$B$100000),ROW(Dep!$A$3:Dep!$H$100000)-MIN(ROW(Dep!$A$3:Dep!$J$100000))+1),ROW(Dep!A1)),COLUMN(Dep!A1)))),"")
    It worked prior to adding the if statement, but I need the if statement to be part of the array if at all possible. Appreciate any assistance.
    Last edited by lilsnoop; 05-31-2021 at 01:40 AM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: array formula in vba debugging error

    Maybe try

    dim a 
    
    a = evaluate("=IFERROR(IF(I13=""x"","""",TRIM(INDEX(Dep!$J$3:Dep!$J$100000,SMALL(IF(COUNTIF($E$4,Dep!$A$3:Dep!$A$100000)*COUNTIF($E$6,Dep!$B$3:Dep!$B$100000),ROW(Dep!$A$3:Dep!$H$100000)-MIN(ROW(Dep!$A$3:Dep!$J$100000))+1),ROW(Dep!A1)),COLUMN(Dep!A1)))),"""")")

  3. #3
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2021
    Posts
    974

    Re: array formula in vba debugging error

    Thanks Bo_Ry! I believe that did the trick for me! Really appreciate your help!!

+ 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] Array does not pass Macro Debugging
    By FWM in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2015, 09:57 PM
  2. [SOLVED] Debugging Error 380
    By forrestgump1980 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-19-2015, 10:56 AM
  3. Debugging Array Error
    By jo15765 in forum Excel General
    Replies: 4
    Last Post: 12-10-2011, 03:18 AM
  4. Debugging Code Error
    By gurpreet161 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-27-2011, 01:30 AM
  5. ODBC error and debugging
    By aharreluark in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-03-2010, 10:36 AM
  6. dif Ubound for member array when debugging
    By Eric in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-28-2005, 04:05 PM
  7. Startup Error debugging help
    By Ron Rosenfeld in forum Excel General
    Replies: 2
    Last Post: 02-03-2005, 05:06 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