Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default extracting time from a cell

hi.

i work with vb6 and excel 2000 on win2k and i have the following problem
i need to extract data from an excel worksheet that holds a report from
a worker that fills the date and time his action took place, the format
is like this : one cell holds the date in the following format 22.11.2004
the second cell holds the hour in the following format 8:30
when i try to extract the time i get .354166666666667
how can i get the time in the correct format 8:30?
i can handle even if i get it with the seconds like 8:30:00

thanks in advance
gil eiliya
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default extracting time from a cell

I think you did good.

Try formatting that cell (with .354166666666667) as: HH:MM (or HH:MM:SS)

gil eiliya wrote:

hi.

i work with vb6 and excel 2000 on win2k and i have the following problem
i need to extract data from an excel worksheet that holds a report from
a worker that fills the date and time his action took place, the format
is like this : one cell holds the date in the following format 22.11.2004
the second cell holds the hour in the following format 8:30
when i try to extract the time i get .354166666666667
how can i get the time in the correct format 8:30?
i can handle even if i get it with the seconds like 8:30:00

thanks in advance
gil eiliya


--

Dave Peterson
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
Extracting time (hr:min) from date/time format lawandgrace Excel Discussion (Misc queries) 4 August 18th 09 05:21 PM
Extracting date from Date and Time formatted cell Aviral Sharma Excel Discussion (Misc queries) 2 March 6th 09 05:04 AM
extracting time only Michel Khennafi Excel Worksheet Functions 1 April 10th 08 04:56 PM
Extracting Time from a cell that has both the date and the time Hani Muhtadi Excel Discussion (Misc queries) 3 September 9th 05 10:59 AM
Extracting time Fay Excel Discussion (Misc queries) 1 June 30th 05 01:37 PM


All times are GMT +1. The time now is 05:00 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"