+ Reply to Thread
Results 1 to 13 of 13

Creating a flexible Chart for Dashboard - Chart knows when there is nothing in X axis

Hybrid View

  1. #1
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Creating a flexible Chart for Dashboard - Chart knows when there is nothing in X axis

    Happy New Year, hope you had a good break.

    The formula you posted is designed to be in the Refers to box in a range name. It is saying, the range name refers to a range, starting at $B$2 for the number of values in the column. The COUNTA of Column B tells you the number of non-blank cells. The -1 is because you want to stop at the last cell, and because the data has a heading in B1.

    Note: This assumes that there are no blanks in the column.

    Is this any help?

    It is not clear in your original post, but I assume that when the metrics vary between 3 and 7, the cells are consecutive.

    Let me propose an example.

    Your chart data for your dashboard is in $A$1:$A$7. Give this range a Range Name (using Name Manager), say Info and in the Refers To box, enter =OFFSET($A$1,0,0,COUNTA($A1:$A7)). Note: This is a variation on the formula you posted. I have assumed there is no heading, so there is no need for the -1, and instead of referring to the entire row, I have only referred to the 7 rows where the metrics will be.

    In your chart, instead of referring to $A$1:$A$7, refer to [B]Info[B].

    I hope this helps!

    Regards,

    David


    Please remember, your request is clearer if you attach a sample workbook.
    - Click on Go Advanced and click on the Paper Clip.
    When you reply please make it clear WHO you are responding to by mentioning their name.
    If this has been of assistance, please advise. A little thanks goes a long way.
    - Please click on the *Add Reputation button at the bottom of helpful responses.
    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".

  2. #2
    Registered User
    Join Date
    12-19-2013
    Location
    Kansas City
    MS-Off Ver
    Office 2010
    Posts
    42

    Re: Creating a flexible Chart for Dashboard - Chart knows when there is nothing in X axis

    {EDIT} Double post on accident. Deleted.

+ 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] Dashboard help needed. Need chart axis to change based on date ranges.
    By mcranda in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-18-2013, 10:30 AM
  2. Creating a Bar Chart with a Broken X-Axis
    By lzacheung in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 06-27-2011, 05:12 AM
  3. Excel 2007 : Creating a secondary axis for a chart
    By lewis.mulhollen in forum Excel General
    Replies: 1
    Last Post: 09-16-2010, 09:53 AM
  4. Creating a chart with two seperate Y-axis
    By Kara in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-02-2008, 04:50 AM
  5. Creating Pivot Chart with 2 Y axis
    By silks in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-17-2005, 08:32 AM

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