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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / SharePoint calculated ...
Power Apps
Answered

SharePoint calculated field

(0) ShareShare
ReportReport
Posted on by 66

Hi All,

I am struggling writing the formula for SharePoint calculated column.

I have 3 SharePoint Columns:
[Vaccination date];
[Infected] - Yes/No choice;
[No testing is not needed (date)]
In column [No testing is not needed (date)] I would like to calculate the date a person does not need to get tested, which means I would like to add 14 days to the [Vaccination date] if the person was infected.

I have been using the following formula:
=IF([Infected]="Yes";[Vaccination date]+14;"")

This formula seems to work only when both columns are not blank. If one of the columns is not, then I get the default date "1900-01-13".

Any suggestions?

Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @ekoz21 :

    Please try:

    =IF(Infected,IF([Vaccination date]="","",[Vaccination date]+14),"")

    I've made a test for your reference:

    vbofengmsft_1-1629351558935.png

     

    vbofengmsft_0-1629351531332.png

    Best Regards,

    Bof

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard