+ Reply to Thread
Results 1 to 4 of 4

How bad is having lots of volatile functions index() in a big spreadsheet?

  1. #1
    Registered User
    Join Date
    12-18-2011
    Location
    london, england
    MS-Off Ver
    Excel 2003, 2007
    Posts
    75

    How bad is having lots of volatile functions index() in a big spreadsheet?

    What's so bad about have a lot of volatile functions, provided you don't change them?

    Hypothetically speaking, suppose if I were to have a worksheet with over 10,000 cells with index(indirect(range1),match(date,indirect(range2),0)). Ranges 1 and 2 are determined by the number of date entries. They are unlikely to change, only when new date entries are added because new increased row numbers.

    Ie.
    A1 = Jan 1, 2014 B1 = food
    ...
    A20 = Feb 4, 2014 B20 = chocolate

    A reference cell at C1 = row(max(A:A)) = 20 (to find max row number)

    In a separate worksheet, I want to reference items from column B, based on date entry in column A.
    I retrieve the data in the operation below:

    =index(indirect("Sheet1!$B$1:"&'Sheet1'!$C$1",match(date here,indirect("Sheet1!A1:"&'Sheet!A'$C$1),0))
    (by the way, am I writing this correctly?)

    Far into a month ahead or something, suppose I add new date entry in column A, making C1 = 21 now.

    Now, suppose I multiply this type of operation across over 10,000 cells. What's wrong with this? What problems can I face?

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: How bad is having lots of volatile functions index() in a big spreadsheet?

    Volatile functions slow down Excel due to long processing times every time Excel re-calculates. See here

    http://www.decisionmodels.com/calcsecretsi.htm
    http://chandoo.org/wp/2014/03/03/han...-are-dynamite/

    In your example you'd be better off using the INDEX() function rather than INDIRECT()
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: How bad is having lots of volatile functions index() in a big spreadsheet?

    attach sample work book with desired results
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: How bad is having lots of volatile functions index() in a big spreadsheet?

    What's so bad about have a lot of volatile functions, provided you don't change them?
    Thats the problem, even if you dont change them, volatile formulas recalc with every worksheet change. So even if you change nothing that the formula in A1 references - or is even remotely linked to - it will still recalc every time to enter (or even edit) anything in the workbook
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Index, Match, Iferror and lots of problems
    By Sherp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-10-2014, 12:00 AM
  2. Volatile Functions needed for Roulette
    By Nickmsi in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-06-2013, 07:57 PM
  3. Volatile formula with index/match dynamic range
    By asgersax in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-16-2013, 05:37 PM
  4. Volatile functions across books
    By jcarlosd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-30-2008, 05:46 AM
  5. Restricting the Automatic Recalculation of Volatile Functions
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-29-2005, 11:06 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