ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   programaticaly select YY and XX values and Chart (https://www.excelbanter.com/excel-programming/423207-programaticaly-select-yy-xx-values-chart.html)

Daniel Coelho

programaticaly select YY and XX values and Chart
 
Hi,
I have two colums with data and I want to create a chart programaticaly with
those values.
Excel_ChartWizard interprets the two colums as two series, but one of the
colums has my XX values.
How do I do it?
Apreciate all the help.
Regards,

Daniel Coelho

Daniel Coelho[_2_]

programaticaly select YY and XX values and Chart
 
You were right, I missed what you wrote about the order of x and y.
I placed first the x values and on the chartwizard function I chose columm,
instead of rows, and the chart apeared OK.
The macro option could be a great solution too.
Thanks for your help and time.
Regards,

Daniel Coelho

"Peter T" wrote:

I guess you missed what I said about the order of x & y values the chart
wizard expects.

Try recording a macro while using the chart wizard to create your chart.
Because you've got Values in the left column, start with only the series
y-values selected, then in the wizard go on to apply the x-values.

The macro will give the basic syntax, all the selects and activates can be
edited out.

Regards,
Peter T


"Daniel Coelho" wrote in message
...
Here's an example:
| Values | |
| 1 | 9:00 |
| 2 | 9:01 |
| 3 | 9:02 |

I used a range A1:B4, the same problem happens, the chart apears weird
because it tries to place them as two series...

I tried to change the header above the first collumm and include that cell
too but the problem remains...

Any more hints?

"Peter T" wrote:

Put a header in the cell above the second column. Include the header cell
above what will become the first series and the empty cell above the
first
column (x-values) in the data range. The contents of that header cell
will
be used to name the series.

If your columns are not arranged in order x-values, series-1, series-2
etc
there will be a little more work to do.

Regards,
Peter T


"Daniel Coelho" <Daniel wrote in
message
...
Hi,
I have two colums with data and I want to create a chart programaticaly
with
those values.
Excel_ChartWizard interprets the two colums as two series, but one of
the
colums has my XX values.
How do I do it?
Apreciate all the help.
Regards,

Daniel Coelho








All times are GMT +1. The time now is 04:24 PM.

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