Find the Next Empty Cell for a Unit in Excel Without VBA
Question details
Find the next empty cell in the row for a specified unit number without using VBA.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A fuel-usage worksheet has one row per unit and up to 31 entry cells across each row.
- Observed behavior
- The user wants to locate and select the next empty entry cell beside a matching unit.
Identify the unit-number column and the range containing the 31 entry cells. Check that each unit number is unique; a lookup formula will use the first matching row.
Label Entry Columns by Date or Period
Use a labeled layout when each fuel total belongs to a known day or reporting period.
A formula cannot move the cursor or enter data into another cell. Labeled columns let you choose the correct destination directly and make entries easier to audit.
In the header row, label the 31 entry columns with the applicable days, dates, or reporting periods. For daily entries within a month, use headings 1 through 31.
Use Home > Find & Select > Find to locate the unit number in the unit-number column.
In the matching unit’s row, select the cell under the correct date or period and type the fuel total.

Calculate the Next Empty Cell Address
Use a formula to display the address of the first empty entry cell, then navigate to it manually.
Find the Next Fuel Entry Cell in WPS Spreadsheet
Use a lookup formula in WPS Spreadsheet to display the next empty cell address for a unit, then navigate to that cell manually.
- 1. Open the worksheet: Open WPS Spreadsheet and use Menu > Open to select your fuel-tracking workbook.
- 2. Enter the unit number: For the example layout, type the unit number in AH2. Unit numbers should be in A2:A100 and entry cells in B2:AF100.
- 3. Calculate the address: In AI2, enter =IFERROR(ADDRESS(MATCH(AH2,$A$2:$A$100,0)+1,MATCH("",INDEX($B$2:$AF$100,MATCH(AH2,$A$2:$A$100,0),0),0)+1,4),"Unit not found or row full").
- 4. Navigate to the cell: If AI2 displays an address, press Ctrl+G, enter the address, and select OK. Check the destination before typing the fuel total.

Frequently Asked Questions
Can an Excel formula select the next empty cell automatically?
No. A formula can calculate and display a cell address, but it cannot move the cursor. Use the displayed address with Ctrl+G to navigate to the cell manually.
What does “Unit not found or row full” mean?
The example formula displays this message if it cannot find the unit in A2:A100 or cannot find an empty entry cell in the matching row of B2:AF100. Check both the unit number and the row.
What happens if a unit number appears more than once?
MATCH uses the first matching unit in the lookup range. Check the unit-number column for duplicates before relying on the result.
Why label the 31 columns with dates instead of finding the next blank?
If each entry belongs to a particular day or period, a labeled column shows exactly where it belongs. This makes missing or misplaced entries easier to identify.




