I want to filter negative values, positive values and zeros separately using office scripts. Below excel sheet "Difference" column has negative/positive/zeros. What I want is,
- Filter Negative values and add certain data(Yes) to "Status" column
- Filter Positive values and add certain data(No) to "Status" column
- Filter Zeros and add certain data(Not Applicable) to "Status" column
Any help would be greatly appreciated.
You don't need to filter the table. It can be done more efficiently using an array.
Simplified with
conditional (ternary) operator