Function Problems

How to Auto-Increment Rank Numbers in Excel VLOOKUP

Adam DavisAdam Davis Nov 11, 2026 868 views

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.

How to Auto-Increment Rank Numbers in Excel VLOOKUP
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.
Before you start

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.

Solution 1Recommended

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.

1
Setup a sequence column

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.

2
Update the formula

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).

3
Drag the formula down

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 Relative Cell References for the Rank Argument
Tip: Using a helper column is the easiest way to audit your formulas and verify that the correct rank is being fetched for each row.
Advanced Formula Processing in WPS

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. 1. Open your workbook: Launch WPS Spreadsheet and open your existing dataset.
  2. 2. Apply the formula: Type your dynamic VLOOKUP and LARGE formula utilizing cell references or the ROW function.
  3. 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.
Fully compatible with Microsoft Excel formulas and .xlsx file formats.Lightweight software with incredibly fast processing for large datasets.Familiar user interface makes advanced formula creation intuitive and seamless.Completely free to use for daily data processing and analysis.
microsoft office alternative - wps office

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.