+ Reply to Thread
Results 1 to 8 of 8

Dynamic named range

  1. #1
    Registered User
    Join Date
    02-19-2010
    Location
    Dorset
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    29

    Dynamic named range

    Hi, I am new to this forum and have not used Excel for many years so have forgotten most of it. My problem is this, I am trying to create a drop down list box with expandable names. I want to put the list of names on a separate sheet and then 'point' to this from sheet one.

    I have looked all over the place for help but to be honest nothing has worked so far, this is more than likely down to me. The list must be expandable so that I can add more names to it. The Dynamic Named Range seems to be what I require but I do not really understand it and cannot get it to work. I can get a drop down list to work by putting the list of names on the same sheet and using the Data, Validation and sheet facility. The trouble with this is, apart from having the list of names on the main spreadsheet which I think is messy, if I want to expand the list I will have to re-validate it again. At least I think I will.

    I hope this isn't too garbled

    Thanks in anticipation

    Brian

  2. #2
    Registered User
    Join Date
    01-24-2009
    Location
    Leicester, England
    MS-Off Ver
    Excel 2003 &2007
    Posts
    27

    Re: Dynamic named range

    Welcome to the board.

    Try this idea adjusting locations to suit.

    On Sheet1 column A type a list of names.

    Cell D1 - Select Data Validation
    .
    Allow list.

    Source Select whole of column A or 'many' cells.

    Check that this works OK.

    Copy D1 and paste to position on required page. (Say A1)

    Select A1 open Data Validation and change source from =$A$1:$A$125 to=Sheet1!$A$1:$A$125

    or =$A:$A to =Sheet1!$A:$A

    This should now work.

    D1 on sheet1 can be left or removed to suit.

    Hope this helps

    EllBol

  3. #3
    Registered User
    Join Date
    02-19-2010
    Location
    Dorset
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    29

    Re: Dynamic named range

    OK, thanks for your answer. I will try that and see. Will let you know the outcome.

    Thanks again

    Brian

  4. #4
    Registered User
    Join Date
    02-19-2010
    Location
    Dorset
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    29

    Re: Dynamic named range

    Well I tried it. Sheet 1 works fine but after copying to sheet 2 and changing source to
    Sheet1!$A$1:$A$30. When I tried the drop down list all it comes up with Sheet1!$A$1:$A$30 and not the list of names on sheet 1.

    Any ideas?

    Cheers

    Brian

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Dynamic named range

    For general info. on creating Dynamic Named Ranges see the link in my sig. to Debra Dalgleish's tutorial (@ contextures).

  6. #6
    Registered User
    Join Date
    01-24-2009
    Location
    Leicester, England
    MS-Off Ver
    Excel 2003 &2007
    Posts
    27

    Re: Dynamic named range

    Just retried my suggestion and it works perfectly.

    I am using Excel 2007. Could it be the Mac version is slightly different?

    EllBol

  7. #7
    Registered User
    Join Date
    02-19-2010
    Location
    Dorset
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    29

    Re: Dynamic named range

    I am using Excel 2008 for Mac so it could be slightly different. I have a PC laptop as well with Windows XP on, will try it on that later on.

    Thanks again for everybody's help.

    Brian

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Dynamic named range

    Brian, as mentioned previously if you want a dynamic range that resizes the list to reflect the count of items see the prior link - it's the best tutorial around on the subject.

    In most basic terms - assume I add values to A1 onwards on Sheet2

    Please Login or Register  to view this content.

    or if you prefer non-volatile approach and assume entries in A are always text

    Please Login or Register  to view this content.

    Now on Sheet1 in cell B1 I want to use the above so I create a DV List with source set as: =_Names

    EDIT:

    FWIW, EllBol's earlier suggestion will not work if the DV cell is not on the same sheet as the list source - create a Name that reflects the range and use that.
    Last edited by DonkeyOte; 02-20-2010 at 04:32 AM.

+ 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