Results 1 to 3 of 3

Dynamic range list issue - replace Offset function

Threaded View

  1. #1
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Dynamic range list issue - replace Offset function

    Hi,

    I have dynamic ranges set for drop down lists with OFFSET function, and they interfere with my macro for creating new sheets (copied Sheet1). Problem is that code runs very slow. Probably because OFFSET is a violatile function, and every time I create new sheet this OFFSET is recalculating.

    I have read something about using INDEX and MATCH formula that works faster, but cannot set It right. I believe this way also works for numerical values only - and I have text values too.

    This is my formula for one of my lists:

    =OFFSET(Sheet1!$U$373;0;0;COUNTA(Sheet1!$U:$U)-1)
    And tried to change that to (not working):

    Sheet1!$U$373:INDEX(Sheet1!$U:$U,MATCH(9.99999999999999E+307,Sheet1!$U:$U))
    If I remove dynamic ranges, code works o.k.

    I want to keep dynamic range lists, so please show me how I could solve this problem !!

    See attached sample (hit the "RUN" button If you want to see how slow It is) !

    P.S. : I would rather have lists on separate sheet and have a Cmd button to show them, but my code for copying sheets slowed down again when I tried that. If you know how I could solve that too, please let me know ! Macro for copying is called Create_months.


    Thanks for all your help !!

    Regards, Luka
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel Offset Function Dynamic Range Question
    By d247 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-13-2014, 03:43 PM
  2. using offset function to create dynamic range based on a match search
    By freddiethomas in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-08-2013, 05:34 AM
  3. Replies: 2
    Last Post: 06-14-2012, 01:44 PM
  4. Replies: 4
    Last Post: 06-12-2012, 04:13 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