Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Time function in Excel

How can I programme an individual cell in an Excel spreadsheet to
perform a task depending on what time is entered into it.

i.e. if any time is entered which falls between 12.00 noon and 1.30
pm, I want a message box to appear saying "Remember to Order Lunch".

Any ideas?

Thanks for your help.

Kind regards

Paddymichelle
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Time function in Excel

if time = TimeValue("12:00 PM") or time <= TimeValue("1:00 PM") then

--
Regards,
Tom Ogilvy

"Ian M" wrote in message
om...
How can I programme an individual cell in an Excel spreadsheet to
perform a task depending on what time is entered into it.

i.e. if any time is entered which falls between 12.00 noon and 1.30
pm, I want a message box to appear saying "Remember to Order Lunch".

Any ideas?

Thanks for your help.

Kind regards

Paddymichelle



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Time function in Excel

Tom Ogilvy wrote:
if time = TimeValue("12:00 PM") or time <= TimeValue("1:00 PM") then


should be "and" not "or"?

Damo


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
Macro / function text time to 24hr excel time passed midnight fortotaling hr's Russmaz Excel Worksheet Functions 2 March 6th 09 04:58 AM
Excel Time Function Rich Excel Worksheet Functions 3 January 27th 09 05:20 PM
HOW DO I KEEP THE FUNCTION BOX OPEN ALL THE TIME IN EXCEL? JEG Excel Discussion (Misc queries) 1 August 14th 07 02:42 PM
Why won't the SUMIF function in Excel add time? SKHRAANENMOENR Excel Worksheet Functions 2 January 25th 07 07:46 PM
TIME function used in Excel jeramy Excel Worksheet Functions 1 July 2nd 05 02:59 AM


All times are GMT +1. The time now is 07:59 AM.

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"