Taming the Elusive “Calculated Column” – Logic – Part 5
The Final List
In our list, we need to add in our additional two “Question” columns so create two more “Choice” columns (in the same fashion as the existing “Hungry” and “Thirsty” columns) called “Tired” and “Sick”.
Modify the “Column Ordering” to display the items on the “New Item” form in the correct order:

Modify your view to display the fields in the same order:

Create several items on the list to cover the range of all possible answers (Hint – use the “Truth Table” as a reference when creating the items):

Based on our “Truth Table”, we can see that our logic does indeed catch each and every possible result (with the addition of displaying a result even if fields were skipped).
Conclusion
So what do we do with all of this? What I’ve shown are obviously just simple examples using questions that aren’t exactly “Business Data”, but hopefully they will still serve as a foundation for how to begin building out formulas for your own needs.
Using the method of building out a “Truth Table” then a “Flowchart” for each and every nested formula may not always be the best approach for you given the time it takes to build them out, but as the complexity of your formulas increase, you might find that having them can decrease the “headache-time” of debugging and troubleshooting when your logic goes awry.
Hints:
- Use Excel to quickly build out a “Truth Table” when needed (since it’s nothing more than columns and rows anyway)
- And Visio (or a piece of scratch paper in a pinch) for quickly building hierarchical flowcharts (OpenOffice.org is another great option if you don’t have the budget for MS Office).
Unfortunately, I wasn’t able to get into the alternate use of the “AND” and “OR” functions for testing multiple conditions in an “IF” formula (that was my original plan), but that is next on my list so I’ll make sure and cover those in the next article.
Till next time…
- 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
Hi,
If a column say column 1 is equal to a particular value then I need to use Veiw1 otherwise need to use View2.
Is is possible to use views in a calulated column?
While the formulas for calculating values within a list item make sense from a flat database standpoint, can SharePoint leverage the values from other rows in a list, or a site column cumulative value, to calculate on a variable? The challenge I’m facing is to update a remaining budget amount on successive items in a list. In other words, I need to reference the remaining budget as of the previous list item and calculate based on a new expense in the current line. Can SharePoint point to a value in an other row the way Excel can target a cell address?