+ Reply to Thread
Results 1 to 3 of 3

Dynamic bar Chart - Largest to smallest - Excluding zeros and blanks

  1. #1
    Registered User
    Join Date
    03-19-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    48

    Dynamic bar Chart - Largest to smallest - Excluding zeros and blanks

    Hi all,

    I want to create a dynamic chart based on the values in column I.

    In Column A there are currently 12 Movies, there will be a drop box that will change the sets of movies, there could be between 8-30 movies in column A so it needs to be dynamic to pick up only movies listed.

    In the chart I would like to exclude any 0 and blank values, and if possible I would like to make sure the bars in the chart don't change size (width)

    Lastly I would like the bar chart to start with the highest value in Column I and show the following in descending order, omitting any 0's and blanks

    Hopefully this is all possible.

    Thanks for taking the time to look at my request
    Dean
    Attached Files Attached Files

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Dynamic bar Chart - Largest to smallest - Excluding zeros and blanks

    Hello,

    create individual and unique column labels in row 3. Then select A3 to M15 and insert an Excel Table (Insert > Table>

    With any cell in the table selected, insert a pivot chart. Drag Film into the Axis Category panel and Total Dollars into the values panel. Click the drop-down on the Value field entry, edit the value field settings and ensure that the aggregation is using "Sum" not "Count".

    Right-click a film title in the pivot table, select Filter > Value Filters and filter for values greater than 0.
    Right-click a number in the pivot table, select Sort and sort largest to smallest.

    Now you can add new data to the original data table or edit existing data. Refresh the pivot table to see the changes reflected in the chart.

    The only thing that is missing from your requirements is that the width of the columns will adjust, depending how many columns the chart is showing. The chart area will stay the same size, so column width is adjusted to accordingly.

    If you want the chart area to grow or shrink with more of fewer columns, then you will need to use VBA and it might get messy.

    see attached.

    Cheers, teylyn
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-19-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Dynamic bar Chart - Largest to smallest - Excluding zeros and blanks

    Thank you! This worked perfectly. :D

+ 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. Replies: 1
    Last Post: 04-16-2015, 06:29 PM
  2. Replies: 1
    Last Post: 02-03-2015, 06:16 AM
  3. Replies: 4
    Last Post: 06-11-2014, 07:56 AM
  4. Ranking going from smallest to largest Excluding Blank Cells
    By Smilies in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-22-2013, 03:12 AM
  5. [SOLVED] Average for non-consecutive cells excluding zeros (even when they all contain zeros)
    By pao13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2012, 04:32 PM
  6. sorting a dynamic range from smallest to largest and outputting in cells
    By mashoutposse in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-02-2010, 08:23 PM
  7. Blanks chart as zeros
    By CLR in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 04-10-2005, 09:06 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