Prevent #NUM! Errors in Excel LARGE Formula When Fewer Values Exist
Question details
Prevent the LARGE function from displaying a #NUM! error when the requested rank is greater than the number of numeric values in a range.

- Product
- Microsoft Excel LARGE function
- Device & OS
- not provided
- Scenario
- The user wants to return the five largest values from cells M3:BE3, even when fewer than five numeric values are available.
- Observed behavior
- LARGE returns #NUM! for each requested rank that does not exist because the range contains too few numeric values.
Confirm that M3:BE3 contains the values you want to rank and that numbers are stored as numeric values rather than text. Decide whether missing ranks should display as blank cells or use another value such as 0.
Wrap the LARGE array formula with IFERROR to return blanks
Use this formula when you need multiple largest values but want blank results instead of #NUM! when the source range has fewer numeric entries.
The array constant {1,2,3,4,5} requests the first through fifth largest values. IFERROR replaces any unavailable rank that would otherwise return #NUM! with an empty string.
Click the first cell where you want the largest values to appear, then select five adjacent output cells if your Excel version requires an array formula.
Type =IFERROR(LARGE(M3:BE3,{1,2,3,4,5}),"") into the formula bar.
Press Enter in Microsoft 365 or Excel versions with dynamic arrays. In older Excel versions, select the five output cells first and press Ctrl+Shift+Enter to enter the formula as an array formula.
Check the returned values. Available ranks show the largest numbers from M3:BE3, while ranks beyond the number of numeric values remain blank.

Return available top values without #NUM! errors in WPS Spreadsheet
WPS Spreadsheet supports the LARGE and IFERROR functions, so you can list the highest available values and leave missing ranks blank. Enter the formula in your results area and use array entry only when required by your WPS version and worksheet behavior.
- 1. Open the worksheet in WPS Spreadsheet: Launch WPS Office, choose Spreadsheets, and open the workbook containing the values in M3:BE3.
- 2. Choose the result location: Click the cell where the first largest value should appear, with enough adjacent cells available for the returned values.
- 3. Enter the formula: In the formula bar, enter =IFERROR(LARGE(M3:BE3,{1,2,3,4,5}),"").
- 4. Apply the formula: Press Enter to calculate the results. If your WPS Spreadsheet version requires array entry, select the output range and use Ctrl+Shift+Enter.

Frequently Asked Questions
Why does LARGE return #NUM! in Excel?
LARGE returns #NUM! when the requested rank is larger than the number of numeric values in the selected range. For example, LARGE(M3:BE3,5) fails when the range contains only four numbers.
What formula returns the top five values and leaves missing values blank?
Use =IFERROR(LARGE(M3:BE3,{1,2,3,4,5}),""). It returns each available rank and replaces errors for missing ranks with blank results.
Do blank cells count when Excel calculates LARGE?
No. LARGE evaluates numeric values only. Empty cells and text entries do not increase the number of available ranks.
Do I need Ctrl+Shift+Enter for the LARGE formula?
Microsoft 365 and newer Excel versions usually spill the array results after you press Enter. In older Excel versions, select the output cells and press Ctrl+Shift+Enter to confirm the array formula.
Can I return zero instead of a blank for missing ranks?
Yes. Replace the empty string in IFERROR with 0, such as =IFERROR(LARGE(M3:BE3,{1,2,3,4,5}),0).




