Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
puzzled
 
Posts: n/a
Default If a time is between 2:00PM and 11:00PM enter 1 otherwise blank

I am predicting an occurrance to happen at a specific time (cell C9). I want
to look at that time and if it is between 7:00AM & 3:00PM enter a 1 (in cell
10) (represents 1st shift), if between 3:00PM & 11:00PM enter a 2 (represents
2nd shift) if betweem 11:00pm & 7:00AM enter a 1 (represents 1st shift).
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default If a time is between 2:00PM and 11:00PM enter 1 otherwise blank

=IF(AND(C9=--"07:00:00",C9<--"15:00:00"),1,IF(AND(C9=--"15:00:00",C9<--"23
:00:00"),2,3))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"puzzled" wrote in message
...
I am predicting an occurrance to happen at a specific time (cell C9). I

want
to look at that time and if it is between 7:00AM & 3:00PM enter a 1 (in

cell
10) (represents 1st shift), if between 3:00PM & 11:00PM enter a 2

(represents
2nd shift) if betweem 11:00pm & 7:00AM enter a 1 (represents 1st shift).



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



All times are GMT +1. The time now is 02:44 AM.

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"