PC Review


Reply
 
 
Steve H
Guest
Posts: n/a
 
      30th Sep 2010
Hello.
I am working with a file myfile 2010-09.xlsx. I am deriving the date
using
=DATE(MID(CELL("filename",A1),FIND("-",CELL("filename",A1))-4,4),MID(CELL("filename",A1),FIND("-",CELL("filename",A1))
+1,2),1)

which returns 09/01/2010 00:00.

In cell A3 I have =A1+1/24 which returns 09/01/2010 01:00 and this
formula is copied down the column. The formula returns the right date/
time when formated as date/time but when I enter the same date/time
and reformat as number they are not the same.
Example
A6 returns 9/1/2010 6:00 formatted as number 40,422.250000000000
A7 (A6+1/24) returns 9/1/2010 7:00 formatted as number
40,422.29166666660000
then 9/1/2010 7:00 manually entered and formated as number =
40,422.291666666700

I am trying to compare date/time from formula to one that is entered
and although they look the same and are the same formatted as dae/
time, when compared by formula they aren't. I suppose that it is a
rounding issue but how do I fix it?
Thanks




A7=A6+1/24
 
Reply With Quote
 
 
 
 
joeu2004
Guest
Posts: n/a
 
      30th Sep 2010
On Sep 30, 11:24*am, Steve H <stevenh5...@aol.com> wrote:
>*I am deriving the date using
> =DATE(MID(CELL("filename",A1),FIND("-",CELL("filename",A1))-4,4),
> MID(CELL("filename",A1),FIND("-",CELL("filename",A1))+1,2),1)
> which returns 09/01/2010 00:00.
>
> In cell A3 I have =A1+1/24 which returns 09/01/2010 01:00 and this
> formula is copied down the column.

[....]
> I am trying to compare date/time from formula to one that is entered
> [manually] and although they look the same and are the same formatted
> as dae/time, when compared by formula they aren't. *I suppose that it is
> a rounding issue but how do I fix it?


Correct. Precisely what I had explained in the thread "Date Time
increment with additional condition of skipping weekends" at
http://groups.google.com/group/micro...b0b93c0dfe752#.

The fix:

=--TEXT(A1+1/24,"m/d/yyyy h:m")

which you format as you like, e.g. Custom "mm/dd/yyyy hh:mm" without
quotes.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting text format of time/date into Excel time/date for subtr YY san. Microsoft Excel Worksheet Functions 5 25th Feb 2010 07:13 AM
Calculating days & time left from start date/time to end date/time =?Utf-8?B?bWFyaWU=?= Microsoft Excel Worksheet Functions 7 7th Dec 2005 02:36 PM
Date/Time datatype in Access 2003 affects date/time duplicate quer =?Utf-8?B?VGltIFQ=?= Microsoft Access Queries 4 27th Jun 2005 02:20 AM
Medium Time setting does not hide date from a date/time duplicateq =?Utf-8?B?VGltIFQ=?= Microsoft Access Getting Started 0 26th Jun 2005 08:49 PM
Calc. Length of time with time-in, time-out, date-in, date-out in diff. columns Niceven Microsoft Excel Misc 2 28th May 2004 04:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:47 AM.