How to Get the Last Numeric Value in an Excel Column
Question details
The user wants to extract the last numerical value from a column and display it in a different cell while ignoring any empty cells below the final entry.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Maintaining a dynamic log, running balance, or financial tracker where new numeric data is continually added to a column, and the most recent figure needs to be displayed automatically in a dashboard or summary cell.
- Observed behavior
- The goal is to use a formula that dynamically identifies and returns the bottom-most numeric value in a specified range without needing manual updates when new data is entered.
Identify the exact column range where your numbers are being entered and decide on a destination cell for your formula that is outside of this target range to prevent calculation errors.
Use the LOOKUP Function to Find the Last Number
This is the most efficient and standard formula approach to retrieve the last numeric value in a column, utilizing Excel's approximate match behavior.
By searching for a number larger than any possible value in your dataset (specifically 9.9999999999999E+307, the largest number Excel can handle), the LOOKUP function will systematically scan the column and default to the last numerical value it encounters, bypassing blank cells entirely.
Click on the cell where you want the final number to be displayed (for example, cell C40 or a summary dashboard cell).
Type the formula =LOOKUP(9.9999999999999E+307, C1:C39) into the formula bar. Replace C1:C39 with the actual range of your data column.
Press the Enter key on your keyboard. The cell will now dynamically display the last numeric entry in the referenced column.

Extract Data Easily with WPS Spreadsheet
WPS Office provides a highly robust Spreadsheet tool that perfectly supports advanced functions like LOOKUP, VLOOKUP, and INDEX/MATCH. It is ideal for data analysis, handling running balances, and automating complex column calculations effortlessly.
- 1. Open your file in WPS Spreadsheet: Download and install WPS Office, then open your existing workbook containing the data column.
- 2. Select the output cell: Click on the blank cell where you want the final running balance or latest value to appear.
- 3. Input the lookup formula: Go to the 'Formulas' tab and click 'Insert Function' to search for LOOKUP, or directly type =LOOKUP(9.9999999999999E+307, C:C) into the cell.
- 4. Calculate the result: Press Enter to instantly execute the formula. The cell will continuously update to show the last number as you add more data to the column.

Frequently Asked Questions
Why use 9.9999999999999E+307 in the LOOKUP formula?
This specific scientific notation represents the absolute largest number that spreadsheet software can process. Because the LOOKUP function expects data to be sorted and cannot find this extraordinarily large number in your data, it automatically falls back to returning the very last numeric value present in your specified range.
Will this formula work if there are text values mixed in the column?
Yes, the formula =LOOKUP(9.9999999999999E+307, Range) specifically looks for numeric data. It automatically ignores text strings, errors, and blank cells, ensuring that only the final number is returned.
How do I find the last text entry instead of a number?
If you need to extract the last text value rather than a number, you can use a similar logic with the formula =LOOKUP(REPT("z", 255), Range). This searches for a text string alphabetically larger than any realistic entry, causing it to return the last text string.
Can I reference the entire column instead of a specific row range?
Yes, you can reference the entire column by using a whole-column range like C:C (e.g., =LOOKUP(9.9999999999999E+307, C:C)). However, you must place the formula in a completely different column (like column D) to prevent a circular reference error.




