SharePoint List Calculated Column-Flag any Off Phone activity that occurs during a Heightened risk & Blackout period across 5 different Start Date & End Dates.

Harry N Nomikos 1,311 Reputation points
2023-06-09T01:09:57.06+00:00

Hi Team

I require a calculated column to flag any Off Phone activity that occurs during a Heightened risk & Blackout period across 5 different Start Date & End Dates.

Below is the Heightened Risk & Blackout Period date ranges

User's image

Below is my expected results with the column names that would need to be used.User's image

If the "Readiness-Off the Tools" column returns;

"Off the Tools"- and falls within the above date ranges= "Off the tools during Blackout & Heightened Risk Period" (Refer to the Yellow coloured cell under the Expected Result column)

"Off the Tools"- and falls outside the above date ranges=Off the tools-outside the Blackout & Heightened Period or comms only (Refer to the Blue coloured cell under the Expected Result column)

"Comms Only" and falls within the above date ranges=Off the tools-outside the Blackout & Heightened Period or comms only (Refer to the Blue coloured cell under the Expected Result column)

"Comms Only" and falls outside the above date ranges=Off the tools-outside the Blackout & Heightened Period or comms only (Refer to the Blue coloured cell under the Expected Result column)

Regards,
Harry

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,392 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,931 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 48,011 Reputation points Microsoft Vendor
    2023-06-09T06:45:30.9566667+00:00

    Here is a formula for you:

    =IF([Readiness-Off the Tools]="Off the Tools",IF(OR(OR(AND([End Date-(RA1)]>DATE(2023,9,1),[End Date-(RA1)]<DATE(2023,9,30)),AND([End Date-(RA1)]>DATE(2023,10,1),[End Date-(RA1)]<DATE(2023,10,31)),AND([End Date-(RA1)]>DATE(2023,12,15),[End Date-(RA1)]<DATE(2024,1,15)),AND([End Date-(RA1)]>DATE(2024,2,1),[End Date-(RA1)]<DATE(2024,2,29)),AND([End Date-(RA1)]>DATE(2024,6,1),[End Date-(RA1)]<DATE(2024,6,30))),OR(AND([End Date-(RA2)]>DATE(2023,9,1),[End Date-(RA2)]<DATE(2023,9,30)),AND([End Date-(RA2)]>DATE(2023,10,1),[End Date-(RA2)]<DATE(2023,10,31)),AND([End Date-(RA2)]>DATE(2023,12,15),[End Date-(RA2)]<DATE(2024,1,15)),AND([End Date-(RA2)]>DATE(2024,2,1),[End Date-(RA2)]<DATE(2024,2,29)),AND([End Date-(RA2)]>DATE(2024,6,1),[End Date-(RA2)]<DATE(2024,6,30))),OR(AND([End Date-(RA3)]>DATE(2023,9,1),[End Date-(RA3)]<DATE(2023,9,30)),AND([End Date-(RA3)]>DATE(2023,10,1),[End Date-(RA3)]<DATE(2023,10,31)),AND([End Date-(RA3)]>DATE(2023,12,15),[End Date-(RA3)]<DATE(2024,1,15)),AND([End Date-(RA3)]>DATE(2024,2,1),[End Date-(RA3)]<DATE(2024,2,29)),AND([End Date-(RA3)]>DATE(2024,6,1),[End Date-(RA3)]<DATE(2024,6,30))), OR(AND([End Date-(RA4)]>DATE(2023,9,1),[End Date-(RA4)]<DATE(2023,9,30)),AND([End Date-(RA4)]>DATE(2023,10,1),[End Date-(RA4)]<DATE(2023,10,31)),AND([End Date-(RA4)]>DATE(2023,12,15),[End Date-(RA4)]<DATE(2024,1,15)),AND([End Date-(RA4)]>DATE(2024,2,1),[End Date-(RA4)]<DATE(2024,2,29)),AND([End Date-(RA4)]>DATE(2024,6,1),[End Date-(RA4)]<DATE(2024,6,30))),OR(AND([End Date-(RA5)]>DATE(2023,9,1),[End Date-(RA5)]<DATE(2023,9,30)),AND([End Date-(RA5)]>DATE(2023,10,1),[End Date-(RA5)]<DATE(2023,10,31)),AND([End Date-(RA5)]>DATE(2023,12,15),[End Date-(RA5)]<DATE(2024,1,15)),AND([End Date-(RA5)]>DATE(2024,2,1),[End Date-(RA5)]<DATE(2024,2,29)),AND([End Date-(RA5)]>DATE(2024,6,1),[End Date-(RA5)]<DATE(2024,6,30)))),"Off the tools during Blackout & Heightened Risk Period","Off the tools-outside the Blackout & Heightened Period or comms only"),"Off the tools-outside the Blackout & Heightened Period or comms only")

    Result:

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

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