Typescript Find Element In Nested If Syntax Excel