[mso] Re: Time conversion? Excel 2000

  • From: "Ray Blake" <ray@xxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Fri, 12 Aug 2005 09:12:14 +0100

Your formula shouldn't contain HOUR and MINUTE functions. Try this:

=TIME(VALUE(LEFT(T2,2)),VALUE(RIGHT(T2,2)),0)

Ray

------------------------------------
GR Business Process Solutions
Ray Blake
Head of Software Design
ray@xxxxxxxxx
Braedon
Newell Road
Hemel Hempstead
Herts HP3 9PD
tel: 01442 396518
fax: 01442 389353
mobile: 07834 226601
www.grbps.com
------------------------------------


-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On
Behalf Of Robert Carneal
Sent: 12 August 2005 09:00
To: mso@xxxxxxxxxxxxx
Subject: [mso] Time conversion? Excel 2000


Ok, this wasn't my idea. This *was* in text which I converted into
Excel, also text.

Date & Times have been entered as 198008110930 (YYYYMMDDHHMM format)
which makes that August 11, 1980 9:30am. The dates are all 1980s dates.

Ok, I have no problem taken the first eight text digits and turning that
into 2005-08-12, however the time part I need help with. When I use:
T2=0930
=TIME(HOUR(VALUE(LEFT(T2,2))),MINUTE(VALUE(RIGHT(T2,2))),0)

I get 12:00AM, not the desired 9:30AM. With my formula above, didn't I
say:
=TIME(9,30,0)
??

The =TIME(9,30,0) works out to 9:30AM just fine, but when I do it from
text
to values, no it doesn't.       Does anyone see why, please?

Thank you.

Robert


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: