RangeBlock Sparklines

To create Range Block sparklines in the workbook:

  1. Click Insert from the menu.

  2. Click Sparkline and select the RangeBlock sparkline under Other Sparkline from the list.

  3. In the RangeBlockSparkline dialog box:

    1. Set the parameters as described below.

    2. Click OK.

  4. The sparkline is displayed in the cell. To edit the sparkline, click Design from the menu and select Settings. The RangeBlockSparkline dialog box will be displayed again.

  5. Copy and paste the cell as needed to finalize your RangeBlock sparklines.

RangeBlock sparkline parameter Description
Template Range Refers to the range reference for a range template.
Data Expression / Range

Refers to the object data for the range template. It accepts the cell reference, the value of which is an object or the result of the object function. You can use the OBJECT function to define an object.

Location Range Cell where the sparkline will be displayed.
Optional functions that can be used to create RangeBlock sparklines
OBJECT function

Defines an object with properties and values.

INDEX function

This function returns a value or the reference to a value from within an array or range.

SEQUENCE function

This function returns a list of sequential numbers in an array (in ascending order), such as 1, 2, 3, 4, and so on. This function is used with hard-coded arguments to allow users to generate a specific sequence of values for the dynamic array formula.

The RangeBlock sparkline formula has the following syntax:

=RANGEBLOCKSPARKLINE(template_range, data_expression)

Example of RangeBlock sparkline formula with the OBJECT, INDEX, and SEQUENCE functions used to create the sparkline shown in Step 5:

=RANGEBLOCKSPARKLINE(TemplateSheet!A2:D14,OBJECT(incomeStatement[#Headers],INDEX(incomeStatement[#Data],3,SEQUENCE(COUNTA(incomeStatement[#Headers]),1))))