+ Reply to Thread
Results 1 to 7 of 7

Index/Match with mulitple arrays

  1. #1
    Registered User
    Join Date
    04-14-2013
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2010
    Posts
    34

    Index/Match with mulitple arrays

    Hi Everyone,

    I am ready to pull my hair out. I have worked on this for hours as I am very new to the VBA world.

    I have two issues that I am trying to solve, but will stick with just this one for now.

    I am working an Index/Match and they both have two formulaarrays. I am working in one workbook and need to match cells from another workbook pulling from two worksheets in that work book and return those values from the two worksheets into the current workbook.
    I cannot get them to work. Here is what I have put together so far:


    rng.FormulaArray = "=(Index([889D_FNS.XLS]'Payables608'!$D$2:$D$300&'UndeliveredOrders608'!D$2:D$300,Match(B4:B300,[889D_FNS.XLS]'Payables608'!D$2:D$300.ADDRESS(FALSE,FALSE)&'UndeliveredOrders608'!D$2:D$300.ADDRESS(FALSE,FALSE,0))"

    Anything you can do to help me would be greatly appreciated.

    Thank you,
    Jeannie

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Index/Match with mulitple arrays

    Seems to be the error part

    rng.FormulaArray = "=(Index([889D_FNS.XLS]'Payables608'!$D$2:$D$300&'UndeliveredOrders608'!D$2:D$300,Match(B4:B300,[889D_FNS.XLS]'Payables608'!D$2:D$300.ADDRESS(FALSE,FALSE)&'UndeliveredOrders608'!D$2:D$300.ADDRESS(FALSE,FALSE,0))"


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    04-14-2013
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Index/Match with mulitple arrays

    Thank you for replying, but it is now giving me the error message 91, "Object variable or with block variable not set?

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Index/Match with mulitple arrays

    Please post the formula you tried

  5. #5
    Registered User
    Join Date
    04-14-2013
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Index/Match with mulitple arrays

    rng.FormulaArray = "=(Index([889D_FNS.XLS]'Payables608'!$D$2:$D$300&'UndeliveredOrders608'!$D$2$300,Match(B4:b300,[889D_FNS.XLS]'Payables608'!D$2:D$300&'UndeliveredOrders608'!D$2:D$300,0))"

    I took out the .Address(FALSE,FALSE).

  6. #6
    Registered User
    Join Date
    04-14-2013
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Index/Match with mulitple arrays

    Could my DIM be in the wrong place:

    Sub OpenObligations()

    Dim rng As Range

    '
    ' OpenObligations Macro
    '
    ' Keyboard Shortcut: Ctrl+r
    '

    Worksheets("1358").Range("A1:AA600").Clear
    Worksheets("2237").Range("A1:AA600").Clear

  7. #7
    Registered User
    Join Date
    04-14-2013
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Index/Match with mulitple arrays

    I see there have been several who have read my post and I have not seen any responses so I figured maybe I should try another change to my macro. I also thought maybe it has something to do with the cells I was trying to read had a formula already in it so I created another column without the formula.

    I have changed to the following and now get the error message, "Unable to set the FormulaArray property of the range class," Error 1004:

    ActiveCell.FormulaArray = "=(Index([889D_FNS.XLSx]'Payables608'!$e$2:$e$300&'UndeliveredOrders608'!$e$2$e$300,Match(B4:B300,[889D_FNS.XLSx]'Payables608'!e$2:e$300&'UndeliveredOrders608'!e$2:e$300,0)))"

+ 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