Closed Thread
Results 1 to 3 of 3

Should it be Index or Offset ?

  1. #1
    colwyn
    Guest

    Should it be Index or Offset ?

    =INDEX('2007'!A:N,K2,14)
    =OFFSET('2007'!A1,K2-1,13)

    Anyone know which of the above works fastest when applied down 50,000+ rows of several spreadsheets?
    Thanks.
    Colwyn.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Should it be Index or Offset ?

    The OFFSET function is "volatile"....meaning that it recalculates
    whenever any cell in the workbook calculates.

    The INDEX function is non-volatile and only recalcs when one of it's
    referenced values changes. Consequently, INDEX is faster.

    The list of volatile functions includes:
    RAND, NOW, TODAY, OFFSET, CELL, INDIRECT

    I hope that helps.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    colwyn
    Guest

    ron

    Thanks a lot for that Ron. That's very helpful.
    Colwyn.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Is there a way to clear all variables after a loop?
    By gshock in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-12-2008, 11:34 AM
  2. Using INDEX instead of OFFSET
    By JK1234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-30-2008, 11:07 AM
  3. reverse index match, offset problem
    By reggie1000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-12-2008, 12:18 PM
  4. OFFSET a RANDomly selected INDEX cell?
    By Clark in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2008, 05:30 PM
  5. MATCH, LOOKUP, OFFSET, INDEX,...or what??
    By HuskerBronco in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-06-2006, 09:40 PM

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