Builds one filter as text, in the form HEALTHROTA.GET expects, from a field, an operator and a value. Use it to build filters from cells instead of typing the filter text yourself. It does not fetch data and does not need you to be signed in.
Syntax
=HEALTHROTA.CLAUSE(field, op, value)
Argument | Required | Description |
| Yes | The field to filter on, such as |
| Yes | The operator: |
| Yes | A value, or a range of cells. For |
Examples
Formula | Result |
|
|
|
|
|
|
A date-formatted cell gives its Excel serial number, such as date gte 46023. HEALTHROTA.GET converts the serial number to the date when it runs, so the filter still works, but the clause text is harder to read.
Join several filters with TEXTJOIN and pass them to HEALTHROTA.GET:
=HEALTHROTA.GET("work_items", TEXTJOIN("; ", TRUE, HEALTHROTA.CLAUSE("rota_id", "in", A2:A4), HEALTHROTA.CLAUSE("date", "gte", B2)))
HEALTHROTA.QUERY reads filters straight from Field, Operator and Value cells, so it does not need HEALTHROTA.CLAUSE.
Errors
The cell shows #VALUE! when the field is empty or the operator is not in the list above. Hover over the cell to read the message.
HEALTHROTA.CLAUSE does not check the value. A missing value, an empty in list, or a range without exactly two values is reported by HEALTHROTA.GET when it uses the clause.
Related
