+ Reply to Thread
Results 1 to 13 of 13

Named range using indirect and cells containing range strings

  1. #1
    Registered User
    Join Date
    01-22-2019
    Location
    ny
    MS-Off Ver
    2016
    Posts
    22

    Named range using indirect and cells containing range strings

    Lets say I have a named range , range1 which points to these non-contiguous cells
    Summary_Table!$E$11,Summary_Table!$Q$11:$Q$21

    Now I have similarly multiple ranges as such. Is there a way to define these named ranges, where I have the ranges in a column.
    So lets say A1 contains the string: Summary_Table!$E$11,Summary_Table!$Q$11:$Q$21.

    Is there a way to define a named range, range1 pointing to A1 using indirect or something else.

    Thanks

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Named range using indirect and cells containing range strings

    Confused. Please post a sample sheet so that we can see what you are doing with this named range.

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    01-22-2019
    Location
    ny
    MS-Off Ver
    2016
    Posts
    22

    Re: Named range using indirect and cells containing range strings

    I have attached a sample file. I want named range: range1 to point to the range mentioned in cell a1, range2 to point to range in cell a2 and so on
    Attached Files Attached Files
    Last edited by AliGW; 05-08-2019 at 02:08 PM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Named range using indirect and cells containing range strings

    Closed in favour of the new thread in commercial services.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Named range using indirect and cells containing range strings

    Reopened as the OP no longer wants to pursue this in commercial services.

  6. #6
    Registered User
    Join Date
    01-22-2019
    Location
    ny
    MS-Off Ver
    2016
    Posts
    22

    Re: Named range using indirect and cells containing range strings

    Hi Glenn,
    The thread is reopened here again. Would you be able to take look. Thanks

  7. #7
    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 using indirect and cells containing range strings

    Select cell A1, then click on the Name Box, which is to the left of the formula box, then you can enter the name (range1) and press Enter. There should be no spaces in the name - use an underscore instead.

    Then you can just enter:

    =range1

    in a cell somewhere, to reproduce what is in A1.

    Hope this helps.

    Pete

  8. #8
    Registered User
    Join Date
    01-22-2019
    Location
    ny
    MS-Off Ver
    2016
    Posts
    22

    Re: Named range using indirect and cells containing range strings

    Hi pete,
    This does not work. Once creating ranges as you have suggested, I dont get anything plotted in the charts. Also, if i do sum(range1), it gives 0.

  9. #9
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Named range using indirect and cells containing range strings

    You can do it with single ranges using INDIRECT, whether they are single cells or multiple cells, but I haven't gotten it to work with multiple non-contiguous ranges yet.
    If someone helped achieve your solution, consider clicking "* Add Reputation" on their post.

    If your question has been answered, mark the thread as [SOLVED] using the Thread Tools menu at the top of the thread.

  10. #10
    Registered User
    Join Date
    01-22-2019
    Location
    ny
    MS-Off Ver
    2016
    Posts
    22

    Re: Named range using indirect and cells containing range strings

    Quote Originally Posted by Melvosh View Post
    You can do it with single ranges using INDIRECT, whether they are single cells or multiple cells, but I haven't gotten it to work with multiple non-contiguous ranges yet.
    Thanks for answering. Yes, thats my issue, with noon-contiguous ranges. Looks like I have to do it manually

  11. #11
    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 using indirect and cells containing range strings

    Quote Originally Posted by vikas.trades25 View Post
    ... This does not work. ...
    In your first post you asked:

    ... Is there a way to define a named range, range1 pointing to A1 ...
    I gave you one way to do that. You did not say what you wanted to do with it, but I could have told you that:

    =SUM(INDIRECT(range1))

    would not work, as you need a contiguous range for that to work.

    Pete

  12. #12
    Registered User
    Join Date
    01-22-2019
    Location
    ny
    MS-Off Ver
    2016
    Posts
    22

    Re: Named range using indirect and cells containing range strings

    Quote Originally Posted by Pete_UK View Post
    In your first post you asked:



    I gave you one way to do that. You did not say what you wanted to do with it, but I could have told you that:

    =SUM(INDIRECT(range1))

    would not work, as you need a contiguous range for that to work.

    Pete
    Hi, sorry for any confusion.
    I dont want the sum. Was just showing that it sums up to 0. I actually wand to use this named range in plot. Looks like cant do that using a formula.

  13. #13
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Named range using indirect and cells containing range strings

    You can do the following. In cell A1 put Summary_Table!$E$11. In cell A2 put Summary_Table!$Q$11:$Q$21. Create a named range called range1 with the following:
    Please Login or Register  to view this content.
    Hopefully that will get you what you need.

+ 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. Indirect formula in Named Range
    By STUARTXL in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-06-2019, 01:51 PM
  2. Refer to named range without INDIRECT
    By esbencito in forum Excel General
    Replies: 3
    Last Post: 08-28-2018, 02:20 AM
  3. Find two strings in a range select cells in between and loop through range
    By maxwell13 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-27-2018, 04:04 AM
  4. Max(indirect(named range)) causes #REF
    By netgroover in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2016, 06:36 PM
  5. [SOLVED] Compare cells to named range and create new sheets using related named range
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-10-2015, 03:35 PM
  6. Vlookup with Indirect and Named Range
    By todd1016 in forum Excel General
    Replies: 3
    Last Post: 02-20-2011, 11:45 AM
  7. INDIRECT and named table range combo?
    By nms2130 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-11-2008, 01:27 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