Taming the Elusive “Calculated Column” – Logic – Part 7
The truth, the whole truth “AND/OR” nothing but the truth
The “AND” function is similar to the “OR” function in that it will look at up to 30 different values for comparison, but it’s difference is that in order for the final “Result” to be “TRUE”, each and every condition must be true in the entire check or the end result will always be “FALSE”.
It’s important to understand this difference because it will influence the choice in their usage (deciding between OR/AND) and how your logic will be built.
Before we look at our “Truth Table” to see how the different combinations of values will produce results when using the “AND” function, we need to reevaluate the conditions we’re checking. If we were to look at the “Truth Table” now, before modifying our conditions, the only combination of values that would ever cause an employee to receive a paycheck would be if they had actually done all three, so let’s modify things a little before examining the table.
We know that in order for an employee to be issued a paycheck, they must first be in the system as an actual “Employee”, so we’ll use this as our first condition to check.
“Employee”
Next, we know (based on the last article with the usage of the “OR” function) that in order for the employee to be issued a paycheck, they must have some sort of record of time to track how many hours they need to be paid for. This is in the form of three possible records:
“Regular Hours”
“Vacation”
“Sick Leave”
Since we’re not quite at the point where we can “merge” the “OR” function and the “AND” function (coming shortly), let’s just look at three different versions of the “Truth Table” that will process each type of hours tracked:



Notice in all three that the only time the end result is “TRUE” is when both conditions are true as well:
Person is “Employee” and has worked “Regular Hours” = “TRUE” (Issue paycheck)
Person is “Employee” and has taken “Vacation” = “TRUE” (Issue paycheck)
Person is “Employee” and has submitted “Sick Leave” = “TRUE” (Issue paycheck)
In all other cases in each table, at least one of the conditions is “FALSE”, so the end result is also “FALSE”.
Next, we’ll look at combining the “AND” function with the “OR” function in order to test for each of the three possible type of hourly tracking in the same table.
- Dessie
Dessie Lunsford
Points-of-Sharing
- Taming the Elusive "Calculated Column"
- EndUserSharePoint.com: Taming the Elusive "Calculated Column" - Customizing a Task List
- EndUserSharePoint.com: Taming the Elusive “Calculated Column” - Customizing a Task List (Part II)
- EndUserSharePoint.com: Taming the Elusive “Calculated Column” - Customizing a Task List (Part III)
- EndUserSharePoint.com: Taming the Elusive “Calculated Column” - Customizing a Task List (Part IV)
- EndUserSharePoint.com: Taming the Elusive “Calculated Column” - Text and Data
- EndUserSharePoint.com: Taming the Elusive "Calculated Column" - Customizing a Contacts List (Part I)
- EndUserSharePoint.com: Taming the Elusive "Calculated Column" - Customizing a Contacts List (Part II-I)
- EndUserSharePoint.com: Taming the Elusive “Calculated Column” - Customizing a Contacts List (Part II-II)
- EndUserSharePoint.com: Taming the Elusive “Calculated Column” - Customizing a Contacts List (Part II-III)
- EndUserSharePoint.com: Taming the Elusive “Calculated Column” – Text and Data (Part III)
- EndUserSharePoint.com: Taming the Elusive “Calculated Column” – Text and Data (Part IV)
- EndUserSharePoint.com: Taming the Elusive “Calculated Column” – Text and Data (Part V)
- EndUserSharePoint.com: Taming the Elusive “Calculated Column” – Text and Data (Part VI)
- Taming the Elusive “Calculated Column” – Lookup and Reference
- Taming the Elusive “Calculated Column” - Logic
- Taming the Elusive “Calculated Column” - Logic - Part 1
- Taming the Elusive “Calculated Column” - Logic - Part 2
- Taming the Elusive “Calculated Column” - Logic - Part 3
- Taming the Elusive “Calculated Column” - Logic - Part 4
- Taming the Elusive “Calculated Column” - Logic - Part 5
- Taming the Elusive “Calculated Column” - Logic - Part 7
- Taming the Elusive “Calculated Column” - Logic - Part 6
- Taming the Elusive “Calculated Column” - Logic - Part 8
- Taming the Elusive “Calculated Column” - Logic - Part 9
- Taming the Elusive “Calculated Column” - Logic - Part 10
- Taming the Elusive “Calculated Column” - Date and Time - Part 1
- Taming the Elusive “Calculated Column” - Date and Time - Part 2
- Taming the Elusive “Calculated Column” - Date and Time - Part 3
- Taming the Elusive “Calculated Column” - Date and Time - Part 4
- Taming the Elusive “Calculated Column” - Referencing Multiple Lines of Text Column
- Taming the Elusive “Calculated Column” – Date and Time – Part 5
- Taming the Elusive “Calculated Column” – Date and Time – Part 6
- Taming the Elusive “Calculated Column” – Date and Time – Part 7
- Taming the Elusive "Calculated Column" - Referencing a Multiple Lines of Text Column With Append Text: Part 1
- Taming the Elusive "Calculated Column" - Referencing a Multiple Lines of Text Column With Append Text: Part 2
- Taming the Elusive "Calculated Column" - Referencing a Multiple Lines of Text Column With Append Text: Part 3







