+ Reply to Thread
Results 1 to 3 of 3

Custom cell formatting & Completion time based on criteria check

  1. #1
    Registered User
    Join Date
    03-28-2007
    Posts
    16

    Post Custom cell formatting & Completion time based on criteria check

    Good day members,

    I'm currently trying to finalize a report for my department and am running into a rather basic issue.

    I need to calculate the time it took for a task to be completed. The data we extract is in the following format.

    Task type 2 (specified in lets say column D2)
    Task start time: 6/4/2015 23:35 (lets say its in cell A2)
    Task resolution time: 7/24/2015 12:26 (lets say this is in cell B2)

    * I just need to calculate the result in another column (B1-A1 result in C1) and give the result in days, hours and minutes. the typical custom cell formatting method of [h]:mm works here to give me the resolution time in total hours and minutes. however what cell formatting would I need to get this in days, hours and mins. I tried using the cell formatting mm : dd : hh : mm but this gives me an incorrect response. For the query above my result should be roughly 50 days and some hours but when I use the afore-mentioned format I get a result like 02 : 18 : etc : etc (which means two months, 18 days?).

    * The second query is I need to check whether this task was completed within the specified timeline for that particular task. I'd like a formula to match the task type in column D with its specific turnaround time in another table and then give a response based on whether it was completed within the correct time frame or not. the result would just need to be in the form of a true / false answer.

    The second table against which the task type completion time is check could be very simple. there would be one column (lets say column A specifying the task type and the second column would specify the time it must be completed within).

    I've attached a small data file to try and illustrate my query. I hope it sufficient articulates my query.

    Many thanks in advance for any help!
    Attached Files Attached Files

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Custom cell formatting & Completion time based on criteria check

    The custom format [h] will return the number of hours even if greater than 24. If you want to show days, you probably don't want [h] showing more than 24, i.e. 25 hrs would be 1 day and 1:00. The custom format for that is

    d "day(s)" hh:mm

    The results for your data sample are

    31 day(s) 01:00
    0 day(s) 01:21
    0 day(s) 11:34


    For the second question: you need to enter proper time values into the cells B11, B12 and B13, like

    10:00
    100:00:00
    200:00:00

    Now you can use this formula in cell E2 and copy down:

    =IF(C2>VLOOKUP(D2,$A$11:$B$13,2),"outside of time frame","within time frame")

    See attached file.

    cheers, teylyn
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-28-2007
    Posts
    16

    Re: Custom cell formatting & Completion time based on criteria check

    What a prompt response! It worked like a charm. Thank you very much for the help Teylyn

    Much appreciated.

+ 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. [SOLVED] Conditional Formatting - Highlight cell based on two criteria
    By HomerGuy in forum Excel General
    Replies: 3
    Last Post: 01-26-2015, 03:50 PM
  2. macro code to move cell based on time criteria
    By ghynes in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2014, 01:01 PM
  3. [SOLVED] Conditional Formatting with Data Bars - Based on Completion Percentage
    By benwahchang in forum Excel General
    Replies: 9
    Last Post: 11-14-2014, 03:38 PM
  4. [SOLVED] A conditional formatting rule that will highlight a cell based on certain criteria/date
    By FEL2014 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-24-2014, 03:51 PM
  5. Custom Formatting of Time
    By springboardjg in forum Excel General
    Replies: 4
    Last Post: 05-30-2012, 04:35 AM
  6. Replies: 18
    Last Post: 10-23-2009, 11:54 AM
  7. Conditional Formatting based on 3 different cell values (criteria)
    By xlguy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-05-2007, 05:36 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