+ Reply to Thread
Results 1 to 5 of 5

Dropdown with variable starting point

  1. #1
    Registered User
    Join Date
    09-14-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    82

    Dropdown with variable starting point

    Hi
    I want to be able to vary the starting point of a dropdown based on a change in cell B7 (see sheet attached). I am trying to create a formula in cell C7, which will form the base of a named Range. This formula keeps evaluating to an error.
    Attached Files Attached Files

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Dropdown with variable starting point

    Look here for some ideas...

    http://www.contextures.com/xlDataVal02.html

    What your post says and what you say inside your Excel file seem to give to ideas.

    What are you doing? Trying to change the B10 drop down or trying to get a formula in C7?

    If you change B7, what would you change it to and then what do you expect in C7 or B10?
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    09-14-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    82

    Re: Dropdown with variable starting point

    Hi Jeffrey,
    I'm familiar with contextures and have used it before for dynamic validation - it's an excellent resource. One limitation of it, however, is that the starting point is not dynamic. The end point is.

    The formula in C7 would form the base of a named range. Then in cell B10 under the Data Validation, I would type List under Allow and my Source would be the name of the range.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dropdown with variable starting point

    Use this dynamic starting formula as the source of your list instead of the fixed range:

    =INDEX(OFFSET($A$3, , MATCH(StartForecastPeriod,$3:$3, 0)-1, 1, COUNTA(OFFSET($A$3, , MATCH(StartForecastPeriod,$3:$3, 0)-1, 1, 1000))),1)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Dropdown with variable starting point

    Hi,

    Is this what you are looking for?

    Please Login or Register  to view this content.
    If you enter it in a cell you have to use CTRL/SHIFT/ENTER as an array.

    As a formula for a dynamic named range it should work for you.

    Hope this is helpful.

    Cheers

+ 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. Starting point
    By Phyxius in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2016, 03:58 PM
  2. VBA MAcro help - using a variable starting point
    By Sadievan in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-06-2015, 01:26 PM
  3. code for variable starting point
    By Sebastian1942 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-25-2013, 11:04 AM
  4. Replies: 0
    Last Post: 09-16-2013, 10:10 AM
  5. [SOLVED] Adding filter to all sheets with variable starting point
    By SeaniGeld in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2013, 04:20 AM
  6. Index/Match to find Starting Point of Average, Ending Point of Average Variable
    By tgentry in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-09-2012, 01:04 AM
  7. Replies: 2
    Last Post: 06-27-2011, 10:47 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