+ Reply to Thread
Results 1 to 5 of 5

syntax for naming ranges and range update automatically

  1. #1
    Registered User
    Join Date
    05-20-2011
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    21

    syntax for naming ranges and range update automatically

    Hi everyone!

    Is there a way where a group of ranges can be named automatically and the ranges are updated every time new data is placed. I attached the file in case I was not able to explain myself clearly. Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,058

    Re: syntax for naming ranges and range update automatically

    Do this:

    Press Ctrl+F3

    This will open you Name Manager window

    Then click: NEW

    Write some name (like Acanthacea)

    and in refers to write: =OFFSET(Sheet1!$A$2, 0, 0, COUNTA(Sheet1!$A:$A)-1, 1)

    But also, delete all cells from A4 to A35 because they use some spaces or something so you getting wrong COUNTA for it.

    Check result (yelllow box is list from that name)...
    Attached Files Attached Files
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    05-20-2011
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: syntax for naming ranges and range update automatically

    Thanks.. But why is that the name of the range do not appear in the list? I actually want to use this for a dependent dropdown list. Again, I attached the file to fully explain what I want to do. Thanks..
    Attached Files Attached Files

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,058

    Re: syntax for naming ranges and range update automatically

    You did right with INDIRECT formula, but you need to name range with that name (No spaces).

    So under Asteraceae (F1)

    select range F2 to F17 and name it Asteraceae

    Then in B14 you will see drop down list with those names.

    If your ranges can change then you need to make OFFSET approach for EACH range as I showed you above.

  5. #5
    Registered User
    Join Date
    05-20-2011
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: syntax for naming ranges and range update automatically

    Hello again. Sorry for my ignorance . If you still have time to spare, could you please look at the attachment especially at the blue and yellow boxes to see if what is wrong.
    Attached Files Attached Files

+ 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