A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
I wrote:
fcoivan46 wrote:
This is the formula I am using; =(((J2-(6*3600))/86400)+25569).
[....]
If you see the message "Negative dates or times are displayed as ####", your formula resulted in a negative value.
Not necessarily. Here is another way:
=J2-6*3600/86400+25569
Results in 1280878808.75 when J2 is 1280853240, the UTC for 3 Aug 2010 16:34 GMT.
Results in "####" with the error "Negative dates or times are displayed as ####" when formatted as Custom "mm/dd/yyyy hh:mm" (without quotes).
(Note that the error message is wrong! It is really trying to say that the number, interpreted as a date/time serial number, exceeds the date limit of Excel -- about 2958465.99999999 in Excel 2003, exactly 12/31/9999 23:59:59.999.)
Obviously my formula above is incorrect for the intended purpose.
However, it is consistent with my theory that your formula is not really =(((J2-(6*3600))/86400)+25569), but something effectively closer to the fomula above due to some incorrect balancing of parentheses (or lack thereof).
I have been suspicious of the correct entry of the formula because there are so many redundant parentheses, a recipe for human error. That is why I suggested that you copy-and-paste the formula from Formula Bar into a response here.
The correct succinct formula is =(J2-6*3600)/86400+25569.
Copy-and-paste that formula into Excel to see if your problem goes away.