+ Reply to Thread
Results 1 to 3 of 3

Thread: Formulas in chart series references

  1. #1
    Guackyxxx
    Guest

    Formulas in chart series references

    Does anyone know if it possible to have formulas embedded in the SERIES
    formula that defines a chart series. For example, what I'd like to have is

    =SERIES(Sheet1!$C$18,Sheet1!$D$16:$F$16,INDIRECT(D12),1)

    where D12 is a valid text range.

    This does not seem to work. Essentially, I am trying to set up the chart so
    I can toggle what is charted without needing to alter the chart references OR
    set up a separate set of cells that are charted and that in turn refer to the
    (changing) data set I want to chart.

    Any thoughts are welcome!

  2. #2
    Jon Peltier
    Guest

    Re: Formulas in chart series references

    You can't embed any formulas into the SERIES formula. What you can do is
    define a named range (sometimes called a named formula) in the
    worksheet, then refer to this named range in the series formula.

    For instance, you could set up a named range for your example like this:

    Go to Define Names dialog: Insert menu, Names item, Define (or use the
    Ctrl+F3 shortcut). Enter a name, like RangeY, and a formula in Refers
    To, like =INDIRECT(D12) or =INDIRECT($D$12).

    Now edit your series formula:

    =SERIES(Sheet1!$C$18,Sheet1!$D$16:$F$16,Sheet1!RangeY,1)

    There is a wealth of information on the internet about these dynamic
    charts. I have some examples and some links on my web site:

    http://peltiertech.com/Excel/Charts/Dynamics.html

    - Jon
    -------
    Jon Peltier, Microsoft Excel MVP
    Peltier Technical Services
    Tutorials and Custom Solutions
    http://PeltierTech.com/
    _______


    Guackyxxx wrote:

    > Does anyone know if it possible to have formulas embedded in the SERIES
    > formula that defines a chart series. For example, what I'd like to have is
    >
    > =SERIES(Sheet1!$C$18,Sheet1!$D$16:$F$16,INDIRECT(D12),1)
    >
    > where D12 is a valid text range.
    >
    > This does not seem to work. Essentially, I am trying to set up the chart so
    > I can toggle what is charted without needing to alter the chart references OR
    > set up a separate set of cells that are charted and that in turn refer to the
    > (changing) data set I want to chart.
    >
    > Any thoughts are welcome!


  3. #3
    Guackyxxx
    Guest

    Re: Formulas in chart series references

    Thanks, Jon, I knew you'd come through for me (as always!)

    "Jon Peltier" wrote:

    > You can't embed any formulas into the SERIES formula. What you can do is
    > define a named range (sometimes called a named formula) in the
    > worksheet, then refer to this named range in the series formula.
    >
    > For instance, you could set up a named range for your example like this:
    >
    > Go to Define Names dialog: Insert menu, Names item, Define (or use the
    > Ctrl+F3 shortcut). Enter a name, like RangeY, and a formula in Refers
    > To, like =INDIRECT(D12) or =INDIRECT($D$12).
    >
    > Now edit your series formula:
    >
    > =SERIES(Sheet1!$C$18,Sheet1!$D$16:$F$16,Sheet1!RangeY,1)
    >
    > There is a wealth of information on the internet about these dynamic
    > charts. I have some examples and some links on my web site:
    >
    > http://peltiertech.com/Excel/Charts/Dynamics.html
    >
    > - Jon
    > -------
    > Jon Peltier, Microsoft Excel MVP
    > Peltier Technical Services
    > Tutorials and Custom Solutions
    > http://PeltierTech.com/
    > _______
    >
    >
    > Guackyxxx wrote:
    >
    > > Does anyone know if it possible to have formulas embedded in the SERIES
    > > formula that defines a chart series. For example, what I'd like to have is
    > >
    > > =SERIES(Sheet1!$C$18,Sheet1!$D$16:$F$16,INDIRECT(D12),1)
    > >
    > > where D12 is a valid text range.
    > >
    > > This does not seem to work. Essentially, I am trying to set up the chart so
    > > I can toggle what is charted without needing to alter the chart references OR
    > > set up a separate set of cells that are charted and that in turn refer to the
    > > (changing) data set I want to chart.
    > >
    > > Any thoughts are welcome!

    >


+ 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.2.0