Quote Originally Posted by sayzer
Hi keithdoxey,

If you enter "120-6+9+36" into an excel cell without the parenthesis, you will get 159 instead of 69.

Did you check?
----------------
My brain hurts !!!!

Its fairly irrelevant now as I have just proved that my PIC code is not working right although I cant see how I broke it!

I cant see how I am getting the wrong value for the Weekday as a test routing that just generates the values gives correct result. Maybe it is a problem when I write to the RTC chip. Will try that next.