Fix this chart [excel homework #1]

Share

Facebook
Twitter
LinkedIn

We have received a chart for chart busters that required some fixing. I thought, this will be a fun exercise for you. So here it goes,

…column chart that shows daily, weekly or monthly data depending on the user’s choice. In daily the columns are displayed properly, but in weekly & monthly mode the columns are a fraction of the width they should be – why, and how can this be avoided? Bonus points if you can describe how to use an INDIRECT formula on the x-axis labels which is another problem I ran into whilst creating this mockup!

You can download the workbook from here.

Here is how it is looking:

Fix this chart - Chartbusters - Dynamic chart bug

Thanks Gordon for asking this question.

Featured Answers:

There were several people who answered this correctly. I am featuring two answers for this problem.

By Jeff Weir:

One way to fix this is to select the ‘axis options/axis type/text axis’ option in the axis dialogue box (it’s current setting is “Automatically select based on data”.

Then it would be good if you set the ‘interval between tick marks as one, as well as the ‘interval between labels’ as 1 also.

Unfortunately then you run into the problem that your dates are now too wide for the space allowed for them on the graph. Easiest way to do that is to firstly make the graph a little wider, and secondly have an intermediate formula that formats your dates so they have a character return between the month and year, like this:

1 Jan

2009

instead of this:

1 Jan 2009

You can accomplish that with a formula along the lines of this:

=DAY(B6)&CHOOSE(MONTH(B6),” Jan”, ” Feb”, ” Mar”, ” Apr”, ” May”, ” Jun”, ” Jul”, ” Aug”, ” Sep”,” Oct”,” Nov”,” Dec”)&CHAR(10)&YEAR(B6)

Also, the y axis could do with a custom number format. No point of displaying all those zeros if say $250k or 250k (assuming not a currency) will do.

You can see it here

By Gerald Higgins

Well, here goes with the simple solution (in 2003).

Right click the chart, and select Chart Options.

On the AXES tab, there are 3 options under “Category (X) axis”.

I think the option for Time scale was originally selected.

The option for “Automatic” also does not work.

But the option for “Category” does work.

All the commenters with an answer will receive their discount codes by this weekend. Enjoy.

Lear more about making better charts using these chart busters examples:

  1. Asset Allocation Charts – Done the right way
  2. Calorie chart – How much you should exercise for what you eat – fixed properly

Learn how to make dynamic charts:

  1. Excel dynamic charts using data filters
  2. Dynamic charts using INDEX() formula and Camera tool
  3. Using scroll bar form control to make dynamic charts
Facebook
Twitter
LinkedIn

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Overall I learned a lot and I thought you did a great job of explaining how to do things. This will definitely elevate my reporting in the future.
Rebekah S
Reporting Analyst
Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

2 Responses to “Weighted Sorting in Excel ”

  1. Oleg says:

    Just add a column calculating the "performance" or whatever is your criteria and sort by it? No?
    have no patience to waste 13min. Save your time too.

  2. Andrew says:

    Just thought I would mention, the "weird" custom sort behavior mentioned at 5:45 where "% return" doesn't appear to be sorting is because the "August Purchases" field has the sort preference and since these are such unique values, no additional sorting is possible on the "% return" field. If there were two entries that had the same "Customer Since" year AND the same "August Purchases" amount, THEN you would see a sorting of the "% return" on these two entries.

Leave a Reply