+ Reply to Thread
Results 1 to 7 of 7

Return comment/Status based on time criteria

  1. #1
    Registered User
    Join Date
    02-18-2022
    Location
    Worcestershire, England
    MS-Off Ver
    2021
    Posts
    2

    Return comment/Status based on time criteria

    Hi All,

    A newbie here and I am after someones help.

    I have a sheet of data

    Column J shows time of completion of something in hours
    Row 2 - 2226.28
    Row 3 - 919.30
    Row 4 - 265.02
    Row 5 - 24.10
    Row 6 - 24.15
    Row 7 - 24.01
    Row 8 - 17.40
    and so on

    How do I show in column L (which is a blank column) something which looks at column J Row 2 and sees value 2226.28 and returns a statement of "Outside SLA"
    Row 3 returns "Outside SLA"
    Row 5 "Within SLA"
    Row 8 "Ahead of SLA"

    My parameters need to look at the hours and decided what is inside SLA (so more than 24hrs but less than 48hrs returns "within SLA", Less than 24hrs returns "Ahead of SLA", anything more than 48hrs returns "Outside SLA"

    I have values in column J which exceed several thousand hours hence why the example above is so varied but the formula needs to look at the value and decide what text to return based on the criteria.

    Any help someone can provide is greatly appreciated, I think I need an IF statement but am honestly not sure.

    Thank you in advance
    Attached Files Attached Files
    Last edited by BigStuBigStu; 02-18-2022 at 05:51 PM. Reason: Admin Request

  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. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,886

    Re: Return comment/grading based on time criteria

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    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 Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,830

    Re: Return comment/Status based on time criteria

    nested IF() is one way

    (so more than 24hrs but less than 48hrs returns "within SLA", Less than 24hrs returns "Ahead of SLA", anything more than 48hrs returns "Outside SLA"
    IF( J2 > 48, "Outside SLA", IF( J2 > 24 , "within SLA", "Ahead of SLA"))

    You can add a = if the 24 or 48 is included

    IF( J2 >= 48, "Outside SLA", IF( J2 >= 24 , "within SLA", "Ahead of SLA"))

    so 24 & 48 included as within SLA would be

    IF( J2 > 48, "Outside SLA", IF( J2 >= 24 , "within SLA", "Ahead of SLA"))
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,886

    Re: Return comment/Status based on time criteria

    Another option:

    =LOOKUP(A2,{0,24,48},{"Ahead of","Within","Outside"})&" SLA"

  5. #5
    Registered User
    Join Date
    02-18-2022
    Location
    Worcestershire, England
    MS-Off Ver
    2021
    Posts
    2

    Re: Return comment/Status based on time criteria

    thank you so much

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,830

    Re: Return comment/Status based on time criteria

    you are welcome

  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. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,886

    Re: Return comment/Status based on time criteria

    My pleasure.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. Basic guideline required - Formatting
    By Deverti in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-04-2020, 10:55 AM
  2. Need assistance with my Basic Employee attendance Point Tracker
    By hungboxer in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-04-2019, 04:49 PM
  3. Replies: 33
    Last Post: 02-23-2018, 05:59 AM
  4. Basic Button Required, 'add new row to bottom of table'
    By Andrew E Smith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-14-2012, 10:43 AM
  5. Help Please ... Visual basic advice required
    By ZARAKIAN_58 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2011, 03:29 PM
  6. Basic counting formula required
    By lukevl in forum Excel General
    Replies: 6
    Last Post: 05-25-2009, 09:02 AM
  7. Very basic Information Required!!!
    By vikas.bhandari in forum Excel General
    Replies: 5
    Last Post: 12-22-2006, 08:33 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