+ Reply to Thread
Results 1 to 8 of 8

Create simple x-y chart based on 2 columns of data

  1. #1
    Registered User
    Join Date
    02-17-2011
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2016
    Posts
    20

    Create simple x-y chart based on 2 columns of data

    This is so simple, I'm obviously missing something. I have a total of 2 columns of data. I want a column chart with one column of the data as the x-axis and the other column as the y-axis. Whenever I select my 2 columns of data, click on Insert->Column Chart->2-D, I end up with some sort of chart with both my columns of data compared on the x-axis and some arbitrary y-axis. How do I get one of the columns of data onto the other axis?

    Thanks for your help.

    Cheers,

    copperberry

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Create simple x-y chart based on 2 columns of data

    Hi copperberry,

    Using 2010 Excel
    Click on the chart and look at the top of the window and click on "Chart Tools"
    Just under that is a tab called Design. Click on it
    Now look under the Data Group and click on the Icon named "Switch Rows/Colum"

    I think this is what you want.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    02-17-2011
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2016
    Posts
    20

    Re: Create simple x-y chart based on 2 columns of data

    Thank you. I tried that, and it's not quite right. For some reason, the Chart is seeing one column of my data as a series, but it's not. It's just one axis of the chart. Y-axis = $, x-axis = year. I want each year's column to be the same color (except a few exceptions that I will call out. The different heights of the columns will demonstrate the trend. (I don't even need a trend line.)

    I almost got it by creating a pivot table and converting it to a pivot chart, but I still have this series issue. Am I missing something? Is the data for one axis now called a series?

    Thanks for your help!

    Cheers,

    copperberry

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Create simple x-y chart based on 2 columns of data

    Hi,
    I'm a little confused on what the question is, I guess. Perhaps a simple example with some words next to the graph/chart to explain what you want to get to? Click on "Go Advanced" below the message window and then on the Paper Clip Icon above message area. This will open a window for you to upload a sample.

  5. #5
    Registered User
    Join Date
    02-17-2011
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2016
    Posts
    20

    Re: Create simple x-y chart based on 2 columns of data

    Marvin, I appreciate your difficulty! As it turns out, I did figure it out. Here's what I did:

    - highlighted the two columns of data
    - inserted simple pivot table with the year as the row labels and the $ as the amount (no column)
    - converted it to a pivot chart
    - clicked on "switch row/column", as you suggested, and this time it made a bit more sense (even though one side is called "series" and the other is called "row") and got my bars lined up the way I wanted.
    - finally, I spent a long time with the layout and format buttons to get my labels to turn out right, and my columns to be the right color.

    I've attached the end result. I am surprised at how complicated this ended up being. I would have thought with two simple columns of data, I could click two or three times and the basic chart would have been there, complete with date labels along the x-axis and $ labels along the y-axis. Any steps you can suggest that make this simpler in the future would be most appreciated.

    Many thanks,

    copperberry
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-08-2012
    Location
    Saint Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Create simple x-y chart based on 2 columns of data

    It is real simple if you choose scatter as your chart type. If you choose a line graph, Excel thinks the data chosen are your series data and tries to plot both columns as lines on your graph. A scatter chart plots the two against each other (one as X and the other as Y), which enables you to determine if the two data series are correlated.

  7. #7
    Registered User
    Join Date
    02-17-2011
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2016
    Posts
    20

    Re: Create simple x-y chart based on 2 columns of data

    Bizmanualz, I tried your suggestion, and the scatter chart does not produce the results I am looking for. See my sample chart attached above. I want a chart that shows a collection of columns moving from left to right along the x-axis. Each column represents a year. The height of each column represents the amount of money for that year, which is scaled along the y-axis. There must be a very simple way to produce this chart, but I could only do it through a pivot table, which seems a cumbersome method.

  8. #8
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,850

    Re: Create simple x-y chart based on 2 columns of data

    Let me preface by saying I'm not familiar with the interfaces in the newer version of Excel. In my older version of Excel, one of the steps of the chart wizard (same dialog can also be accessed in the chart menu) is the data range/source data dialog. In this dialog, you can tell Excel that you want to use a specific column for the category/x axis labels rather than the default x-axis labels. It seems to me that the answer to your question should be as simple as finding that dialog and figuring out how to use it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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