How to Auto-Increment Rank Numbers in Excel VLOOKUP
Question details
The user wants to automatically increment the rank number argument inside a LARGE or VLOOKUP formula when dragging the formula down a column.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Dragging down a combined VLOOKUP and LARGE formula to extract a ranked list of data without manually editing the rank number in each row.
- Observed behavior
- Hardcoded rank arguments (like 1, 2, or 513) remain static when the formula is filled down, requiring manual updates for each cell to get the next largest value.
Ensure your data ranges are locked using absolute references (like $C$4:$C$10001) so the lookup array does not shift downward when you drag the formula.
Use Relative Cell References for the Rank Argument
Reference an adjacent cell containing the sequence number instead of typing the number directly into the formula.
By setting up a helper column with your desired rank numbers, you can use a relative cell reference inside the LARGE function. When you fill the formula down, Excel automatically adjusts the reference to point to the next rank number.
Create a column next to your formula with sequential numbers (e.g., 513, 514, 515). Let's assume your first sequence number is in cell F516.
Replace the hardcoded rank number in your formula with the cell reference. For example: =VLOOKUP(LARGE($C$4:$C$10001, F516), $C$4:$E$10001, 3, FALSE).
Click the fill handle in the bottom-right corner of the formula cell and drag it down. The relative reference F516 will automatically update to F517, F518, and so on.

Use the ROW Function to Dynamically Generate the Rank
Use the ROW function to calculate the sequence number based on the current row, eliminating the need for a helper column.
Use SORT and HSTACK Functions (Microsoft 365)
If you are using modern Excel versions, you can use dynamic array functions to sort and retrieve data without needing VLOOKUP or LARGE.
Easily Handle Complex Formulas with WPS Spreadsheet
WPS Office provides a powerful Spreadsheet application fully compatible with Excel formulas like VLOOKUP, LARGE, and the ROW function. You can easily automate your data ranking and lookup tasks for free with its intuitive interface.
- 1. Open your workbook: Launch WPS Spreadsheet and open your existing dataset.
- 2. Apply the formula: Type your dynamic VLOOKUP and LARGE formula utilizing cell references or the ROW function.
- 3. Auto-fill the column: Double-click the small square fill handle at the bottom-right of your active cell to instantly apply the incrementing formula to the entire column.

Frequently Asked Questions
Why does my VLOOKUP return a #N/A error when dragged down?
This usually happens if you forgot to use absolute references (like $C$4:$E$10001) for your lookup array. Without the dollar signs, the lookup range shifts downward as you drag the formula, causing it to miss matching data.
Can I use the COLUMN function instead of ROW to increment across columns?
Yes. If you are dragging your formula horizontally to the right rather than down, you can use the COLUMN() function (e.g., COLUMN(A1)) to automatically increment the rank argument starting from 1.
What does the LARGE function do in this specific formula?
The LARGE function evaluates a range of numerical data and returns the n-th largest value. In this scenario, it finds a specific ranked value (like the 513th highest number) and feeds it into the VLOOKUP function to retrieve the corresponding row details.




