+ Reply to Thread
Results 1 to 3 of 3

cf within certain time

  1. #1
    Registered User
    Join Date
    08-07-2013
    Location
    maryport
    MS-Off Ver
    Excel 2013
    Posts
    54

    cf within certain time

    can i set cf to apply if it comes within a ten minute timeframe, i.e. shade a cell red if it comes within ten minues of a time in another cell?

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: cf within certain time

    If the time to be compared to is in column A and the new times are entered in column B all formatted as h:mm and column C formatted as General has =B1-A1. This will produce a decimal time as the difference.

    Enter this in CF formula =AND($C1<>0,$C1<0.006945) choose the format that you want.

    In the applies to enter the formula to cover the range of data that you want formatted. I used =$A$1:$B$10 This will format the row where the time in column B is less than or equal to 10 minutes larger than the time in column A.

    0.006945 was used because 10 minutes is actually 0.0069444444444 etc. of a day so to get 10 minutes I used 0.006945 This is accurate to within a few seconds.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: cf within certain time

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Automatic generation of Start time, end time and total time in excel
    By dreamwarden in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2013, 08:03 PM
  2. Replies: 5
    Last Post: 04-18-2013, 11:31 AM
  3. [SOLVED] Extracted time from date/time field does not flag on =IF(TIME function.
    By Vlad717 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-09-2013, 03:29 PM
  4. Replies: 3
    Last Post: 11-06-2012, 01:37 AM
  5. Replies: 0
    Last Post: 08-23-2005, 12:22 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