LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 136
Default time and date

cell 4 =cell2 + cell3 * 15 / 1440

time and dates are stored in Excel as a serial number, the remainder
equals the fraction of a day since midnight so 5 times 15 minutes
divided by 1440 minutes per day or 1.25hours/24 hours=.05208333333

Mike wrote:

I have an Excel sheet with the date in one cell (formated for date) and the time in another cell (formated for time). What I need to do is create a string that has a new time based on the value of a 3rd cell.

i.e. cell 1 = 5/25/04
cell 2 = 08:00 am
cell 3 = 5

8:00 pm * 105(15 minutes for each value of cell 3) = 09:15 am

How do I do this in VB?

 
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
Converting text format of time/date into Excel time/date for subtr YY san.[_2_] Excel Worksheet Functions 6 February 25th 10 08:27 AM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 02:48 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM


All times are GMT +1. The time now is 09:59 PM.

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

About Us

"It's about Microsoft Excel"