all values that are not 0 (eg <>0) in A1:A13 become true, and all else become false

So now you can look up the first 'true' in that array and use it to index

When you work with a worksheet, sometimes, you may want to get the first or last non blank cell value of a row or column. It is easy for you to get the value if there are few data in a row or column at a glance, but to return the data in a long column or row will be a painful task. Here, I can talk you about some useful methods to solve this job.

**Return the first non blank cell in a row or column with formula**

**Return the last non blank cell in a row or column with formula**

To extract the first cell with data, please apply the following formula:

**1**. Enter the following formula into a blank cell besides your data: **=INDEX(A1:A13,MATCH(TRUE,INDEX((A1:A13<>0),0),0))**, see screenshot:

**2**. Then press** Enter** key, and you will get the first non blank cell value as follows:

**Notes:**

1. In the above formula, **A1:A13** is the column range that you want to use, you can change it to your need. This formula also can be applied to get the first non blank cell value in a row, you just need to change the column range to row range.

2. This formula just work correctly on single row or single column.

If you want to return the last non blank cell value, here is another formula can do you a favor.

**1**. Type this formula **=LOOKUP(2,1/(A1:A13<>""),A1:A13)** into a blank cell besides your data, see screenshot:

**2**. Then press **Enter** key, the last non blank cell value will be extracted at once. See screenshot:

**Notes:**

1. In the above formula, **A1:A13** is the column range that you want to use, you can change it to your need. This formula also can be applied to get the last non blank cell value in a row, you just need to change the column range to row range.

2. The above formula just work correctly on single row or single column.

**Reuse**: Quickly insert**complex formulas, charts**and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...- Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
- Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
- Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
- Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
- Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
- Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
- Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
- More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.

**Enable tabbed editing and reading in Word, Excel, PowerPoint**, Publisher, Access, Visio and Project.- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

Loading comment...
The comment will be refreshed after 00:00.