Excel Formulas to Find the Last N Rows ~ Useful Tutorial!!
Tags: excelformula, excelformulas
Published: 2021-07-14 11:07:51

---
title: Excel Formulas to Find the Last N Rows ~ Useful Tutorial!!
published: true
date: 2021-07-09 11:26:18 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-to-find-the-last-n-rows/
---

We have already learned the formulas to find the **[address of the first cell in Excel](https://geekexcel.com/excel-formulas-to-find-the-address-of-first-cell-in-a-range/)**. Likewise, here we will show the formulas to learn the useful formulas to create a dynamic named range with the OFFSET function in Excel. Let’s see them below!! Get an official version of ** MS Excel**  from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)

[![Get the last N rows](https://geekexcel.com/wp-content/uploads/2021/07/Get-the-last-N-rows.png)](https://geekexcel.com/excel-formulas-to-find-the-last-n-rows/get-the-last-n-rows/#main)<figcaption id="caption-attachment-48791">Get the last N rows</figcaption>

## Generic Formula:

- You can use the below formula to flag the last N rows in Excel

**=[ROW](https://geekexcel.com/row-function-in-microsoft-excel-365-how-to-use/)()-ROW(range.firstcell)+1>[ROWS](https://geekexcel.com/use-rows-function-in-microsoft-excel-365-simple-methods/)(range)-n**

## Syntax Explanations:

- **ROW** – The **[ROW function](https://geekexcel.com/row-function-in-microsoft-excel-365-how-to-use/)** helps to return the row number for reference.
- **ROWS** – This function is used to return column numbers for reference. Read more on the [**ROWS Function**](https://geekexcel.com/use-rows-function-in-microsoft-excel-365-simple-methods/).
- **Range** – It represents the input range.
- **Plus operator (+)** – This symbol is used to add the values.
- **Minus Operator (-)** – This symbol will help to subtract any two values.
- **Comma symbol (,)** – It is a separator that helps to separate a list of values.
- **Parenthesis ()** – The main purpose of this symbol is to group the elements.

## Practical Example:

Refer to the below example image.

- Here we will enter the input values in **Column B** , and **Column C**.
- Now we need to return the result as True for the last N rows.
- The N value is given in **Cell F3**.

![Input Ranges](https://geekexcel.com/wp-content/uploads/2021/07/Input-Ranges-38.png)<figcaption id="caption-attachment-48792">Input Ranges</figcaption>

- Select any cell and type the above-given formula.

![Enter the formula](https://geekexcel.com/wp-content/uploads/2021/07/Enter-the-formula1.png)<figcaption id="caption-attachment-48794">Enter the formula</figcaption>

- Finally, you can get the result as shown below.

![Result](https://geekexcel.com/wp-content/uploads/2021/07/Result-38.png)<figcaption id="caption-attachment-48793">Result</figcaption>

## Wind-Up:

Hope you like this article on how to find the **last N rows in Excel**. Let me know if you have any **doubts** regarding this article or any other Excel/VBA topic.

Thank you so much for visiting  **[Geek Excel](https://geekexcel.com/)!! **If you want to learn more helpful formulas, check out [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!! **

### Read Also:

- **[Excel Formulas to Find the Last Column Number in a Range ~ Quickly!!](https://geekexcel.com/excel-formulas-to-find-last-column-number/)**
- **[How to Insert a Date or Formatted Date in Excel Office 365?](https://geekexcel.com/how-to-insert-a-date-or-formatted-date-in-excel-office-365/)**
- **[Excel Formulas to Count Variable Range with COUNTIFS Function!!](https://geekexcel.com/excel-formulas-to-count-variable-range-with-countifs-function/)**
- **[Excel Formulas to Get the Percentage Discount ~ Useful Tricks!!](https://geekexcel.com/excel-formulas-to-get-the-percentage-discount/)**