ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Microsoft Office Application Help - Excel Help forum > Excel Programming > Excel Charting

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-03-2005, 04:06 PM
Shuvro Basu
Guest
 
Posts: n/a
Plot time scale in Excel

I need help on plotting time in x axis with 15 minute intervals that will
roll over to the next day i.e midnight roll over.

Need this very urgently...
Reply With Quote
  #2  
Old 05-03-2005, 09:06 PM
John Mansfield
Guest
 
Posts: n/a
RE: Plot time scale in Excel

Shuvro,

Generally, per Excel’s help you can’t create time-scale charts from data
that is measured in intervals of hours, minutes, or seconds. Only days,
months, and years are considered base units in time-scale charts.

To get around this limitation, assume you have the following time data in
cells A1:A11 and plotted data in cells B1:B11:

Col A is Time Format Data
05/03/2005 23:00 6
05/03/2005 23:15 4
05/03/2005 23:30 5
05/03/2005 23:45 7
05/04/2005 0:00 6
05/04/2005 0:15 5
05/04/2005 0:30 3
05/04/2005 0:45 4
05/04/2005 1:00 5
05/04/2005 1:15 7

Insert a helper column between columns A and B. Add the following text
conversion formula to cell B1 (the new helper column):

=TEXT(A1,"mm dd yy hh:mm")

Copy that formula down the range B1:B11. Finally create your chart using
the range B1:C11.

Col A is Time Format Col B is Text Data
05/03/2005 23:00 05 03 05 23:00 6
05/03/2005 23:15 05/03/05 23:15 4
05/03/2005 23:30 05/03/05 23:30 5
05/03/2005 23:45 05/03/05 23:45 7
05/04/2005 0:00 05/04/05 00:00 6
05/04/2005 0:15 05/04/05 00:15 5
05/04/2005 0:30 05/04/05 00:30 3
05/04/2005 0:45 05/04/05 00:45 4
05/04/2005 1:00 05/04/05 01:00 5
05/04/2005 1:15 05/04/05 01:15 7

The 15 minute difference can be calculated a 1 / 24 / 4, or 0.010417

----------------------------
Regards,
John Mansfield
http://www.pdbook.com


"Shuvro Basu" wrote:

> I need help on plotting time in x axis with 15 minute intervals that will
> roll over to the next day i.e midnight roll over.
>
> Need this very urgently...

Reply With Quote
  #3  
Old 05-04-2005, 06:06 PM
Tushar Mehta
Guest
 
Posts: n/a
RE: Plot time scale in Excel

I am curious how this helper column chart differs from a chart with the=20
x-axis set to a 'category scale' (as opposed to 'time scale').

--=20
Regards,

Tushar Mehta
www.tushar-mehta.com
Multi-disciplinary business expertise
+ Technology skills
=3D Optimal solution to your business problem
Recipient Microsoft MVP award 2000-2005

In article <396F633F-EC63-4FD8-9AB1-F2B6BA39F547@microsoft.com>,=20
JohnMansfield@discussions.microsoft.com says...
> Shuvro,
>=20
> Generally, per Excel=E2=A4=3D3Fs help you can=E2=A4=3D3Ft create time-sca=

le charts from data=20
> that is measured in intervals of hours, minutes, or seconds. Only days,=

=20
> months, and years are considered base units in time-scale charts.
>=20
> To get around this limitation, assume you have the following time data in=

=20
> cells A1:A11 and plotted data in cells B1:B11:
>=20
> Col A is Time Format Data
> 05/03/2005 23:00=09 6
> 05/03/2005 23:15=09 4
> 05/03/2005 23:30=09 5
> 05/03/2005 23:45=09 7
> 05/04/2005 0:00=09 6
> 05/04/2005 0:15=09 5
> 05/04/2005 0:30=09 3
> 05/04/2005 0:45=09 4
> 05/04/2005 1:00=09 5
> 05/04/2005 1:15=09 7
>=20
> Insert a helper column between columns A and B. Add the following text=

=20
> conversion formula to cell B1 (the new helper column):
>=20
> =3DTEXT(A1,"mm dd yy hh:mm")
>=20
> Copy that formula down the range B1:B11. Finally create your chart using=

=20
> the range B1:C11.
>=20
> Col A is Time Format Col B is Text Data
> 05/03/2005 23:00=09 05 03 05 23:00=09 6
> 05/03/2005 23:15=09 05/03/05 23:15=09 4
> 05/03/2005 23:30=09 05/03/05 23:30=09 5
> 05/03/2005 23:45=09 05/03/05 23:45=09 7
> 05/04/2005 0:00=09 05/04/05 00:00=09 6
> 05/04/2005 0:15=09 05/04/05 00:15=09 5
> 05/04/2005 0:30=09 05/04/05 00:30=09 3
> 05/04/2005 0:45=09 05/04/05 00:45=09 4
> 05/04/2005 1:00=09 05/04/05 01:00=09 5
> 05/04/2005 1:15=09 05/04/05 01:15=09 7
>=20
> The 15 minute difference can be calculated a 1 / 24 / 4, or 0.010417=20
>=20
> ----------------------------
> Regards,
> John Mansfield
> http://www.pdbook.com
>=20
>=20
> "Shuvro Basu" wrote:

Reply With Quote
  #4  
Old 05-04-2005, 06:06 PM
Tushar Mehta
Guest
 
Posts: n/a
Re: Plot time scale in Excel

Ideally, you should have date-and-time information on the x-axis. Since
your data are equally spaced along the x-axis, you can create any kind
of chart. For anything other than a XY Scatter chart, just ensure that
the x-axis type is set to 'category' (select the chart then Chart |
Chart Options... | Axes tab).

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Multi-disciplinary business expertise
+ Technology skills
= Optimal solution to your business problem
Recipient Microsoft MVP award 2000-2005

In article <46388E02-8EC2-4447-8E89-0762E694BE7B@microsoft.com>, "=?Utf-
8?B?U2h1dnJvIEJhc3U=?=" <Shuvro Basu@discussions.microsoft.com> says...
> I need help on plotting time in x axis with 15 minute intervals that will
> roll over to the next day i.e midnight roll over.
>
> Need this very urgently...
>

Reply With Quote
Reply

Bookmarks

New topics in Excel Charting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


All times are GMT -4. The time now is 09:27 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0