Openoffice Calc Nested If Statement