+ Reply to Thread
Results 1 to 6 of 6

Named Range- 'refers to' defined in a cell instead of in the Name Manager

  1. #1
    Registered User
    Join Date
    04-21-2017
    Location
    Germany
    MS-Off Ver
    2000
    Posts
    2

    Named Range- 'refers to' defined in a cell instead of in the Name Manager

    Newbie first post.

    I have a spreadheet with 20+ named ranges. I update this spreadheet monthly so going in and changing every refers to' value in the Name Manager is a pain. I am wondering if it is it possible to define the 'refers to' value for the named range in a cell and then reference that cell instead of editing them each individually in the Name Manager. That way I could just adjust the contents of the cell every month and the Named Range would update based on that value.

    I have attached a simplified excel of what I mean. What I would like is to be able to update cell M24 highlighted in yellow and the named range period3_revenue is shown in the table to the side.

    Help would be appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Named Range- 'refers to' defined in a cell instead of in the Name Manager

    Write somewhere in your sheet (let's say in L21) needed range:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    then define name period1_revenue as:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and do the same for other names
    and now, as ranges change, you do not have to open name manager, just change ranges in L21 and so on.
    Moreover, if there are is simple way (not just cell bacground color, but content of some cells) to recognize where period 1 starts and ends you could construct string in L21 automatically.
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Named Range- 'refers to' defined in a cell instead of in the Name Manager

    You should put this in cell M24:

    Sheet1!$C$40:$C$43

    i.e. remove the apostrophes and equals sign. Then in Name Manager you can define the range period3_revenue using this formula:

    =INDIRECT(Sheet1!$M$24)

    You can test it out by putting this formula in, say, cell P1:

    =INDEX(period3_revenue,ROW())

    and copying this down a few rows - you will get #REF! beyond the first 4 rows, but then if you change M24 to this:

    Sheet1!$C$40:$C$47

    you will see a few more values appear instead of the errors.

    Hope this helps.

    Pete

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

    Re: Named Range- 'refers to' defined in a cell instead of in the Name Manager

    Hi,

    Yes this is possible. The process involves creating Dynamic Named Ranges (DNR). The formula consists of OFFSET and COUNT(a,if,ifs).

    The COUNT function uses criteria to identify the range. In your file you refer to "period revenue". What is the criteria you are using to identify these ranges?
    That criteria can be used to develop DNR's.

    Hope that makes sense.

    Cheers

  5. #5
    Registered User
    Join Date
    04-21-2017
    Location
    Germany
    MS-Off Ver
    2000
    Posts
    2

    Re: Named Range- 'refers to' defined in a cell instead of in the Name Manager

    Thank you so much for your replies.

    @pete_UK your solution worked perfectly !

    The other solutions also sound good but a little more complicated for a newbie!

    Thank you again

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Named Range- 'refers to' defined in a cell instead of in the Name Manager

    Glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. Range defined for a name in Name Manager is keep changing
    By maruthi_ravi in forum Excel General
    Replies: 6
    Last Post: 09-29-2013, 12:50 PM
  2. Replies: 12
    Last Post: 07-08-2011, 10:48 AM
  3. providing a pop-up on a cell that refers to a named rang
    By rny1ef in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-30-2011, 07:25 PM
  4. Replies: 9
    Last Post: 06-13-2010, 10:21 AM
  5. creating named range in workbook that refers to VBA range
    By twd000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-27-2008, 05:42 PM
  6. [SOLVED] Access a worksheet level named range with Refers To like "=5".
    By Jeremy Gollehon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2006, 06:10 PM
  7. Named Range Refers To
    By Tim in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2006, 11:00 PM
  8. [SOLVED] toggling which worksheet a named range refers to
    By Loftus in forum Excel General
    Replies: 0
    Last Post: 03-29-2005, 08:06 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