Java Program Using Nested If Function Excel