Share via

SharePoint List- Calculated column to return 2 different values across 5 date ranges based on Go Live Date

Harry N Nomikos 1,336 Reputation points
2023-06-06T07:40:18.92+00:00

Hi Team

I require a calculated column to return 2 different values across 5 date ranges based on when the Go Live Date is.

I've provided a table below of the date ranges and my expected results. If any task falls outside this date range, I want it to return a value off "No Date Concern"

User's image

Thanks Team,
Harry

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | For business | Windows

Answer accepted by question author

Yanli Jiang - MSFT 31,686 Reputation points Microsoft External Staff
2023-06-09T03:03:13.4566667+00:00

Hi @Harry N Nomikos ,

Thanks for sharing the formula here.

By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others.". and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:

[SharePoint List- Calculated column to return 2 different values across 5 date ranges based on Go Live Date]

Issue Symptom:
I require a calculated column to return 2 different values across 5 date ranges based on when the Go Live Date is.

I've provided a table below of the date ranges and my expected results. If any task falls outside this date range, I want it to return a value off "No Date Concern"

Current status:
I've worked out the formula:

=IF(AND([Go Live Date]>=DATEVALUE("01/09/2023"),[Go Live Date]<=DATEVALUE("30/09/2023")),"Heightened Risk Period",IF(AND([Go Live Date]>=DATEVALUE("01/10/2023"),[Go Live Date]<=DATEVALUE("31/10/2023")),"Heightened Risk Period",IF(AND([Go Live Date]>=DATEVALUE("15/12/2023"),[Go Live Date]<=DATEVALUE("15/01/2024")),"Blackout Period",IF(AND([Go Live Date]>=DATEVALUE("01/02/2024"),[Go Live Date]<=DATEVALUE("29/02/2024")),"Heightened Risk Period",IF(AND([Go Live Date]>=DATEVALUE("01/06/2024"),[Go Live Date]<=DATEVALUE("30/06/2024")),"Blackout Period","No concern to Go Live Date")))))

You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community members to see the useful information when reading this thread. Thanks for your understanding!

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Harry N Nomikos 1,336 Reputation points
    2023-06-07T03:24:41.0633333+00:00

    =IF(AND([Go Live Date]>=DATEVALUE("01/09/2023"),[Go Live Date]<=DATEVALUE("30/09/2023")),"Heightened Risk Period",IF(AND([Go Live Date]>=DATEVALUE("01/10/2023"),[Go Live Date]<=DATEVALUE("31/10/2023")),"Heightened Risk Period",IF(AND([Go Live Date]>=DATEVALUE("15/12/2023"),[Go Live Date]<=DATEVALUE("15/01/2024")),"Blackout Period",IF(AND([Go Live Date]>=DATEVALUE("01/02/2024"),[Go Live Date]<=DATEVALUE("29/02/2024")),"Heightened Risk Period",IF(AND([Go Live Date]>=DATEVALUE("01/06/2024"),[Go Live Date]<=DATEVALUE("30/06/2024")),"Blackout Period","No concern to Go Live Date")))))

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.