+ Reply to Thread
Results 1 to 15 of 15

Multiple Conditions based on blanks/non-blanks and dates

  1. #1
    Registered User
    Join Date
    09-28-2021
    Location
    london uk
    MS-Off Ver
    Office 365
    Posts
    55

    Multiple Conditions based on blanks/non-blanks and dates

    Hello. I've had so much help with a spreadsheet in the last 24 hours and think I've got stuck at the final hurdle! In our business, when a customer request is logged, a team has a target to close out the request by the end of the following working day.

    In the attached sample, the formula in column M is not performing the right operation because it doesn't consider requests that are still open (i.e., blank cell in column J).

    I need column M to result in a 'No' if the following conditions apply:

    EITHER
    - The cell in column L is >2
    OR
    - The cell in column L is blank AND the date in cell B2 (today) is beyond the end of the day after the date in column I. (For example, if a call was logged 28/09/2021 08:50:00 and is still open, it has missed SLA and should have a 'No' in column M.

    Goodness...I hope that makes sense! Can anyone help, please? Promise it's my last question
    Attached Files Attached Files
    Last edited by clari55a; 10-01-2021 at 10:46 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,445

    Re: Multiple Conditions based on blanks/non-blanks and dates

    Hi,
    Does this help?

    M3=IF(OR(L3>2,AND(ISBLANK(L3),$B$1>I3)),"No","Yes")
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    09-28-2021
    Location
    london uk
    MS-Off Ver
    Office 365
    Posts
    55

    Re: Multiple Conditions based on blanks/non-blanks and dates

    Thanks for helping me It's not quite right, I don't think. For example, row 4 in the sample shouldn't be a 'No' as we're not yet at the end of the day. It should only become a 'No' on Monday...

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,362

    Re: Multiple Conditions based on blanks/non-blanks and dates

    This seems to be what you have described:

    =IF(OR(L3>2,AND(L3="",$B$1>INT(I3)+1)),"No","Yes")
    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.

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,362

    Re: Multiple Conditions based on blanks/non-blanks and dates

    Quote Originally Posted by clari55a View Post
    Thanks for helping me It's not quite right, I don't think. For example, row 4 in the sample shouldn't be a 'No' as we're not yet at the end of the day. It should only become a 'No' on Monday...
    When you provide a sample workbook, you should mock up a column with the results you want. Do this manually, please, and reattach your workbook.

  6. #6
    Registered User
    Join Date
    09-28-2021
    Location
    london uk
    MS-Off Ver
    Office 365
    Posts
    55

    Re: Multiple Conditions based on blanks/non-blanks and dates

    Thanks. I have reattached with the expected results. I'd expect cells to remain blank for requests logged yesterday, as we're not yet past the end of the following working day (i.e., today).

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,362

    Re: Multiple Conditions based on blanks/non-blanks and dates

    Does this get closer (done before looking at your workbook)?

    =IF(OR(AND(L3<>"",L3>2),AND(L3="",$B$1>WORKDAY.INTL(INT(I3)+1,1,1))),"No","Yes")

  8. #8
    Registered User
    Join Date
    09-28-2021
    Location
    london uk
    MS-Off Ver
    Office 365
    Posts
    55

    Re: Multiple Conditions based on blanks/non-blanks and dates

    Unfortunately not, but thank you so much. I think maybe I should add another column that calculates the deadline based on the column that shows when the request was logged. I can then ask column M to state 'No' column L is blank AND today's date is later than the deadline.

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,362

    Re: Multiple Conditions based on blanks/non-blanks and dates

    OK - what you are saying and what you are showing do not seem to be completely in sync, so from my point of view, not fully following what you want, I'd suggest you add a column with the deadline date manually calculated.

    You also need to clarify WHEN you want a result to show and WHEN you want the cell to remain blank.

    It might be worth talking us through the five examples you have given in the workbook.

  10. #10
    Registered User
    Join Date
    09-28-2021
    Location
    london uk
    MS-Off Ver
    Office 365
    Posts
    55

    Re: Multiple Conditions based on blanks/non-blanks and dates

    Apologies. Let me talk through it...

    The formula you provided above works correctly on rows 3, 5 and 7. However, I'd expect row 4, 6 & 8 to have a blank in column M because it's not yet completed AND we are still within target (they could complete the request today still). If it's still not showing as completed when the data is run on Monday, it would turn in to a 'No' because they have now passed the deadline of completing it by the end of the following working day.

  11. #11
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,362

    Re: Multiple Conditions based on blanks/non-blanks and dates

    Can you do as i asked? Provide a copy of the workbook with the following columns added manually:

    1. Expected results.
    2. The deadline date that needs to be used in the calculation.
    3. A brief description of why that row needs the outcome stipulated in point 1.

    We are going to go round in circles otherwise, and one of us (probably me!) will end up getting pretty frustrated.

  12. #12
    Registered User
    Join Date
    09-28-2021
    Location
    london uk
    MS-Off Ver
    Office 365
    Posts
    55

    Re: Multiple Conditions based on blanks/non-blanks and dates

    I have added what you've requested and highlighted those additions in grey

  13. #13
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,362

    Re: Multiple Conditions based on blanks/non-blanks and dates

    Try this:

    =IF(AND(J3="",TODAY() > WORKDAY.INTL(INT(I3)+0.99999,1,1)+0.99999),"No",IF(J3="","",IF(J3 < WORKDAY.INTL(INT(I3)+0.99999,1,1)+0.99999,"Yes","No")))

  14. #14
    Registered User
    Join Date
    09-28-2021
    Location
    london uk
    MS-Off Ver
    Office 365
    Posts
    55

    Re: Multiple Conditions based on blanks/non-blanks and dates

    Thank you so much. This works

  15. #15
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,362

    Re: Multiple Conditions based on blanks/non-blanks and dates

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

    Also, 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. Replies: 2
    Last Post: 12-26-2019, 03:47 PM
  2. Replies: 1
    Last Post: 08-06-2019, 10:43 PM
  3. [SOLVED] Excel formula skip blanks with multiple conditions.
    By Abdur_rahman in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-06-2019, 01:31 AM
  4. BLANKS (Not Really Blanks) AND Rearrange ignoring blanks
    By shivspatil in forum Excel General
    Replies: 4
    Last Post: 02-02-2018, 08:28 AM
  5. [SOLVED] max if multiple conditions, ignoring blanks
    By robotlust in forum Excel General
    Replies: 6
    Last Post: 05-29-2012, 07:38 PM
  6. [SOLVED] Need No Blanks List based on two conditions
    By Chaturanga in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-30-2005, 12:05 AM
  7. [SOLVED] How do I sum multiple columns counting including blanks and dates
    By BK99 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2005, 06:05 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