Javascript Ternary Operator With Two Conditions In Excel