PC Review


Reply
Thread Tools Rate Thread

How do I extract time only in Excel?

 
 
grant
Guest
Posts: n/a
 
      25th Jun 2008
How do I extract time only from a date/time cell in Excel?
 
Reply With Quote
 
 
 
 
T. Valko
Guest
Posts: n/a
 
      25th Jun 2008
One way:

A1 = 6/25/2008 12:05 AM

=MOD(A1,1)

Format as TIME

--
Biff
Microsoft Excel MVP


"grant" <(E-Mail Removed)> wrote in message
news:4375E5F1-BD59-4DC6-930F-(E-Mail Removed)...
> How do I extract time only from a date/time cell in Excel?



 
Reply With Quote
 
grant
Guest
Posts: n/a
 
      25th Jun 2008
I typed a date in cell A1, then typed =MOD(A1,1) in cell B1. Excel returns an
error stating "The formula you typed contains an error." I even used an
example from Excel Help, =MOD(3, 2) and Excel returns the same error. Am I
doing something wrong?

-Grant

"T. Valko" wrote:

> One way:
>
> A1 = 6/25/2008 12:05 AM
>
> =MOD(A1,1)
>
> Format as TIME
>
> --
> Biff
> Microsoft Excel MVP
>
>
> "grant" <(E-Mail Removed)> wrote in message
> news:4375E5F1-BD59-4DC6-930F-(E-Mail Removed)...
> > How do I extract time only from a date/time cell in Excel?

>
>
>

 
Reply With Quote
 
Fred Smith
Guest
Posts: n/a
 
      25th Jun 2008
Then you didn't type it in properly. =Mod(a1,1) is a valid Excel formula.

Regards,
Fred.

"grant" <(E-Mail Removed)> wrote in message
news0D11B4E-2B8E-4134-A6CE-(E-Mail Removed)...
>I typed a date in cell A1, then typed =MOD(A1,1) in cell B1. Excel returns
>an
> error stating "The formula you typed contains an error." I even used an
> example from Excel Help, =MOD(3, 2) and Excel returns the same error. Am I
> doing something wrong?
>
> -Grant
>
> "T. Valko" wrote:
>
>> One way:
>>
>> A1 = 6/25/2008 12:05 AM
>>
>> =MOD(A1,1)
>>
>> Format as TIME
>>
>> --
>> Biff
>> Microsoft Excel MVP
>>
>>
>> "grant" <(E-Mail Removed)> wrote in message
>> news:4375E5F1-BD59-4DC6-930F-(E-Mail Removed)...
>> > How do I extract time only from a date/time cell in Excel?

>>
>>
>>


 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      25th Jun 2008
Do you have a continental Excel?

=MOD(A1;1)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"grant" <(E-Mail Removed)> wrote in message
news0D11B4E-2B8E-4134-A6CE-(E-Mail Removed)...
>I typed a date in cell A1, then typed =MOD(A1,1) in cell B1. Excel returns
>an
> error stating "The formula you typed contains an error." I even used an
> example from Excel Help, =MOD(3, 2) and Excel returns the same error. Am I
> doing something wrong?
>
> -Grant
>
> "T. Valko" wrote:
>
>> One way:
>>
>> A1 = 6/25/2008 12:05 AM
>>
>> =MOD(A1,1)
>>
>> Format as TIME
>>
>> --
>> Biff
>> Microsoft Excel MVP
>>
>>
>> "grant" <(E-Mail Removed)> wrote in message
>> news:4375E5F1-BD59-4DC6-930F-(E-Mail Removed)...
>> > How do I extract time only from a date/time cell in Excel?

>>
>>
>>



 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      25th Jun 2008
Another way:

=A1 - INT(A1)

Hope this helps.

Pete

On Jun 25, 5:19*am, grant <gr...@discussions.microsoft.com> wrote:
> I typed a date in cell A1, then typed =MOD(A1,1) in cell B1. Excel returns an
> error stating "The formula you typed contains an error." I even used an
> example from Excel Help, =MOD(3, 2) and Excel returns the same error. Am I
> doing something wrong?
>
> -Grant
>
>
>
> "T. Valko" wrote:
> > One way:

>
> > A1 = 6/25/2008 12:05 AM

>
> > =MOD(A1,1)

>
> > Format as TIME

>
> > --
> > Biff
> > Microsoft Excel MVP

>
> > "grant" <gr...@discussions.microsoft.com> wrote in message
> >news:4375E5F1-BD59-4DC6-930F-(E-Mail Removed)...
> > > How do I extract time only from a date/time cell in Excel?- Hide quoted text -

>
> - Show quoted text -


 
Reply With Quote
 
grant
Guest
Posts: n/a
 
      26th Jun 2008
Fred, what is a continental Excel? (Do you mean US purchased? If so, yes.)

Thanks,
Grant

"Bob Phillips" wrote:

> Do you have a continental Excel?
>
> =MOD(A1;1)
>
> --
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my addy)
>
> "grant" <(E-Mail Removed)> wrote in message
> news0D11B4E-2B8E-4134-A6CE-(E-Mail Removed)...
> >I typed a date in cell A1, then typed =MOD(A1,1) in cell B1. Excel returns
> >an
> > error stating "The formula you typed contains an error." I even used an
> > example from Excel Help, =MOD(3, 2) and Excel returns the same error. Am I
> > doing something wrong?
> >
> > -Grant
> >
> > "T. Valko" wrote:
> >
> >> One way:
> >>
> >> A1 = 6/25/2008 12:05 AM
> >>
> >> =MOD(A1,1)
> >>
> >> Format as TIME
> >>
> >> --
> >> Biff
> >> Microsoft Excel MVP
> >>
> >>
> >> "grant" <(E-Mail Removed)> wrote in message
> >> news:4375E5F1-BD59-4DC6-930F-(E-Mail Removed)...
> >> > How do I extract time only from a date/time cell in Excel?
> >>
> >>
> >>

>
>
>

 
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
Extract time from date/time column Jeff Microsoft Excel Discussion 7 22nd Oct 2008 09:17 AM
Extract time for comparison Steven Microsoft Excel Programming 3 26th Apr 2008 09:52 PM
How to extract time and date =?Utf-8?B?SGVtYW50aA==?= Microsoft Excel Misc 2 27th Jun 2007 03:00 PM
Extract Time BBert Microsoft Excel Programming 2 18th Jan 2006 08:29 PM
extract time from excel serial date Dan W Microsoft Excel Programming 4 8th Jun 2004 06:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:05 AM.