+ Reply to Thread
Results 1 to 5 of 5

How can I refer to a name range written in a cell?

  1. #1
    Forum Contributor
    Join Date
    09-30-2009
    Location
    Barcelona
    MS-Off Ver
    Excel 2010
    Posts
    274

    How can I refer to a name range written in a cell?

    Hello there,

    so this is what I am trying to do
    I have this huge data set by columns Q.1, Q.2, etc.
    I defined the name ranges so that all data from one column can be refered by its header

    so now I am creating some graphs using name ranges, and I would like to change the name range refered in all cells of the graph easily, for example changing one cell where the range name is written.

    to create the data for the graph I am using the COUNTIF funcion, and I have to enter the range as the first agrument -- however if select the cell where the name range is written it does not take it as such and just counts the appreances on that very same cell. I also tried to put that text in the formula using CONCATENATE (and concatenating with nothing else), but it does not work either.

    Is there any workaround for what I am trying to do?

    thanks in advance


    Bernat

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    21,528

    Re: How can I refer to a name range written in a cell?

    Sounds like you're thinking along the lines of INDIRECT

    =COUNTIF(INDIRECT(A1),1)

    would count instances of 1 in the range specified in cell A1

    (you may encounter issues if the named range is itself dynamic by means of Formulae in RefersTo)

  3. #3
    Forum Contributor
    Join Date
    09-30-2009
    Location
    Barcelona
    MS-Off Ver
    Excel 2010
    Posts
    274

    Re: How can I refer to a name range written in a cell?

    WOW!

    thanks!

    never heard of that function but is now a must-use

    thanks thanks thanks

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    21,528

    Re: How can I refer to a name range written in a cell?

    INDIRECT is useful yes it is also volatile however - used in moderation it's fine but beware of over using it. For more info on Volatility see the link to Charles Williams' site in my sig.

  5. #5
    Forum Contributor
    Join Date
    09-30-2009
    Location
    Barcelona
    MS-Off Ver
    Excel 2010
    Posts
    274

    Re: How can I refer to a name range written in a cell?

    hmmmm...

    over-use will slow down the sheet?

    file size I guess won't grow so much


    hmmm....

    I really wonder if there is any easy way to avoid that...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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