Javascript Array Add If Condition In Excel