How to find and return the second to last value in a certain row or column in Excel?
As shown in the screenshot below, in the specified table range A1:E16, how to find and return the second-to-last value in the 6th row or the column B? 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 shown in the screenshot above, in the given table range A1:E16, you can use the below formulas to find and return the second-to-last value in the 6th row or column B. 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 the following formula into the Formula Bar, and then press "Ctrl" + "Shift" + "Enter" keys simultaneously to get the result.
=INDEX(B:B,LARGE(IF(B:B<>"",ROW(B:B)),2))
Note: In the formula, B:B represents the column where you want to 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 display the second-to-last value in the 6th row, then enter the following formula into the Formula Bar, and then press the "Enter" key to get the result. See screenshot:
=OFFSET($A$6,0,COUNTA(6:6)-2,1,1)
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!
All Kutools add-ins. One installer
Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.





- All-in-one suite ā Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
- One installer, one license ā set up in minutes (MSI-ready)
- Works better together ā streamlined productivity across Office apps
- 30-day full-featured trial ā no registration, no credit card
- Best value ā save vs buying individual add-in