Results 1 to 32 of 32

How to Speed Up the File Processing i.e Formulas Vs VBA ?

Threaded View

e4excel How to Speed Up the File... 10-18-2011, 02:50 AM
mikerickson Re: How to Speed Up the File... 10-18-2011, 02:56 AM
e4excel Re: How to Speed Up the File... 10-18-2011, 05:04 AM
snb Re: How to Speed Up the File... 10-18-2011, 05:21 AM
arlu1201 Re: How to Speed Up the File... 10-18-2011, 05:14 AM
e4excel Re: How to Speed Up the File... 10-18-2011, 05:34 AM
arlu1201 Re: How to Speed Up the File... 10-18-2011, 05:44 AM
Whizbang Re: How to Speed Up the File... 10-18-2011, 10:06 AM
mikerickson Re: How to Speed Up the File... 10-18-2011, 11:06 AM
e4excel Re: How to Speed Up the File... 10-18-2011, 02:10 PM
Whizbang Re: How to Speed Up the File... 10-18-2011, 03:29 PM
e4excel Re: How to Speed Up the File... 10-20-2011, 03:35 AM
Whizbang Re: How to Speed Up the File... 10-20-2011, 07:14 AM
e4excel Re: How to Speed Up the File... 10-20-2011, 08:15 AM
royUK Re: How to Speed Up the File... 10-20-2011, 08:11 AM
Whizbang Re: How to Speed Up the File... 10-20-2011, 09:00 AM
e4excel Re: How to Speed Up the File... 10-21-2011, 01:04 AM
e4excel Re: How to Speed Up the File... 10-21-2011, 03:31 AM
Whizbang Re: How to Speed Up the File... 10-21-2011, 08:26 AM
e4excel Re: How to Speed Up the File... 10-21-2011, 08:45 AM
Whizbang Re: How to Speed Up the File... 10-21-2011, 09:09 AM
e4excel Re: How to Speed Up the File... 10-21-2011, 09:25 AM
Whizbang Re: How to Speed Up the File... 10-21-2011, 09:51 AM
mikerickson Re: How to Speed Up the File... 10-21-2011, 10:00 AM
e4excel Re: How to Speed Up the File... 10-21-2011, 02:05 PM
Whizbang Re: How to Speed Up the File... 10-21-2011, 02:18 PM
Whizbang Re: How to Speed Up the File... 10-21-2011, 02:56 PM
mikerickson Re: How to Speed Up the File... 10-21-2011, 04:12 PM
Whizbang Re: How to Speed Up the File... 10-21-2011, 04:18 PM
mikerickson Re: How to Speed Up the File... 10-21-2011, 08:28 PM
e4excel Re: How to Speed Up the File... 10-22-2011, 02:10 AM
mikerickson Re: How to Speed Up the File... 10-22-2011, 12:33 PM
  1. #26
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: How to Speed Up the File Processing i.e Formulas Vs VBA ?

    To do a dynamic range, i.e. allow for growth while keeping the smallest possible range, use this formula:

    =A1:Index(A:A,Counta(A:A))

    Since Index returns a reference, you can use it on either side of the colon, to signify the start or end of a range. The above formula will give you the entire contents of the A column (limited to used cells) without resorting to Offset or Indirect. Also, even though this uses the entire column, it is not the same as using the entire column in an array formula or Sumproduct formula. Counting an entire column is MUCH quicker than processing that same column in an array formula.

    Use the above dynamic range as a named formula so that your array/sumproduct formulas will look like this:

    =Sumproduct(--(Name="Test"), --(Amount > 5000))

    Rather than

    =Sumproduct(--(A1:Index(A:A,Counta(A:A)) = "Test"), --(B1:Index(B:B,Counta(A:A)) > 5000))


    Also, using named ranges will allow Excel to calculate the size of the range only once, rather than every for every cell that uses your sumproduct formula.

    See this article for using Index to make dynamic named ranged:
    http://www.excelhero.com/blog/2011/0...ing-index.html
    Last edited by Whizbang; 10-21-2011 at 02:29 PM.

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