X-Y Scatter Not Plotting Properly

Agent Carmichael

New Member
Joined
Feb 13, 2010
Messages
5
I have a basic spreadsheet that I'm trying to generate 2 X-Y scatter plots from. The first graph has four lines that all use a formula for what is basically an hour count, and everything looks fine. The second X-Y scatter plot, however, is supposed to use a specific column (R) for its x-axis values. It basically calculates a cumulative percentage based off of a hard-entered cell. The formula is:

=IF(O67>0,SUM($O$19:O67)/$U$2,"")

The problem is that when I go to the second graph, which is supposed to have its x-axis values taken from that formula, the x-axis labels are the same as the first graph. Moreover, the graphs look identical, so it's not actually plotting properly. The chart type is xy scatter, and when I go to "Select Data", the horizontal axis labels actually show up as they should, with the percentages from the formulated column. Has anybody experienced this? I'm out of solutions at this point...

Side note: I used that if/then statement because the spreadsheet was designed to have more cells than will likely be needed. Because I am not the one entering the data and the collection period is not pre-determined, I assumed that was the best way to set up the cells being used for the graphs.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
First, note that the "" in the formula may look blank, but it's not going to chart properly. If the cell containing the formula is part of the plotted data, the "" is text, and so it is interpreted as 0, and if it's part of the X values, it messes them up, so Excel will revert to plotting the data as if the X values are 1, 2, 3, etc.

See if this works better:

=IF(O67>0,SUM($O$19:O67)/$U$2,NA())

This puts #N/A in the cell, which doesn't look all that attractive, but doesn't mess up the chart.
 
Upvote 0

Forum statistics

Threads
1,215,390
Messages
6,124,667
Members
449,178
Latest member
Emilou

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top