KutoolsforOffice — One Suite. Five Tools. Get More Done.

How to go to first or last empty row in Excel?

AuthorSunLast modified

It is time-consuming to scroll and go to the first or last empty row while you are working on a huge worksheet. In this article, I introduce some tricks for quickly going to the first or last empty row in Excel.

Go to first or last empty row with VBA

Go to last empty row or column with Select Last Row utilitygood idea3

Comparison of Methods for Going to the First or Last Empty Row in Excel

When working with a large worksheet, manually scrolling to find an empty row or column can be inefficient. You can use VBA to locate blank rows, or use Kutools for Excel to quickly navigate to the end of your data and move to the next empty row or column.

ComparisonVBAKutools Select Last Cell
Navigation optionsFind the first blank row or the last empty rowQuickly navigate to the last empty row or column
How it worksRuns VBA code to locate blank cells or move the cursor to the required empty rowSelects the last nonblank cell in the last row or column, then use the Down or Right Arrow key to move to the next empty row or column
Row / column supportThe last-empty-row example works with a specified column and requires editing the code to change columnsSupports both Last Row and Last Column
Coding required✔ VBA required✘ No coding required
Ease of useModerate to AdvancedVery easy

Go to first or last empty row with VBA

Here are two VBA can help you quickly go to the first or last empty row in active sheet, please do as below.

1. Press Alt + F11 keys to enable Microsoft Visual Basic for Applications window. See screenshot:
Alt + F11 keys to enable Microsoft Visual Basic for Applications window

2. Then click Insert > Module and paste below code into the script. See screenshot:

VBA: Go to first blank row.

Sub Findfirstblankcell()
'UpdatebyExtendoffice20170712
    Dim Rng As Range
    Dim WorkRng As Range
    On Error Resume Next
    xTitleId = "KutoolsforExcel"
    Set WorkRng = Application.Selection
    Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
    For Each Rng In WorkRng
        If Rng.Value = "" Then
            MsgBox "No Value, in " & Rng.Address
        End If
    Next
End Sub
click Insert > Module
copy and paste the code into the module

3. Press F5 to run the code, and a dialog pops out to remind you to choose a range to work. See screenshot:
run code to selec the data range

4. Click OK. A dialog pops out to remind you the cell reference of the first blank row, see screenshot:
A dialog pops out to remind you the cell reference of the first blank row

5. Click OK repeatedly to close the Microsoft Excel dialog. And then go to the Name box, type A2 into it, press Enter key, and you will go to the first blank row. See screenshot:
type A2 in the name box

Tip: If you want to go to the last empty row, please use below VBA code, and after you press an F5 key, the cursor directly goes to the last blank row.

VBA: Go to last empty row

Sub selectlastemptyrow()
Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Select
End Sub

Note: This VBA will select the last empty cell in the Column A. To select last empty cell in another column, please change 1 in the code Cells(Rows.Count, 1) to another number.


Go to last empty row or column with Select Last Row utility

If you want to go to last empty row or column quickly, you can apply Kutools for Excel’s Last Row or Last Column utility. With them, you can quickly go to the last nonblank cell of last row or column in current worksheet, and then the next cell is the last empty row or empty column.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Integrated with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

After installing Kutools for Excel, please do as below:

Click Kutools > Select > Select Last Cell > Last Row/Last Column. See screenshot:

 click Select Last Cell feature of kutools

Then the last nonblank cells in the last row (or column) is selected. Just press Down arrow key (or Right arrow key) to activate the last empty row (or column).

Conclusion

VBA is useful when you need a customized way to locate the first blank row or the last empty row. However, it requires opening the VBA Editor, inserting and running code, and modifying the column reference when necessary.

Kutools for Excel's Select Last Cell provides a simpler no-code approach for navigating to the end of a large dataset. You can quickly select the last nonblank cell in the last row or column and then move one cell down or right to reach the next empty row or column. This is especially convenient when working with very long or wide worksheets.


Relative Articles

Best Office Productivity Tools

🤖Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions…
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |  Round without Formula ...
Super Lookup: Multiple Criteria VLookup  |   Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |  Big Formula Bar   |  Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells   |  Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets:  12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

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.

ExcelWordOutlookTabsPowerPoint
  • 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