Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Microsoft Query / Excel Date.Time

Here is my problem. I have Microsoft Query running pulling data from a
datbase. The problem is when the times are pulled in I want it to drop
the date from the serial format (ddddd.ttttt) to be (0.tttt)

This way my formula calculates correctly. Where the data is being
entered the user checks a box and the time is entered and submitted.
If the user then corrects the time manually it erases the date in the
database. What I end of with is a mess of some entries as date/time
and some as just time and it messes with the formula.

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Microsoft Query / Excel Date.Time

Modify your formula using mod(A1,1) where A1 is the cell with the time. A
date value uses whole number to count the number of days since Jan 1, 1900.
The time portion of the number is the fraction where an hour is 1/24 and a
minute is 1/(24*60). The mod function will leave only the fractional part of
the Time/Date value.

" wrote:

Here is my problem. I have Microsoft Query running pulling data from a
datbase. The problem is when the times are pulled in I want it to drop
the date from the serial format (ddddd.ttttt) to be (0.tttt)

This way my formula calculates correctly. Where the data is being
entered the user checks a box and the time is entered and submitted.
If the user then corrects the time manually it erases the date in the
database. What I end of with is a mess of some entries as date/time
and some as just time and it messes with the formula.

Any ideas?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Query from microsoft query- Excel 2007 טבלאות אקסל 2007 Excel Discussion (Misc queries) 0 December 24th 07 10:47 PM
Using the Microsoft Date and Time Picker 6.0 hockeybox07 Excel Worksheet Functions 0 May 2nd 07 02:54 AM
Microsoft Date and Time Picker Ben Excel Discussion (Misc queries) 1 May 25th 06 05:15 PM
Creating Date Range in Pivot Microsoft Query Ian Excel Discussion (Misc queries) 0 November 20th 05 10:10 PM
microsoft date and time picker control Don Excel Discussion (Misc queries) 2 May 20th 05 02:27 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"