Fix SharePoint Calculated Column IF and AND Formula Errors
Question details
The user needs to resolve an issue where a SharePoint calculated column returns incorrect or unexpected results when an IF and AND logical formula references a Yes/No column.

- Product
- SharePoint
- Device & OS
- not provided
- Scenario
- Using an IF and AND logical formula within a calculated column to evaluate data from a Yes/No field.
- Observed behavior
- The formula returns incorrect outputs because SharePoint calculates and interprets boolean (Yes/No) field values differently than standard text string values in its formulas.
Ensure you have the necessary List Settings permissions in your SharePoint environment to modify column data types and edit calculated column formulas.
Convert the Yes/No Column to a Choice Column
Replacing the boolean Yes/No field with a text-based Choice column ensures that logical formulas evaluate the text strings accurately without conversion errors.
SharePoint calculated columns often mishandle boolean values (Yes/No) when nested inside complex IF and AND logical functions. By changing the data type to explicitly evaluate text strings, the formula can process the logic correctly.
Note that changing a column type may affect existing data, so ensure you review your list entries after making this modification.
Navigate to your SharePoint list, click the gear icon in the top right corner, and select 'List settings'.
Scroll down to the Columns section and click on the specific Yes/No column that is causing the formula issue.
Under 'The type of information in this column is', select 'Choice (menu to choose from)' to convert the column format.
In the choices text box, type 'Yes' on the first line and 'No' on the second line. Scroll to the bottom and click 'OK' to save the changes.
Open your calculated column settings and update the IF and AND formula to compare the text values. For example: IF(AND([ColumnName]="Yes", [OtherColumn]="Yes"), "Result A", "Result B").
Create or edit a list item to test all logical combinations (e.g., QA Results and Coaching Complete) to verify the calculated column now returns the correct text.

Manage Data flawlessly with WPS Spreadsheet
While SharePoint lists are useful for web-based collaboration, dealing with its rigid calculated formulas can be frustrating. For advanced data management, seamless IF/AND formula execution, and in-depth analysis, try WPS Office. It provides a lightweight, highly compatible, and free environment for all your spreadsheet and data needs.
- 1. Download WPS Office: Visit the official WPS Office website to download and install the free software suite.
- 2. Import Your Data: Export your SharePoint list to an Excel file, then open it seamlessly in WPS Spreadsheet.
- 3. Apply Logical Formulas: Use standard IF and AND functions to calculate your data accurately without worrying about boolean conversion errors.

Frequently Asked Questions
Can I use a Yes/No column directly in a SharePoint calculated column?
Yes, but you must refer to the boolean values without quotes (e.g., [ColumnName]=TRUE or [ColumnName]=FALSE) rather than using text strings like 'Yes' or 'No'. However, this can still cause unexpected behavior when nested in complex AND/OR formulas.
Why does my IF formula return a syntax error in SharePoint?
Syntax errors typically occur if the formula references a deleted or misspelled column, includes unmatched parentheses, or uses incorrect separators. Depending on your region settings, you may need to use semicolons (;) instead of commas (,) in your formulas.
How can I troubleshoot complex calculated column formulas?
The best approach is to break the formula into smaller pieces. Test one logical condition at a time in a temporary calculated column. Once each individual part returns the expected result, combine them using your IF and AND statements.




