+ Reply to Thread
Results 1 to 10 of 10

Read column that is formatted as hh:mm:ss and determine whether that column has failed

  1. #1
    Registered User
    Join Date
    05-29-2019
    Location
    Seattle, Washington
    MS-Off Ver
    Student
    Posts
    6

    Question Read column that is formatted as hh:mm:ss and determine whether that column has failed

    I am attempting to create a spreadsheet that reads one column that is formatted as hh:mm:ss and determine whether that column has failed a timed event. anything above 00:02:00 would be a fail and anything below or equal to 00:02:00 would be a pass. The formula I am trying to use is =IF(L2<=00:02:00,"Pass",IF(L2>00:02:00,"Fail")), L being the column the time is in.

    Can somebody explain to me why this isn't working and offer any solutions that may?
    Attached Files Attached Files
    Last edited by bvred; 05-29-2019 at 04:58 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Read column that is formatted as hh:mm:ss and determine whether that column has failed

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Read column that is formatted as hh:mm:ss and determine whether that column has failed

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.

  4. #4
    Registered User
    Join Date
    05-29-2019
    Location
    Seattle, Washington
    MS-Off Ver
    Student
    Posts
    6

    Re: Read column that is formatted as hh:mm:ss and determine whether that column has failed

    I will attach an example now, although I had to remove most of the information due to proprietary information. Essentially though, I am trying to get the Pass/Fail Column to read the Age Column and determine if the time passes <= 00:02:00 or fails > 00:02:00

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Read column that is formatted as hh:mm:ss and determine whether that column has failed

    Why did you change my edited thread title back to the useless title you had before? Please do NOT post-edit changes made by a moderator!

    Thanks for the sample workbook. Someone will take a look shortly.

  6. #6
    Registered User
    Join Date
    05-29-2019
    Location
    Seattle, Washington
    MS-Off Ver
    Student
    Posts
    6

    Re: Read column that is formatted as hh:mm:ss and determine whether that column has failed

    I'm new here, I changed it because you posted this:

    "Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve)."

    I thought you were asking me to change it.

    I missed your note.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Read column that is formatted as hh:mm:ss and determine whether that column has failed

    Please read points 1 and 2 of my sample workbook instructions again, and then provide a sample workbook that resembles your real data. A workbook with only a column of times with no indication of what you want and what the nature of the other data is is of no use at all, I am afraid. In your current sample there is no formula, no eexpected outcome, nothing that we can use to help you at all.

  8. #8
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Read column that is formatted as hh:mm:ss and determine whether that column has failed

    Try

    =IF(L2<=TIME(0,2,0),"Pass","Fail")

    00:02:00 is not a time when it is entered into a formula, it needs to be coerced.

    edit:-

    For clarification, 2 numbers separated by a colon in a formula equate to a range of rows (12:15 = Rows 12 to 15, not 12:15 PM) the same thing wtith 3 numbers (or if one of the numbers is 0 or 00), as in your attempt, results in an invalid range, which is why excel will not accept the formula.
    Last edited by jason.b75; 05-29-2019 at 04:57 AM.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Read column that is formatted as hh:mm:ss and determine whether that column has failed

    Good spot, Jason - I missed the bleeding obvious (not for the first time ...)!!! :D

  10. #10
    Registered User
    Join Date
    05-29-2019
    Location
    Seattle, Washington
    MS-Off Ver
    Student
    Posts
    6

    Re: Read column that is formatted as hh:mm:ss and determine whether that column has failed

    Thank you, that is what I needed.

+ 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. Replies: 3
    Last Post: 01-10-2019, 09:34 AM
  2. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  3. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  4. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  5. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  6. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

Tags for this Thread

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