+ Reply to Thread
Results 1 to 1 of 1

speed up sum if array formula with VBA??

  1. #1
    Forum Contributor
    Join Date
    08-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    163

    speed up sum if array formula with VBA??

    I have a workbook that is a general summary sheet. I have automated it by using array formulas but this slowed down the spreadsheet alot.
    I was hoping there is a way to speed this up with VBA.
    the way the sheet works is i have written macros that bring in all the data from other workbooks, these would be the sub-summary sheets. and i place it off to the side in my worksheet.
    the data from the subsummary sheets brings the following columns.
    page #, Split #, Item #, Quantity, and Info
    the Item #'s repeat many times

    the General summary sheet combines any item # that are the same and adds the quantities together. I then have vba place this to the left of the data i brought in first. this gives me a list of item numbers to go in the general summary. now then columns that make up the general summary sheet are labeled by page numbers. my array formula is summing the quantities for a certain item # for that page.

    this is the forumla that im using [array].
    =CEILING(SUM(IF(($BX:$BX=$AQ24)*($BV:$BV=AV$23)*($BZ:$BZ=$AS24),$BY:$BY,"")),1)

    My workbook has alot going on so i made (and attached) a sample one to make it easier to understand.
    below is the folmula I use in the sample workbook i attached (same as above but with different references)
    =CEILING(SUM(IF(($AE:$AE=$A25)*($AC:$AC=F$23)*($AG:$AG=$C25),$AF:$AF,"")),1)
    this formula is in cell F25


    is it possible to speed this up with VBA somehow or any suggestions? i know changing the ranges to not use the whole column would speed it up but the number of items can change from project to project.

    thanks
    JD
    Attached Files Attached Files
    Last edited by jed38; 07-30-2013 at 01:55 PM.

+ 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. How to speed up this macro? How to use an array?
    By djvino in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-15-2012, 07:39 AM
  2. Speed up max if array
    By reddwarf in forum Excel General
    Replies: 9
    Last Post: 03-02-2011, 08:20 AM
  3. Convert Array formula to VBA to speed up worksheet
    By MarathonMan in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-11-2007, 06:17 PM
  4. Using an Array instead of a Vlookup to improve speed
    By Frank & Pam Hayes in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2005, 03:05 PM
  5. Will an Array speed this up?
    By Mase in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2005, 06:53 AM

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