Function Problems

How to Use INDEX to Populate Only Blank Cells in Excel

Amos GikundaAmos Gikunda Nov 11, 2026 869 views

Question details

The user wants to fill empty cells in a specific column with data from another table using an INDEX-based formula, without altering the cells that already contain values.

How to Populate Only Blank Cells Using an INDEX Formula
Product
Spreadsheet
Device & OS
not provided
Scenario
Data consolidation where a column has missing values (blanks) that need to be fetched sequentially from a secondary table or list.
Observed behavior
The goal is to selectively populate only the blank cells while preserving the existing data in the target column.
Before you start

Ensure that your source data ranges are correctly locked with absolute references (using the $ sign) so the formula doesn't break when dragged down. It is also recommended to verify the exact starting row of your data to adjust the ROW offset accordingly.

Solution 1Recommended

Apply the INDEX and SMALL IF Array Formula

Use a combination of IFERROR, INDEX, SMALL, and IF functions to dynamically extract and fill data only where the target cells are blank.

This method uses an array formula to check for blank cells in your target range. The IF function identifies the row numbers of the blank cells, SMALL extracts them one by one as you drag the formula down, and INDEX retrieves the corresponding value from your source column.

1
Select the target cell

Select the first blank cell in your target column where you want the new data to appear.

2
Enter the array formula

Type the formula: =IFERROR(INDEX(A$2:A$5,SMALL(IF($C$2:$C$5="",ROW($C$2:$C$5)-1),ROW($A1))),""). Adjust A$2:A$5 to match your source data range and $C$2:$C$5 to match your target column range.

3
Confirm the formula

If you are using an older version of Excel (prior to Microsoft 365) or older spreadsheet software, press Ctrl + Shift + Enter to evaluate it as an array formula. You will see curly braces {} appear around the formula. Modern versions only require pressing Enter.

4
Copy the formula down

Click and drag the fill handle (the small square at the bottom-right corner of the cell) down to apply the formula to the rest of the blank cells in the column.

Apply the INDEX and SMALL IF Array Formula
Array Formula Requirement: In newer versions like Microsoft 365 or the latest WPS Office, you can simply press Enter. For older versions, Ctrl+Shift+Enter is mandatory for the formula to work correctly.
Use WPS Spreadsheet for Advanced Formulas

Easily Handle Array Formulas with WPS Spreadsheet

WPS Spreadsheet fully supports advanced array formulas like INDEX, MATCH, and SMALL IF, making data consolidation and filling blank cells effortless.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your data.
  2. 2. Select the blank cell: Click on the first empty cell in the column you wish to populate.
  3. 3. Input the formula: Type your INDEX array formula and press Enter (or Ctrl+Shift+Enter for legacy array support).
  4. 4. Fill the remaining cells: Drag the fill handle down to populate the remaining blank cells seamlessly.
Fully compatible with Microsoft Excel formulas and functionsSupports dynamic arrays for modern data processingLightweight and fast, even with large datasetsFree to use with a familiar, user-friendly interface
microsoft office alternative - wps office

Frequently Asked Questions

Why is my formula returning an error instead of the value?

If you are using an older version of your spreadsheet software, you must press Ctrl+Shift+Enter instead of just Enter. Otherwise, the array formula will not calculate correctly and may return a #VALUE! error.

Can I use XLOOKUP instead of INDEX and MATCH for this?

While XLOOKUP is powerful for standard lookups, filling only blank cells sequentially from another list usually requires an array formula like INDEX and SMALL IF, or a Power Query solution, because standard lookup functions return values for every row based on a matching key.

How do I adjust the formula if my data starts on row 5?

You need to adjust the row subtraction part of the formula. If your data starts on row 5, change ROW($C$5:$C$20)-1 to ROW($C$5:$C$20)-4 so the array correctly maps to the 1st, 2nd, 3rd positions of the INDEX range.

What does the IFERROR function do in this formula?

The IFERROR function catches errors that occur when the formula runs out of blank cells to fill. Instead of displaying a #NUM! error, it returns a blank string (""), keeping your spreadsheet clean.