web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Calculated Column Form...
Power Apps
Unanswered

Calculated Column Formula (Multiple Conditions)

(0) ShareShare
ReportReport
Posted on by 22

I have a calculated Text column 'Status' in the PATROLS SharePoint list.

 

=IF(ISBLANK([Out of Service Date/Time]),"In Service","Out of Service")

 

The current formula, which is working, looks a singular column 'Out of Service Date/Time'. If that value is null, the Status value is "In Service" and if it is not null the Status value is "Out of Service".

 

I would like the formula to consider two date columns 'In Service Date/Time and 'Out of Service Date/Time'

 

If both of the aforementioned value are null, then 'Status' is "Scheduled"

If 'In Service Date/Time' is not null, but 'Out of Service Date/Time is null, then 'Status' is "In Service"

If both 'In Service Date/Time' and 'Out of Service Date/Time' are not null, then 'Status' is "Out of Service"

 

Thank you so much!

Categories:
I have the same question (0)
  • Verified answer
    SebS Profile Picture
    4,582 Moderator on at

    @krispag 

     

    I'm not sure if that will work, but You can try to replace other with whatever You like:

     

    =IF(
     AND(ISBLANK([In Service Date/Time]), ISBLANK([Out of Service Date/Time])),
     "Scheduled",
     IF(
     AND(NOT(ISBLANK([In Service Date/Time])), ISBLANK([Out of Service Date/Time])),
     "In Service",
     IF(
     AND(NOT(ISBLANK([In Service Date/Time])), NOT(ISBLANK([Out of Service Date/Time]))),
     "Out of Service",
     "Other"
     )
     )
    )

     

  • BhaskarDhone Profile Picture
    1,392 Super User 2025 Season 2 on at

    try this something similar to this

    =IF(AND(ISBLANK([In Service Date/Time]), ISBLANK([Out of Service Date/Time])), "Scheduled",
     IF(ISBLANK([Out of Service Date/Time]), "In Service",
     "Out of Service")
    )

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard