Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Susan Hayes
 
Posts: n/a
Default Determining a specific time during the day

Hello

I am trying to write an if statement which can determine a specified time each day.
For example

If it is before 3:00 pm then A2 = before; If it is after 3:00 pm then A2 = after.

Thank you in advance

Susan
  #2   Report Post  
Rowan
 
Posts: n/a
Default

You could try:

=IF(HOUR(NOW())<15,"Before","After")

Hope this helps
Rowan

Susan Hayes wrote:
Hello

I am trying to write an if statement which can determine a specified time each day.
For example

If it is before 3:00 pm then A2 = before; If it is after 3:00 pm then A2 = after.

Thank you in advance

Susan

  #3   Report Post  
CLR
 
Posts: n/a
Default

Hi Susan..........

Rowan's formula works fine, and does exactly what you asked for, but keep in
mind, it is a volatile thing. If you are working in the file and at 5
minutes till 3 decide to save and quit, A2 will read "before", but if you
open the file again at 5 minutes AFTER 3, A2 will read "after"........NOT
the "before" that it read when you saved...........this is ok, as long as
this is the way you want it to work.....................

Vaya con Dios,
Chuck, CABGx3



"Susan Hayes" wrote in message
...
Hello

I am trying to write an if statement which can determine a specified time

each day.
For example

If it is before 3:00 pm then A2 = before; If it is after 3:00 pm then A2 =

after.

Thank you in advance

Susan



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
Time zone Time difference mac_see Excel Worksheet Functions 0 May 3rd 05 07:57 PM
Time Sheet Calculation Help Needed! sax30 Excel Worksheet Functions 2 April 26th 05 08:08 PM
time interval calculations in excel Krishna Excel Discussion (Misc queries) 6 April 8th 05 02:57 PM
Calculating tvl time in Excel 2000 Rev.9.2720 Brandi Excel Worksheet Functions 5 January 27th 05 09:15 PM
entering numbers to display a time format Ian Williams/Eazygig Excel Discussion (Misc queries) 1 January 10th 05 11:57 AM


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