#1   Report Post  
justmeisall
 
Posts: n/a
Default Diff. in time


Thanks for the quick response.

What I want is to be able to put an "if" formula in column be that
would the following

if the time portion of mm/dd/yy hh:mm Am in between say midnite and
5Am, then return "overnight".

if the time portion of mm/dd/yy hh:mm Am in between say 5am and 11Am,
then return "morning".

If I break out the time prtion into another cell, I have the formula to
get the return. What I'm wondering is, Is there a formula I can use so
that I don't have to break the time portion out into another cell?

Oh ya, now for the tough part, column A must stay in the mm/dd/yy
format

Thanks again


--
justmeisall
------------------------------------------------------------------------
justmeisall's Profile: http://www.excelforum.com/member.php...o&userid=16351
View this thread: http://www.excelforum.com/showthread...hreadid=277380

  #2   Report Post  
Camilo
 
Posts: n/a
Default

=IF(AND(HOUR(E18-(TRUNC(E18,0)))17,HOUR(E18-(TRUNC(E18,0)))<24),"overnight",IF(AND(HOUR(E18-(TRUNC(E18,0)))5,HOUR(E18-(TRUNC(E18,0)))<11),"morning"))

Not pretty, but it works! If the time is outside the criteria you set, the
function will return "FALSE".

Hope this helps!

"justmeisall" wrote:


Thanks for the quick response.

What I want is to be able to put an "if" formula in column be that
would the following

if the time portion of mm/dd/yy hh:mm Am in between say midnite and
5Am, then return "overnight".

if the time portion of mm/dd/yy hh:mm Am in between say 5am and 11Am,
then return "morning".

If I break out the time prtion into another cell, I have the formula to
get the return. What I'm wondering is, Is there a formula I can use so
that I don't have to break the time portion out into another cell?

Oh ya, now for the tough part, column A must stay in the mm/dd/yy
format

Thanks again


--
justmeisall
------------------------------------------------------------------------
justmeisall's Profile: http://www.excelforum.com/member.php...o&userid=16351
View this thread: http://www.excelforum.com/showthread...hreadid=277380


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
entering numbers to display a time format Ian Williams/Eazygig Excel Discussion (Misc queries) 1 January 10th 05 11:57 AM
Help - Information with time and date PM Excel Discussion (Misc queries) 4 January 6th 05 08:25 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
Diff. in time justmeisall Excel Worksheet Functions 1 November 11th 04 03:24 PM


All times are GMT +1. The time now is 11:52 PM.

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"