Skip to main content

Excel Formula: HEALTHROTA.GET

Returns HealthRota reporting data, with the filters written as one text string.

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

type

Yes

The data type. Use the resource name, such as "work_items", or the name shown in the task pane's Data type list, such as "WorkItems".

filters

No

One or more filters, separated by ;. Each filter is field operator value, such as "rota_id in 1,2,3; date gte 2026-01-01". Leave it out to return every row you have access to.

columns

No

Column names, separated by commas, such as "id,date,user_id". Leave it out to return every column.

includeHeaders

No

TRUE (the default) puts the column names in the first row. FALSE leaves them out.

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.

  • in takes a comma-separated list: rota_id in 1,2,3.

  • range takes exactly two values, lowest first, and includes both: date range 2026-01-01,2026-03-31.

  • Dates can be 2026-01-31 or 31/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

#N/A

Sign in via the HealthRota task pane first

Open HealthRota > Reporting on the Home tab and sign in.

#N/A

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.

#N/A

No rows match the filters.

No data matched and there was no header row to show. Check the filters, or set includeHeaders to TRUE.

#VALUE!

Unknown reporting type "...".

Check the type spelling against the task pane's Data type list.

#VALUE!

Unknown field "...". Available: ...

Use one of the fields listed in the message.

#VALUE!

Unknown column "...". Available: ...

Use one of the columns listed in the message.

#VALUE!

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

Did this answer your question?