+ Reply to Thread
Results 1 to 6 of 6

Sorting two data sets on Cluster chart

  1. #1
    Forum Contributor
    Join Date
    08-10-2009
    Location
    nottingham
    MS-Off Ver
    Excel 2010
    Posts
    110

    Sorting two data sets on Cluster chart

    Hi,

    I've been unable to find anything on this so thought I'd ask to see if it's even possible before moving on.

    I'm trying to add a cluster chart to a worksheet which records 9 people in two different measures, with their final position in each. For example you may come 1st in one but 5th in the other. I need both series to be descending from 9 to 1 with your personal positions highlighted in each.

    I can get one column to descend by sorting the data table it's pulled from, but it puts the two results together which leaves the second results out of order. Can they both be done descending?

    Essentially i get the one on the left and what i need is on the right - is it possible?



    Thanks
    Attached Images Attached Images

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Sorting two data sets on Cluster chart

    I'd plot 4 series:
    - two with data from all other persons (sorted in each category) with empty value where "the person" shall show-up.
    - and two with data just for this person but located in an appropriate position
    so having name in C2 (I meade it selectable with data validation as a list) and collected data in A5:C13 only 2 formulas. In E5 and copy 1 right and 9 down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and in G5 (also copied right and down):
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    plotting (see attached file):
    stage1: all 4 series plotted
    stage2: two series formatted to be plotted on secondary axis
    stage3: deleting secondary axis, removing legend
    Final: just final touch - changing formatting to gray for both primary series, red for secondary.

    Of course if needed data labels can be added. To avoid shoving zeros custom formatting can be used. for instance: "0,0," (second comma is important here)
    Attached Files Attached Files
    Last edited by Kaper; 09-14-2015 at 07:30 AM. Reason: added comment on labels and custom formating "positive,negative,zero"
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    08-10-2009
    Location
    nottingham
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: Sorting two data sets on Cluster chart

    That is genius Kaper. Thank you so much!

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Sorting two data sets on Cluster chart

    Glad to hear that and thanks for makting thread solved and for reputation.

    Note, that in this sample, there is no ex-aequo results. If in reality you can face such situations look for more advanced ranking methods than just SMALL - for instance http://www.excelforum.com/excel-gene...cal-order.html etc.

  5. #5
    Registered User
    Join Date
    07-14-2015
    Location
    Herndon, VA USA
    MS-Off Ver
    Half Life 3
    Posts
    7

    Sorting two data sets on Cluster chart

    I only want to lock the cells that I enter data into. I have a protected worksheet and I do not want to unlock all cells. How do I modify the code to accomplish this?

    Thanks
    Mike

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Sorting two data sets on Cluster chart

    Hi Mike,

    Please take some time and read our http://www.excelforum.com/forum-rule...rum-rules.html
    This time focus on rule 2. But read them all, and few tips below the list too. It will pay...

+ 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. Cluster and Stack chart together
    By mangesh in forum Excel General
    Replies: 1
    Last Post: 05-23-2014, 04:41 AM
  2. Replies: 2
    Last Post: 05-21-2014, 09:32 AM
  3. VBA: sorting sets of data
    By Grocson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2013, 12:27 AM
  4. Plot 3 sets of data in scatter chart and area chart in one
    By geoffs52 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 12-24-2009, 04:42 AM
  5. Cluster Chart
    By luffield in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-15-2009, 06:41 AM
  6. sorting different sets of data
    By Armageddon85 in forum Excel General
    Replies: 4
    Last Post: 02-05-2008, 04:37 PM
  7. Creating Cluster Chart
    By mystic342005 in forum Excel General
    Replies: 0
    Last Post: 01-19-2008, 03:01 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