The use of IF, AND and OR in one formula can at times be rather confusing when one isn't used to how to put these elements together so that they make sense.
This file has several examples with explanations. I have intentionally left out the use of ARRAY CONSTANTS to keep it simple for those just starting out.
Bookmarks