+ Reply to Thread
Results 1 to 5 of 5

Dynamic Chart where data and axis is based on formula

  1. #1
    Forum Contributor
    Join Date
    05-18-2004
    Location
    Portland, Oregon
    MS-Off Ver
    2016
    Posts
    182

    Dynamic Chart where data and axis is based on formula

    Hello All,

    I have been struggling to create a dynamic chart where the source for the axis and the data is derived from a reference.

    Attached is a simple example of the challenge I can't seem to overcome. It is borrowed from - http://peltiertech.com/Excel/Charts/...umnChart1.html

    Column A and B have named Dynamic ranges which I need to grow and shrink depending on if there is an actual value...they however have formula's which result in " " if the source is empty, yet the named range still grabs it, and my chart is then incorrect...maybe my named range is wrong??

    Thanks in advance for the help!
    Matt
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Dynamic Chart where data and axis is based on formula

    I would recommend having the formula return "", instead of " ", but... a cell with a formula that results in "" is still not the same as a blank cell.
    Having the Dynamic Range recognize this would required a more complex formula.

    I suggest using a pivot table, with blank entries in the Week # column filtered out.
    Then make a pivot chart based on the pivot table, and it will no longer show blank entries.
    Attached Files Attached Files
    Please click the * icon below if I have helped.

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Dynamic Chart where data and axis is based on formula

    Try this....

    In A2
    Please Login or Register  to view this content.
    and copy down.

    And changed the formula used for Named Ranges like this......

    For ChartLabels
    Please Login or Register  to view this content.

    And for ChartValues
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Forum Contributor
    Join Date
    05-18-2004
    Location
    Portland, Oregon
    MS-Off Ver
    2016
    Posts
    182

    Re: Dynamic Chart where data and axis is based on formula

    Hello Melvinrobb, thanks for your suggestion. The challenge is that I am actually using the lookups to reference a few different pivots...probably not the most efficient method, but the one I am comfortable with to create the chart look I need for my very picky boss:-)

    Hello sktneer, your adjustments of the offset formulas in the named ranges worked perfectly! Thanks!

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Dynamic Chart where data and axis is based on formula

    You're welcome. Glad I was able to help.

+ 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. [SOLVED] chart based on dynamic range which resizes as per data in range-formula / vba
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2014, 04:02 PM
  2. Cannot get line chart to auto format Y axis based on data.
    By Torinoman911 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-01-2013, 06:40 PM
  3. [SOLVED] Dynamic x-axis chart
    By NeoFlex in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 04-02-2013, 09:50 AM
  4. Legend Only Shows Used Axis on Dynamic Chart (X, Y and Y2 axis)
    By TEBrown in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 06-21-2012, 10:15 AM
  5. Excel 2007 : Dynamic Chart based on Grouped Data
    By Davidko19 in forum Excel General
    Replies: 3
    Last Post: 08-17-2010, 05:22 AM
  6. Creating chart w/ formula based dynamic axes
    By mmorri4 in forum Excel General
    Replies: 3
    Last Post: 05-25-2010, 11:37 AM
  7. chart with dynamic x axis
    By name in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-04-2006, 10:45 AM

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