How to find and return the second to last value in a certain row or column in Excel?
As shown in the screenshot below, how to find and return the second to last value in row 6 or column B of the table range A1:E16? This article will show you a method to achieve it.
Find and return the second to last value in a certain row or column with formulas
Find and return the second to last value in a certain row or column with formulas
As the above screenshot shown, to find and return the second to last value in row 6 or column B of the table range A1:E16, the formulas we provided in this article can help you. Please do as follows.
Find and return the second to last value in column B
1. Select a blank cell for placing the second to last value, enter formula =INDEX(B:B,LARGE(IF(B:B<>"",ROW(B:B)),2)) into the Formula Bar, and then press Ctrl + Shift + Enter keys simultaneously to get the result.
Note: in the formula, B:B is the column where you will find the second to last value. You can change it to any column as you need.
Find and return the second to last value in row 6
Select a blank cell to populate the second to last value in a row, then enter formula =OFFSET($A$6,0,COUNTA(6:6)-2,1,1) into the Formula Bar, and then press the Enter key to get the result. See screenshot:
Note: In this formula, $A$6 is the first cell of the specified row, 6:6 is the row number where you need to find the second to last value,
Related articles:
- How to find position of first/last number in a text string in Excel?
- How to find first or last Friday of every month in Excel?
- How to vlookup find the first, 2nd or nth match value in Excel?
- How to find value with highest frequency in a range in Excel?
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- 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!