Applying Nested IF functions in Excel.