Rangeblock Sparklines
Rangeblock sparklines are small visual indicators that display progress or status within a defined range. The sparkline uses a series of blocks, each representing a portion of the total range. Filled blocks represent the current value, making it easy to interpret performance or completion levels at a glance.
When to use rangeblock sparklines
- Showing progress or status: Display how much of a goal or target has been completed.
- Visualizing value ranges: Represent the spread of values in a range, including low, middle, and high points.
- Comparing values within a range: Compare performance across different categories or time periods using consistent visual indicators.
Create a rangeblock sparkline
- On the Insert tab, select Sparklines.
- Under Other Sparkline, select Insert RangeBlock Sparkline. The RangeBlockSparkline Dialog opens.
- Set the parameters.
- Click Ok. The sparkline is inserted into the selected cell.
Edit a rangeblock sparkline
- Select the rangeblock sparkline in your workbook.
- On the Sparkline tab, select Settings. The RangeBlockSparkline Dialog opens.
- Adjust the parameters, then click Ok.
- Copy and paste the sparkline cell to duplicate the configuration in another location, as needed.
Rangeblock sparkline parameters
The rangeblock sparkline formula supports the following format:
=RANGEBLOCKSPARKLINE(template_range, data_expression)
| Parameter | Description |
|---|---|
| Template Range | Specifies the range reference for a range template. |
| Data Expression/Range | Defines the data object for the template. You can use a cell reference or the OBJECT function to supply the values. |
| Location Range | Sets the cell where the sparkline is displayed. |
Optional functions for rangeblock sparklines
You can optionally use the following functions to build rangeblock sparklines.
➤ Example – Use rangeblock functions in a formula
To create a sparkline using the OBJECT, INDEX, and SEQUENCE functions:
=RANGEBLOCKSPARKLINE(TemplateSheet!A2:D14, OBJECT(incomeStatement[#Headers], INDEX(incomeStatement[#Data], 3, SEQUENCE(COUNTA(incomeStatement[#Headers]), 1))))
| Function | Syntax | Description |
|---|---|---|
| OBJECT (1) | OBJECT(property1, expression1, property2, expression2, ...) | Defines an object with individual property-expression pairs.
|
| OBJECT (2) | OBJECT(properties_range, expressions_range) | Defines an object using two parallel ranges.
|
| OBJECT (3) | OBJECT(property1, expressionArray1, property2, expressionArray2, ...) | Defines an object with array values.
|
| INDEX | INDEX(return, row, col, area) | Returns a value or cell reference from a range.
|
| SEQUENCE | SEQUENCE(rows,[columns],[start],[step]) | Returns a list of sequential numbers in ascending order, such as 1, 2, 3, 4, and so on. This function is typically used with hard-coded arguments to generate a specific sequence of values for a dynamic array formula.
|