+ Reply to Thread
Results 1 to 2 of 2

VBA Macro: Plugging an Array-Formula into a Cell and Dragging Formula Down Columns

  1. #1
    Registered User
    Join Date
    04-27-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    33

    VBA Macro: Plugging an Array-Formula into a Cell and Dragging Formula Down Columns

    When using an array-formula, the user (via Windows) must press Shift+Ctrl+Enter for Excel to calculate.

    How do you do this using VBA? In addition, how do you force Excel to calculate the formula if you were to drag the original cell downward?

    =Index(Range,Match(Cell1&Cell2,Range2&Range3,0))

  2. #2
    Registered User
    Join Date
    04-27-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: VBA Macro: Plugging an Array-Formula into a Cell and Dragging Formula Down Columns

    The solution turned out to be something rather simple.

    Range("Cell3").FormulaArray = "Index(Range,Match(Cell1&Cell2,Range2&Range3,0)) "

    Watching carefully, I noticed that Excel was systematically processing each cell had the array-formula in it. Now that was tricky part, which led me to the solution, forcing me to realize that all data needs to be in place for it to calculate properly.

+ 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