#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 76
Default time switch

assuming you've got =now() in cell A1;

=IF(AND(A1-ROUNDDOWN(A1,0)=0.5833333,A1-ROUNDDOWN(A1,0)<=0.625),B5,"")

Tony
AMP

wildauk wrote:
Hi, I would like to put live time in a cell (I think with NOW) and put in a
formula in say cell a5 that would show the contents of say cell b5 if it is
between 14:00 hrs and 15:00 hrs in the time cell, any ideas???
Thanks in advance, Barry.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default time switch

Thanks Tony, how did you get the numbers for the time as I would like to do a
couple more time periods.

Barry.

"bony_tony" wrote:

assuming you've got =now() in cell A1;

=IF(AND(A1-ROUNDDOWN(A1,0)=0.5833333,A1-ROUNDDOWN(A1,0)<=0.625),B5,"")

Tony
AMP

wildauk wrote:
Hi, I would like to put live time in a cell (I think with NOW) and put in a
formula in say cell a5 that would show the contents of say cell b5 if it is
between 14:00 hrs and 15:00 hrs in the time cell, any ideas???
Thanks in advance, Barry.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 76
Default time switch

Type in a time you want in a cell, then press;
format-----cells----number(with as many decimals places as you want)

Tony


wildauk wrote:
Thanks Tony, how did you get the numbers for the time as I would like to do a
couple more time periods.

Barry.

"bony_tony" wrote:

assuming you've got =now() in cell A1;

=IF(AND(A1-ROUNDDOWN(A1,0)=0.5833333,A1-ROUNDDOWN(A1,0)<=0.625),B5,"")

Tony
AMP

wildauk wrote:
Hi, I would like to put live time in a cell (I think with NOW) and put in a
formula in say cell a5 that would show the contents of say cell b5 if it is
between 14:00 hrs and 15:00 hrs in the time cell, any ideas???
Thanks in advance, Barry.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 76
Default time switch

Or if you want to be mathmatical x=(1/24)*14 where 24 are the hours in
the day, and 14 is the 14th hour (2PM) ; - )

Tony

On Dec 13, 10:40 am, wildauk
wrote:
Thanks Tony, how did you get the numbers for the time as I would like to do a
couple more time periods.

Barry.



"bony_tony" wrote:
assuming you've got =now() in cell A1;


=IF(AND(A1-ROUNDDOWN(A1,0)=0.5833333,A1-ROUNDDOWN(A1,0)<=0.625),B5,"")


Tony
AMP


wildauk wrote:
Hi, I would like to put live time in a cell (I think with NOW) and put in a
formula in say cell a5 that would show the contents of say cell b5 if it is
between 14:00 hrs and 15:00 hrs in the time cell, any ideas???
Thanks in advance, Barry.- Hide quoted text -- Show quoted text -


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
Switch names kathy at the front desk Excel Worksheet Functions 7 November 24th 09 08:46 PM
Why does my computer switch to military time? linzers333 Excel Discussion (Misc queries) 1 July 11th 06 02:17 PM
how do I switch from one window to another crystal Excel Worksheet Functions 2 June 30th 05 08:11 AM
Switch Workbbooks SeanEvans[_3_] Excel Programming 1 November 5th 04 07:06 PM
SWITCH BETWEEN APPLICATIONS Riana de Lange Excel Programming 0 November 20th 03 07:55 PM


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