+ Reply to Thread
Results 1 to 8 of 8

Column Chart to use dual horizontal range

  1. #1
    Registered User
    Join Date
    02-22-2014
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    20

    Column Chart to use dual horizontal range

    Untitled.jpg

    Hello,
    I have a clustered column chart (see image) where I have 2 series.
    It only allows a single axis.

    I'd like to have the range from both column B and E since you can see if i just use one, I miss some labels.

    I tried to add a secondary axis but couldn't get the formatting of the plot to look normal (i.e. as it does when using 1 axis, with the columns neatly aligned).
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Column Chart to use dual horizontal range

    Not sure what the chart is trying to show because you are literally comparing apples with oranges.

    First you will need to alter the named ranged formula so the data and label ranges are the same length for each series. I added MAX of the ranges being used to determine length.
    In order to get the chart to use 2 sets of category labels you will need to move 1 of the series to the secondary axis.
    Now to avoid overlapping columns you will need to add 2 dummy series. 1 to each vertical axis.

    You now have a design choice on how to display the labels.
    If you want to use the axis then you can enable the secondary horizontal axis. Draw back of axis approach is the name will be centered below the columns, which is why I colour coded the text to make it easier to associate with value.

    I think it's better to use data labels, showing category name, to name the columns.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    02-22-2014
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    20

    Re: Column Chart to use dual horizontal range

    Hi Andy,
    What i want is to plot the data as if the data set were:
    topicListCumulative topicCOUNT1 topicCOUNT2
    apple 4 0
    pear 2 1
    kiwi 0 1
    mango 0 2

    This way, like any sensible chart should be, the 2 series have columns in the same label, not mismatched.
    Maybe the best way to do this isn't through the chart itself, but to have another column that does create a cumulative list of topics and match to the count from the original columns.
    I have not found a way for this to work dynamically.

    Thanks

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Column Chart to use dual horizontal range

    You can use a pivot table/chart.
    Add a couple of fields to you source data table to determine whether a fruit is within first or second date ranges.

    For the example I manually entered 1 or 0. you can add formula
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-22-2014
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    20

    Re: Column Chart to use dual horizontal range

    Hello,
    I could not get this to work since my data MUST be formulated in this automated way.
    I've not been able to find a way to have the table update automatically with my dynamic ranges on SETUP.chartTopics sheet (which is dynamically changed based on entries on database page).
    Maybe if there was a way to auto update a table this could work.
    I also have the restriction of not using macros since I will need this to be placed in a shared site where online excel has no macro capability.

    Thanks

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Column Chart to use dual horizontal range

    Expanding on Andy's pivot table proposal:
    I moved the start and end dates to the data sheet [optional]
    The Date1 and Date2 columns are populated using: =IF(AND($A2>=J$2,A2<=J$3),1,0) and =IF(AND($A2>=M$2,B2<=M$3),1,0)
    According to myOnlineTraininghub: "Refreshing PivotTables in Excel Online requires a right-click of the PivotTable > Refresh:"
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    02-22-2014
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    20

    Re: Column Chart to use dual horizontal range

    Hello
    I created a 0,1 column as suggested and hid the columns.
    With this, i was able to create my pivot table and chart.
    Right click refresh works (but doesn't make it less annoying).
    Thanks for help.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Column Chart to use dual horizontal range

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. Dual Category titles in Horizontal Axis
    By glamonta in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-22-2016, 06:02 AM
  2. Dual stacked column chart help
    By darrenj1471 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 06-19-2015, 02:46 PM
  3. Dynamic Chart Range for Horizontal values
    By phill_howz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-03-2014, 11:47 AM
  4. Dual Axis Clustered Column Chart Excel 2007??
    By fcb1900 in forum Excel General
    Replies: 0
    Last Post: 06-22-2010, 09:49 AM
  5. how to set up a chart with vertical and horizontal column heading
    By claireann100 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-26-2006, 04:50 AM
  6. How do I create a dual axes column chart in Excel
    By Alok in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-17-2005, 02:06 PM

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