Graphing Sunrise / Sunset times

Chunky_22

Board Regular
Joined
May 19, 2004
Messages
149
Hi All

I have a 3 column sheet. Column A is Date, Column B is Sunrise, Column C is Sunset. I have sunrise and sunset times for my location for the whole of 2008, and I want to show them as 2 lines on a line or XY graph.

My time format is 1:30:55 PM
My Date format is DD/MM/YYYY

My knowledge of graphing is very limited. Can anyone help?

Many thanks :eek:)
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Insert a new chart. Your Category values will be in column A. Your Series1 will be called Sunrise, and the values for it will be in column B. Series2 will be called Sunset, and the values for it will be in column C.

Chart type for both series will be the xy plot that meets your requirements.

SunriseSunset.jpg
 
Upvote 0
Thanks - Your graph looks exactly what I need.

However, when I do this, I get a chart with weird dates on the Y axiz from 0/01/1900 to 15/03/2029, and numbers along the X axis from 0 to 400.

Totally not what my data in columns A,B and C looks like.

Can you tell me what I'm doing wrong here?

Many thanks
 
Upvote 0
You have to select a categories list, for the X-Axis. I have circled in red the two series I have - Rise and Set. Date is not a series.

In light green I have circled the Rise series formula. You can see a sample of the data I'm using (data from US Naval Observatory) - the Rise is in column B.

Finally in blue I circled the Category axis data. This is column A, which in my data contains the dates.

SunriseSunset_ChartWizard.jpg



When I first started the Wizard, Excel assumed that the date is also going to be a series. I had to copy the formula, paste it under Category axis labels textbox, and delete the unwanted Date series.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,221,507
Messages
6,160,219
Members
451,631
Latest member
coffiajoseph

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