Returns HealthRota reporting data into the sheet, with the filters written as one text string.
Syntax
=HEALTHROTA.GET(type, [filters], [columns], [includeHeaders])
Argument | Required | Description |
| Yes | The data type. Use the resource name, such as |
| No | One or more filters, separated by |
| No | Column names, separated by commas, such as |
| No |
|
The result spills down and across from the cell that holds the formula. Keep the cells below and to the right empty, or Excel shows #SPILL!.
Examples
All work items on rotas 1, 2 and 3 from 1 January 2026:
=HEALTHROTA.GET("work_items", "rota_id in 1,2,3; date gte 2026-01-01")
Work items in the first quarter of 2026, with four columns:
=HEALTHROTA.GET("work_items", "date range 2026-01-01,2026-03-31", "id,date,start,end")
Approved timesheet items for two users, with no header row:
=HEALTHROTA.GET("time_sheet_items", "status eq approved; user_id in 10,11", , FALSE)
Build the filter string from cells with HEALTHROTA.CLAUSE and TEXTJOIN:
=HEALTHROTA.GET("work_items", TEXTJOIN("; ", TRUE, HEALTHROTA.CLAUSE("rota_id", "in", A2:A4), HEALTHROTA.CLAUSE("date", "gte", B2)))
Filters
Operators: eq, neq, lt, lte, gt, gte, in, range, contains, starts_with, ends_with.
intakes a comma-separated list:rota_id in 1,2,3.rangetakes exactly two values, lowest first, and includes both:date range 2026-01-01,2026-03-31.Dates can be
2026-01-31or31/01/2026.All filters must match for a row to be returned.
See Filtering reporting data for every operator, how dates are read, and which fields each data type accepts.
Errors
Hover over the error cell to read the message.
Cell shows | Message | What to do |
| Sign in via the HealthRota task pane first | Open HealthRota > Reporting on the Home tab and sign in. |
| Session could not be renewed (...). Sign in again via the HealthRota task pane. | Your sign-in has expired. Sign in again in the task pane. |
| No rows match the filters. | No data matched and there was no header row to show. Check the filters, or set |
| Unknown reporting type "...". | Check the |
| Unknown field "...". Available: ... | Use one of the fields listed in the message. |
| Unknown column "...". Available: ... | Use one of the columns listed in the message. |
| Invalid filter value ... | The value does not fit the field, such as text in a number field. |
Refreshing
The formula runs again when you edit it or a cell it refers to. To get the latest data without changing anything, select HealthRota > Refresh All on the Home tab.
Related
HEALTHROTA.QUERY: the same data, with filters kept in cells.
HEALTHROTA.CLAUSE: build one filter from cells.
