К тексту на этой странице мог быть частично применён машинный перевод.

Функция ISBOOLEAN

Checks whether a value is a boolean (e.g., checkbox, flag, or star)

Синтаксис

ISBOOLEAN(value)
  • значение
    The value, typically within a cell, to check

Пример использования

IF(ISBOOLEAN(Done@row); "Cell contains a boolean value"; "Cell doesn’t contain a boolean value")

Примечания об использовании

  • This function is typically used inside of another function (e.g., IF, COUNTIF, or SUMIF)

Примеры

ISBOOLEAN is most useful when evaluating if a checkbox column has something else written in it.

It's asking if something other than a checkbox has been typed in there, so it's true if the field is still a checked or unchecked box and false if it's some other text value.

Example 1

Calculate the percent of checkboxes that are checked. Fields with text entered are excluded from the calculation.

=COUNTIF([Check1]@row:[Check3]@row, 1) / COUNTIF([Check1]@row:[Check3]@row, ISBOOLEAN(@cell))

Brandfolder Image
ISBOOLEAN example 1

Example 2

Set the flag to red if any checkboxes in the range have a text value. If a non-boolean value is entered into a field, this could trigger alerts or update requests.

=COUNTIF([Check1]@row:[Check3]@row, NOT(ISBOOLEAN(@cell))) > 0

Brandfolder Image
ISBOOLEAN example 2

Остались вопросы?

If you have an Enterprise plan, you can use AI to help write and troubleshoot formulas.

Используйте шаблон Руководство по работе с формулами, чтобы просмотреть дополнительные ресурсы и изучить более 100 формул. Руководство содержит глоссарий, описывающий каждую функцию, обращение с которой вы сможете отработать на практике, и примеры как часто используемых, так и более сложных функций.

Изучить примеры того, как эту функцию применяют другие пользователи Smartsheet, или задать интересующий вопрос можно в Сообществе Smartsheet.

Обратиться к Сообществу