We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message
Contact Forum Editor

Send an email to our Forum Editor:


PLEASE NOTE: Your name is used only to let the Forum Editor know who sent the message. Both your name and email address will not be used for any other purpose.

Tech Helproom


It's free to register, to post a question or to start / join a discussion


 

Excel date weirdness


interzone55
Resolved

Likes # 0

I'm just updating my holiday calendar in Excel 2007 and noticed some distinct oddness.

April 30th is a Monday, drag the cell down and Excel claims May 1st is a Sunday. Drag may right down and 31st is showing as Tuesday, next cell June 1st and we're back to Sunday.

Anyone know what's going on here?

Like this post
Woolwell

Likes # 0

Ah - Day gives the day of the month. There =day(a1) returns 1 = Sunday. Try =Weekday(A1)

Like this post
caccy

Likes # 0

Try the following to see if you get the correct year. In the column to the right of =day(A1) format it to dd/mm/yyyy and put the formula ="the cell reference of your formula =day(a1)"
What year do you get. In Excel 97 it gives 1900. Don't know the reason for this other than it is Excels default "Start Year".

Like this post
compumac

Likes # 0

What content do you want the worksheet to display consecutively in the date column?

Like this post
Woolwell

Likes # 0

Just reread my 5.42 post. Therefore instead of there. Using Day formula 1/5/2012 = 1 = Sun. 31/5/2012 = 31 = Tue. Suggest wrong formula and should use weekday instead or reformat A1.

Like this post  
interzone55

Likes # 0

Woolwell

That's correct - I don't know why I was using Day(A1), possibly copied the formula from a different sheet. The reason it worked for April is that the 1st of April is a Sunday...

Like this post

Reply to this topic

This thread has been locked.



IDG UK Sites

Apple promises developers better stability, performance for Swift

IDG UK Sites

5 things we hate about MWC: What it's like to be a journalist at a technology trade show

IDG UK Sites

Interview: Lauren Currie aims to help design students bridge skills gap

IDG UK Sites

12in Retina MacBook Air release date rumours: new MacBook Air to have fingerprint ID, could launch...