Closed Thread
Results 1 to 5 of 5

time issue

  1. #1
    Registered User
    Join Date
    06-30-2008
    Location
    usa
    Posts
    6

    time issue

    ok i want to take the time =Now() that is on I32 . If it is greater than 15 mins cell I27 will turn RED . If it is less than 15 minutes it will turn green.

    cell I32 8:30pm
    cell I27 9:00pm <---------- cell will turn red

    cell I32 8:30pm
    cell I27 6:00pm <---------- cell will turn green

    thanks for your help.. getting their slowly..
    Last edited by VBA Noob; 08-27-2008 at 03:11 AM.

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256
    Hi,

    Use conditional formatting.

    This formula will return TRUE if the time difference is greater than 15 minutes and it will return FALSE if the time difference is equal to or less than 15 minutes:
    =MOD(I33-I32,1)*1440>15

    Colin

    Edit: Re Post #3 - Thanks Dav, you are correct. I have amended the conversion factor from 1400 to 1440.
    Last edited by Colin Legg; 08-27-2008 at 04:48 AM. Reason: Correction to formula typo as spotted by Dav

  3. #3
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    I think the 1400 is 1440 (24hrs x 60 minutes), if the above is ammended accordingly it should work

    Regards

    Dav

  4. #4
    Registered User
    Join Date
    06-30-2008
    Location
    usa
    Posts
    6

    Thumbs up probles with the time function.

    what I am trying to do is on the driver sheet the appointment time fill in the cell on page 6.23.08 cell J2(if the time is before the time or same time) on the driver sheet I27 it will put the time in with Green TIME. If it is later than the time it will be red..
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi,
    as you have not adapted your title as requested, I am closing this thread.
    Please feel free to open a new one with a relevant title

    Cheers

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Time Ranges
    By jmag in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-17-2008, 03:24 PM
  2. adding data for time interval
    By sabsay in forum Excel General
    Replies: 0
    Last Post: 03-17-2008, 02:40 AM
  3. Setting time issue?
    By tompich in forum Excel General
    Replies: 2
    Last Post: 10-10-2007, 10:00 AM
  4. Time replying wrong
    By ukphoenix in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-20-2007, 05:55 AM

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