(See Example 3 for a sample of nested IF functions.) Alternatively, to test many conditions, consider ...
office.microsoft.com