+ Reply to Thread
Results 1 to 2 of 2

Array - Copy Formula, Paste as Array

  1. #1
    Registered User
    Join Date
    02-23-2010
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    14

    Array - Copy Formula, Paste as Array

    Hi All,

    I have around 5,000 cells that I want to change from a formula to an array... is there any way I can do this using VBA?

    For example, the formula in cell C13 says "=INDEX(Q2DFExtracts!AP$3:AP$67,MATCH(1,($A$1=Q2DFExtracts!$AJ$3:$AJ$68)*($D$13=Q2DFExtracts!$E$3:$E$68),0))" but it really needs to say "{=INDEX(Q2DFExtracts!AP$3:AP$67,MATCH(1,($A$1=Q2DFExtracts!$AJ$3:$AJ$68)*($D$13=Q2DFExtracts!$E$3:$E$68),0))}" (Array Formula).

    The formula in cell C14 says something different from C13: "=INDEX(Q2DFExtracts!AQ$3:AQ$67,MATCH(1,($A$1=Q2DFExtracts!$AJ$3:$AJ$68)*($D$13=Q2DFExtracts!$E$3:$E$68),0))", but it needs to be an array as well.

    I've been typing "Clt+Shift+Enter" for a few rows, but there are sooo many more cells.. is there any way I can simplify this process using VBA? For example, can I select range C13:AC17, and then use a macro to convert that area into individual array formulas?

    Any tips would be greatly appreciated. Thank you!!

  2. #2
    Forum Contributor
    Join Date
    08-02-2007
    Location
    Panama & Austria
    MS-Off Ver
    2003 & 2010
    Posts
    186

    Re: Array - Copy Formula, Paste as Array

    It looks like the only difference is that every next row uses a next column.
    If that is the case, copy and paste the formula horizontally and then Copy->trasnpose it Vertically.
    it should do the trick.

+ 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