## Explanation

This example is based on the formula explained in detail here:

```
=ROW()-INDEX(ROW(data),1,1)+1>ROWS(data)-n
```

The formula uses the greater than operator (>) to check row in the data. On the left, the formula calculates a "current row", normalized to begin at the number 1:

```
=ROW()-INDEX(ROW(data),1,1)+1 // calculate current row
```

On the right, the formula generates a threshold number:

```
ROWS(data)-n // calculate threshold
```

When the current row is greater than the threshold, the formula returns TRUE, triggering the conditional formatting.

### Conditional formatting rule

The conditional formatting rule is set up to use a formula like this:

### With a table

You can't use a table name in a CF formula at present. However, you can select or enter the table data range when creating the formula in the CF window, and Excel will keep the reference up to date as the table expands or shrinks.