+ Reply to Thread
Results 1 to 10 of 10

Rearrange data to make pivot chart

  1. #1
    Registered User
    Join Date
    02-04-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Rearrange data to make pivot chart

    I am very new to Excel and have so far done a few basic pivot tables/charts. I am trying to rearrange my source data to make a column chart where credits are shown in green and debits in red.

    Original.PNG

    Here's my original data I get from a database. Please note there's 3 sets of values A, B, C.
    Set1 A, B, C refers to Credits Set2 A, B, C refers to debits Set3 A, B, C is the difference between Set1 A - Set2 A and so on..
    I need to make a chart like the one below, Set1 of A,B,Cs are the green columns, Set2 of A, B, Cs are the red columns. Set3 A, B, Cs is hte difference displayed on top.

    Chart.PNG

    How do I do this? This is what I have done so far:
    I hand edited and rearranged my original dataset to look like this: It was quite a bit of work to do this since I have a large amount of data.

    Rearranged data.PNG

    Then I could make a chart out of this. But what I would like to know is if there's a better way to achieve this. Thanks much!

    +------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
    | Year | Set1 A | Set1 B | Set1 C | Set2 A | Set2 B | Set2 C | Set3 A | Set3 B | Set3 C |
    +------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
    | 2010 | 58 | 33 | 111 | 0 | 0 | 300 | 58 | 33 | -189 |
    | 2011 | 56 | 33 | 112 | 0 | 0 | 300 | 56 | 33 | -188 |
    | 2012 | 56 | 33 | 112 | 0 | 0 | 300 | 56 | 33 | -188 |
    | 2013 | 56 | 33 | 112 | 0 | 0 | 300 | 56 | 33 | -188 |
    | 2014 | 56 | 30 | 102 | 0 | 0 | 300 | 56 | 30 | -198 |
    | 2015 | 134 | 0 | 0 | 190 | 0 | 60 | -56 | 0 | -60 |
    +------+--------+--------+--------+--------+--------+--------+--------+--------+--------+

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Rearrange data to make pivot chart

    I suggest you post a sample data set and people can probably help.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    02-04-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Rearrange data to make pivot chart

    Thanks for your reply. Sample dataset is in the original post towards the end. I believe it has some formatting issues.

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Rearrange data to make pivot chart

    ACTUAL dataset, not a picture.

  5. #5
    Registered User
    Join Date
    02-04-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Rearrange data to make pivot chart

    Test Dataset.xlsx

    Attached dataset in excel. Thanks for looking.

  6. #6
    Registered User
    Join Date
    02-04-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Rearrange data to make pivot chart

    Added Dataset to the post. Thanks for your help.

  7. #7
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Rearrange data to make pivot chart

    So I see the data, but what are you trying to accomplish with it specifically?

    Typically people post a before and a mocked up after.

  8. #8
    Registered User
    Join Date
    02-04-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Rearrange data to make pivot chart

    I am trying to make the chart outlined in Chart.png. I can not do it with the dataset in Test Dataset.xls file so I handedited data to insert the labels A, B, C. I was wondering if there's any other way to do it in Excel with a few clicks or a different technique.
    Before is the dataset I have. After is the chart I want to make. Question is how to rearrange this data to make this chart.
    Any help is appreciated. Thanks!

  9. #9
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Rearrange data to make pivot chart

    So you are trying to automate the process of processing the data, which is definitely possibly.

    You can start by playing with a tool called PowerQuery or DataExplorer. It is a free addin for Excel that allows you to "Unpivot" your data. I have used it a few times, but I have found it easier to just create some sort of VBA macro to automate the process. This requires a little bit more ramp up time, but it infinitely more adjustable.

  10. #10
    Registered User
    Join Date
    02-04-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Rearrange data to make pivot chart

    Thanks much I will try it out.

+ 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: 10-26-2013, 09:30 PM
  2. [SOLVED] Rearrange data from horizontal to vertical to use it in a pivot
    By andreiutxa in forum Excel General
    Replies: 1
    Last Post: 07-07-2012, 12:55 AM
  3. Replies: 1
    Last Post: 04-10-2011, 09:51 PM
  4. Rearrange data columns in Pivot Table
    By hedrew3 in forum Excel General
    Replies: 6
    Last Post: 01-24-2011, 05:41 AM
  5. Pivot: Rearrange data
    By jomili in forum Excel General
    Replies: 2
    Last Post: 10-11-2010, 02:31 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