+ Reply to Thread
Results 1 to 5 of 5

Help with a formula using values that are minutes and seconds

  1. #1
    Registered User
    Join Date
    11-18-2018
    Location
    Murfreesboro, TN
    MS-Off Ver
    Office 365
    Posts
    13

    Question Help with a formula using values that are minutes and seconds

    Hello all, I can't get the formula below to work:
    =IFS(F21<5," AN AMAZING",F21<6," AN EXCELLENT",F21<7,"A GOOD",F21<10,"A NOT GOOD",F21>=10,"A REALLY NOT GOOD")

    The value of F21 is 7:17

    The answer that I am getting is: "A REALLY NOT GOOD" when it should be "A NOT GOOD" based on the formula.

    Can someone please help?
    Thank you!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: Help with a formula using values that are minutes and seconds

    You should be aware that time values in Excel are stored as fractions of a 24-hour day, so that 12:00:00 is represented internally as the value 0.5, and 6:00:00 as 0.25. If your value of 7:17 is meant to represent minutes and seconds, then it will actually be a much smaller fractional value.

    I suspect, however, that the value 7:17 has actually been stored as a text value that just happens to look like it could be in minutes and seconds.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Help with a formula using values that are minutes and seconds

    Instead of comparing F21 with a number, you can try replacing all F21 with Hour(F21).
    Also, you need nested IFs. The =IFS is not a valid function.
    Here's what the formula you can use. It should work.

    HTML Code: 
    1. Click on the * Add Reputation if you think this helped you
    2. Mark your thread as SOLVED when question is resolved

    Modytrane

  4. #4
    Registered User
    Join Date
    11-18-2018
    Location
    Murfreesboro, TN
    MS-Off Ver
    Office 365
    Posts
    13

    Re: Help with a formula using values that are minutes and seconds

    this thread is solved now

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Help with a formula using values that are minutes and seconds

    cbenner, you can mark your threads solved by clicking on the THREAD TOOLS towards the top of the screen - I will do this 1 for you.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Convert seconds to years, months, days, hours, minutes snd seconds
    By Tresfjording in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-14-2022, 12:55 AM
  2. Convert decimal minutes and seconds into total seconds
    By shauneyd in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-29-2018, 08:50 AM
  3. [SOLVED] Seconds to hours:minutes:seconds format
    By dalipsinghbisht in forum Excel General
    Replies: 1
    Last Post: 05-12-2013, 12:10 AM
  4. [SOLVED] Formula for Minutes and Seconds
    By DDM64 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-07-2013, 03:43 PM
  5. convert from seconds to form hours: minutes: seconds?
    By nguyen_han in forum Excel General
    Replies: 2
    Last Post: 10-13-2011, 06:56 AM
  6. Replies: 4
    Last Post: 01-18-2010, 04:29 AM
  7. Minutes and Seconds Formula
    By excelnewbie in forum Excel General
    Replies: 6
    Last Post: 04-29-2005, 07:06 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