+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : List with dynamic source issue

  1. #1
    Registered User
    Join Date
    02-05-2012
    Location
    Hamilton, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    3

    List with dynamic source issue

    Ok, I've got 2 named ranges: ActivityCodes (a list of activities) and PlanCodes (built by the user from the ActivityCodes, so it is essentially a subset of ActivityCodes). Now, I've got a list item where I want the source to be the PlanCodes if anything has been selected, otherwise use the ActivityCodes as the source. I have it working somewhat using this formula in the source field in the data validation area for the list:
    =IF(COUNTA(PlanCodes)>0,PlanCodes,ActivityCodes).

    The problem is that when I pull down the list when PlanCodes is the source, the selected item is the BOTTOM of the list, so it looks blank unless I scroll UP to see the data. Does anyone know of a way to DE-select anything from the list so that when the list is pulled down you see the list from the top?
    Last edited by kentwistle; 02-06-2012 at 06:42 PM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: List with dynamic source issue

    Hi kentwistle,

    Welcome to the forum.

    Not sure but there may be some freezing issue or something, would suggest you to post the sample file. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    02-05-2012
    Location
    Hamilton, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: List with dynamic source issue

    Here's a sample that shows the problem...

    sample.xlsx

  4. #4
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: List with dynamic source issue

    Change the defined name formula to

    =Sheet1!$I$2:INDEX(Sheet1!$I:$I,COUNTA(Sheet1!$I:$I))
    Good luck.

  5. #5
    Registered User
    Join Date
    02-05-2012
    Location
    Hamilton, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: List with dynamic source issue

    Thanks so much! Using the INDEX function worked great.

  6. #6
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: List with dynamic source issue

    My pleasure. Please do not forget to mark the thread Solved.

+ Reply to Thread

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