Results 1 to 6 of 6

Named Range for chart data using ROW and INDIRECT

Threaded View

  1. #1
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Named Range for chart data using ROW and INDIRECT

    Hi All,

    I am in the process of creating a sheet that has a dynamic chart by using a named range for the data source.

    Formula: copy to clipboard
    data=Sheet1!$A$2:INDEX(Sheet1!$A$2:$A$20000,MATCH(9.99999E+307,Sheet1!$A$2:$A$20000,1))


    I can use the named range "data" in formulas and as the data source for a chart.

    I would like to generate a range of integers to use as axis labels. For this particular application, the labels should be integers, starting at 2. To this end, I created a named range like so;

    Formula: copy to clipboard
    xAxis_Labels=ROW(INDIRECT("2:"&COUNT(Data)))


    I can use the named range"xAxis_Labels" in formulas successfully, but when I try and use it to label a set of data, or as a data source in a chart, I get the error:

    A formula in this worksheet contains one or more invalid references......

    Any ideas?
    Attached Files Attached Files
    Last edited by sweep; 11-24-2017 at 07:15 AM.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 07-29-2015, 08:36 AM
  2. Indirect function with Named Range for use as a PT Data Source
    By andikeep2580 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-20-2015, 12:07 PM
  3. Replies: 9
    Last Post: 04-01-2015, 04:23 PM
  4. Replies: 2
    Last Post: 06-03-2013, 08:26 AM
  5. Using INDIRECT to put a Dynamic Named Range in a chart Data Source
    By mgaworecki in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-01-2012, 07:35 AM
  6. [SOLVED] INDIRECT will not post Text string to Data Validation for Named Range on another Workbook
    By carleaston in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-15-2012, 05:08 PM
  7. Can I use named range in data range box when creating pie chart?
    By BJackson in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-17-2005, 01:05 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