+ Reply to Thread
Results 1 to 6 of 6

IF condition with System time

  1. #1
    Registered User
    Join Date
    02-07-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    53

    IF condition with System time

    Hi,

    I want to create a logic with system time

    =if(time>(10:30,0,0),"10:30 am shift started","")

    It is not working.Can any expert help me to solve it?

    Netaji

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: IF condition with System time

    Try

    =IF(MOD(NOW(),1)>TIME(10,30,0),"10:30 am shift started","")

  3. #3
    Registered User
    Join Date
    02-07-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: IF condition with System time

    Hi Jonmo,

    Thanks for reply.It works if the i set the (past) time in the formula,If i set the time in future,Say for instance 2 minutes from now..It is not working.My calculation mode is set to automatic only in formula menu.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: IF condition with System time

    The formula will only recalculate when a calculation event is triggered (when something on the sheet changes)
    It won't change if you just watch it waiting for it to change.

    You can press F9 to force a recalculation.

  5. #5
    Registered User
    Join Date
    02-07-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: IF condition with System time

    Thanks a Lot Jonmo.It works now exactly.Thanks again for opening my third eye.lol.

    Regards,

    Netaji

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: IF condition with System time

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to get Standard time and not system time?
    By tristanxix in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2013, 01:21 AM
  2. system time problem
    By Spasm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-17-2011, 09:12 PM
  3. Refresh System Time
    By Spasm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2011, 02:24 PM
  4. Using VBA to get system time in GMT equivalent instead of local time
    By kuraitori in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2009, 06:12 PM
  5. Formula requireing the system time:current time
    By Major Tomm in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-31-2005, 03:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1