ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   XY Scatter graph: x-axis picking up row numbers instead of values (https://www.excelbanter.com/charts-charting-excel/207494-xy-scatter-graph-x-axis-picking-up-row-numbers-instead-values.html)

darryl

XY Scatter graph: x-axis picking up row numbers instead of values
 
When plotting an XY scatter graph, my x-axis values are picking up the row
numbers instead of the values which I've inlcuded in the range. Highlighting
a data point shows the following [Series 1 Point "15.00" (67,18.75)]. The
x-value is showing 67, which is the row number where the data point is
located. The x-value should be the 15.00, which is what I have inlcuded in
the x-value range.

I've checked that the X & Y ranges are pointing to the correct cell ranges
and that I have a scatter graph & not a line graph. Any suggestions as how
to fix this? I'm using excel 2003.

ExcelBanter AI

Answer: XY Scatter graph: x-axis picking up row numbers instead of values
 
It sounds like Excel is interpreting your x-axis values as text instead of numerical values. Here are a few steps you can try to fix this issue:
  1. Select the cells containing your x-axis values and make sure they are formatted as numbers. You can do this by right-clicking on the cells, selecting "Format Cells," and choosing the "Number" category.
  2. If step 1 doesn't work, try converting your x-axis values to numbers using the
    Code:

    VALUE
    function. For example, if your x-axis values are in column A starting from cell A2, you can enter the formula "=VALUE(A2)" in cell B2 and drag it down to convert all the values in column A to numbers. Then, use column B as your x-axis values in the chart.
  3. If neither of the above steps work, try recreating the chart from scratch. Make sure to select the correct range for your x-axis values and choose the "Scatter" chart type.

I hope one of these solutions works for you!

Jon Peltier

XY Scatter graph: x-axis picking up row numbers instead of values
 
Make sure the X values range contains only numerical values, no text.
Sometimes when data is imported from an external source, even the numbers
are imported as text. You can select a column, and use Data menu Text to
Columns to convert it to numbers.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Darryl" wrote in message
...
When plotting an XY scatter graph, my x-axis values are picking up the row
numbers instead of the values which I've inlcuded in the range.
Highlighting
a data point shows the following [Series 1 Point "15.00" (67,18.75)]. The
x-value is showing 67, which is the row number where the data point is
located. The x-value should be the 15.00, which is what I have inlcuded
in
the x-value range.

I've checked that the X & Y ranges are pointing to the correct cell ranges
and that I have a scatter graph & not a line graph. Any suggestions as
how
to fix this? I'm using excel 2003.




darryl

XY Scatter graph: x-axis picking up row numbers instead of val
 
Hi Jon,

Your fix works great (thank you) when the numbers in the range are hard
coded. Trouble is that many of the cells in the x-axis range contain IF
statements and these IF statements contain imbeded vlookups. Any work around
for these?

"Jon Peltier" wrote:

Make sure the X values range contains only numerical values, no text.
Sometimes when data is imported from an external source, even the numbers
are imported as text. You can select a column, and use Data menu Text to
Columns to convert it to numbers.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Darryl" wrote in message
...
When plotting an XY scatter graph, my x-axis values are picking up the row
numbers instead of the values which I've inlcuded in the range.
Highlighting
a data point shows the following [Series 1 Point "15.00" (67,18.75)]. The
x-value is showing 67, which is the row number where the data point is
located. The x-value should be the 15.00, which is what I have inlcuded
in
the x-value range.

I've checked that the X & Y ranges are pointing to the correct cell ranges
and that I have a scatter graph & not a line graph. Any suggestions as
how
to fix this? I'm using excel 2003.





Jon Peltier

XY Scatter graph: x-axis picking up row numbers instead of val
 
If the lookup returns nonnumeric values you get the same issue. If the table
being searched has nonnumeric values, convert these.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Darryl" wrote in message
...
Hi Jon,

Your fix works great (thank you) when the numbers in the range are hard
coded. Trouble is that many of the cells in the x-axis range contain IF
statements and these IF statements contain imbeded vlookups. Any work
around
for these?

"Jon Peltier" wrote:

Make sure the X values range contains only numerical values, no text.
Sometimes when data is imported from an external source, even the numbers
are imported as text. You can select a column, and use Data menu Text
to
Columns to convert it to numbers.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Darryl" wrote in message
...
When plotting an XY scatter graph, my x-axis values are picking up the
row
numbers instead of the values which I've inlcuded in the range.
Highlighting
a data point shows the following [Series 1 Point "15.00" (67,18.75)].
The
x-value is showing 67, which is the row number where the data point is
located. The x-value should be the 15.00, which is what I have
inlcuded
in
the x-value range.

I've checked that the X & Y ranges are pointing to the correct cell
ranges
and that I have a scatter graph & not a line graph. Any suggestions as
how
to fix this? I'm using excel 2003.








All times are GMT +1. The time now is 10:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com