Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
mjo73
 
Posts: n/a
Default same month/day on x axis for multiple years


If i have data sourced to me like this:

Date Price 1 Price 2 Price 3
1/1/2003 2.5 3.2 3.0
1/2/2003 2.6 2.8 2.9
1/1/2004 2.7 3.0 3.1
1/2/2004 2.0 2.8 3.2
1/1/2005 6.0 6.2 6.2
1/2/2005 6.5 6.3 6.4


If I want a line graph with the 3 series related to the Price columns,
how can I get the x axis to only reflect the 3 month/day combinations
not including the year? When I try this it gives me 6 x axis points
for each series.

Thanks, Mike.


--
mjo73
------------------------------------------------------------------------
mjo73's Profile: http://www.excelforum.com/member.php...o&userid=30459
View this thread: http://www.excelforum.com/showthread...hreadid=501255

  #2   Report Post  
Posted to microsoft.public.excel.charting
Jon Peltier
 
Posts: n/a
Default same month/day on x axis for multiple years

You can do this with a pivot table. Select a cell in the data table, and
choose PivotTable and PivotChart Report from the Data menu. Drag the Date
field into the Rows area, and the three Price fields into the Data area.
Drag the Data field in the new pivot table to the Columns area (where it
just says "Total"). Then right click on one of the dates, and choose Group
and Show Detail, and choose Group in the pop up. In the Grouping dialog,
unselect Months, then select Days and Years. Finally drag the Years field to
the Columns area. You get a table that looks like this (it extends further
to the right):

Years Data

2003 2004
....

Date Sum of Price 1 Sum of Price 2 Sum of Price 3 Sum of Price 1 Sum
of Price 2 ...

1-Jan 2.5 3.2 3 2.7 3
....

2-Jan 2.6 2.8 2.9 2 2.8
....

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


"mjo73" wrote in
message ...

If i have data sourced to me like this:

Date Price 1 Price 2 Price 3
1/1/2003 2.5 3.2 3.0
1/2/2003 2.6 2.8 2.9
1/1/2004 2.7 3.0 3.1
1/2/2004 2.0 2.8 3.2
1/1/2005 6.0 6.2 6.2
1/2/2005 6.5 6.3 6.4


If I want a line graph with the 3 series related to the Price columns,
how can I get the x axis to only reflect the 3 month/day combinations
not including the year? When I try this it gives me 6 x axis points
for each series.

Thanks, Mike.


--
mjo73



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Producing line and bar graphs on same axis smurray444 Charts and Charting in Excel 1 November 21st 05 05:20 PM
how to add a second x axis with same Y axis value in one plot Mike Charts and Charting in Excel 1 October 19th 05 08:42 AM
Secondary Axis Match Primary Axis Gridlines [email protected] Charts and Charting in Excel 1 July 31st 05 09:23 PM
can't change how data on 2nd axis is being displayed Rebekah Charts and Charting in Excel 1 May 4th 05 02:51 PM
Show quarters and years on x axis of a chart Kacee Charts and Charting in Excel 3 March 19th 05 03:42 AM


All times are GMT +1. The time now is 02:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"