Setting Values for x and y axis

mathwiz91

New Member
Joined
Nov 16, 2005
Messages
2
Well, the problem I am having has exhausted all knowledge of mine. Help! I have 2 columns of data, and I wish to make a chart/graph relating the two columns together. The type I want to make is a single-line graph. The problem is, when I go to create the graph the x-axis constantly reverts to a constant 1, 2, 3, 4, 5, 6, with each row of data represented as two lines in the y-axis. I would like to set the 2nd column as the values for the x-axis and the 1st column for the values of the y-axis in a one line graph. Please help as soon as possible! This assignment is due thursday!
 

Some videos you may like

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Fat Cat

Active Member
Joined
Nov 5, 2004
Messages
336
Using your mouse, select the 2 columns of data and then create an XY scatter plot.

This will make a graph with the first column set as the x-axis values and the 2nd column as the Y-axis values. Don't worry about the oreder at this stage, just complete making the graph.

Once you have your graph, click on it once to select it and then use the CHART - SOURCE DATA pull down menu. You can now redfine which range is to be the X-Values and which is to be the Y-Values by clicking on the little icons at the right hand end of each range box.
 

mathwiz91

New Member
Joined
Nov 16, 2005
Messages
2
Thank You

Thank you for your help; soon after posting this I found out that the scatter plot was the right choice instead of the line graph. It made me feel like an idiot but oh well. Thanks for taking the time.
 

Jon Peltier

MrExcel MVP
Joined
May 14, 2003
Messages
4,931
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Don't worry about it. That's really a common problem.
 

Watch MrExcel Video

Forum statistics

Threads
1,118,433
Messages
5,572,080
Members
412,439
Latest member
BKPE
Top