By: Shamima Sultana

In reply to jeremy.

Hello Jeremy,

1. The “” at the end of the formula in the article is the value_if_false for the IF function. It ensures that when a row does not meet the criteria, an empty string is returned, which STDEV.S ignores in the calculation.

2. Criteria need to be in quotes when you are testing for text values or when using operators inside functions like SUMIFS. For numbers in an IF condition, do not use quotes (for example, S2:S295>=-6). For text, quotes are required (for example, K2:K295=”Yes”).

3. If the multiple IFs formula gives an error, common reasons are:
3.1. The ranges are not the same size.
3.2. In older versions of Excel, the formula is not entered as an array formula using Ctrl+Shift+Enter.
3.3. Your Excel version uses semicolons instead of commas as list separators.

The formula you provided:
=STDEV.S(IF((S2:S295>=-6)*(K2:K295=1),F2:F295))
It works correctly for the AND condition explained in the article. In Excel 365, you can also use:
=STDEV.S(FILTER(F2:F295,(S2:S295>=-6)*(K2:K295=1)))
Hope this clarifies your queries.

Regards
ExcelDemy