Find the last ROW with mixed data in Excel

In this article, we will learn to Find the last ROW with mixed data in Excel.


In simple words, while working with long unmannered numbers, text or blank cell data. We need to extract the last non blank cell using the formula in Excel.

How to solve the problem?

For this article we will be needing to use the MATCH function. Now we will make a formula out of the mentioned function. Here we will give a list of mixed values. We need to find the last value in the list or say the last non blank cell in the list or range.

Use the formula:

{ = MATCH ( 2 , 1/(range<>"") ) }

range: list of numbers only numbers, text values and blank cells.

Note: Ctrl + Shift + Enter instead of just Enter to get the curly braces. Do not put curly braces in manually. This is an array formula that requires this process.


All of these might be confusing to understand. So, let's test this formula via running it on the example shown below.

Here we have a list of mixed values and we need to find the last non-blank cell row ignoring blank cells.

Now we will use the below formula to get the last non-blank cell.


{ = MATCH ( 2 , 1/(E4:E11<>"")) }


  • (E4:E11<>"")) this part checks the cell for the blank value and returns an array of TRUE & FALSE value depending on the condition.
  • 1/(E4:E11<>"") this part returns an array of 1s & #DIV! Error. Dividing 1 with logical values gets 1 when TRUE and #DIV! Error when FALSE.
  • Now the MATCH function finds the number 2 in the array of 1s and #DIV! Error. Certainly, it will not be able to find 2 in array so it stops at the last numeric value and returns its index as result.

Here the array to the function is given as named range and cell as cell_reference. Press Ctrl + Shift + Enter instead of just Enter to get the result.

As you can see in the above snapshot the row number of the last non blank cell is 7.

Here are all the observational notes regarding using the formula.


  1. The formula only works with numbers and text values both.
  2. Ctrl + Shift + Enter instead of just Enter to get the curly braces. Do not put curly braces in manually. This is an array formula which requires this process.
  3. Operators like equals to ( = ), less than equal to ( <= ), greater than ( > ) or not equals to ( <> ) can be performed within function applied with numbers only.

Hope this article about how to Find the last ROW with mixed data in Excel is explanatory. Find more articles on COUNTIF functions here. If you liked our blogs, share it with your fristarts on Facebook. And also you can follow us on Twitter and Facebook. We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at

Related Articles

Find the last row of data with numbers in Excel : In a range of text values find the last of data in excel.

How to use the SUMPRODUCT function in Excel: Returns the SUM after multiplication of values in multiple arrays in excel.

COUNTIFS with Dynamic Criteria Range : Count cells depstartent on other cell values in Excel.

COUNTIFS Two Criteria Match : Count cells matching two different criteria on list in excel.

COUNTIFS With OR For Multiple Criteria : Count cells having multiple criteria match using the OR function.

The COUNTIFS Function in Excel : Count cells dependent on other cell values.

How to Use Countif in VBA in Microsoft Excel : Count cells using Visual Basic for Applications code.

How to use wildcards in excel : Count cells matching phrases using the wildcards in excel

Popular Articles

50 Excel Shortcut to Increase Your Productivity : Get faster at your task. These 50 shortcuts will make you work even faster on Excel.

How to use the VLOOKUP Function in Excel : This is one of the most used and popular functions of excel that is used to lookup value from different ranges and sheets.

How to use the COUNTIF function in Excel : Count values with conditions using this amazing function. You don't need to filter your data to count specific values. Countif function is essential to prepare your dashboard.

How to Use SUMIF Function in Excel : This is another dashboard essential function. This helps you sum up values on specific conditions.

Leave a Reply

Your email address will not be published. Required fields are marked *

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.