Function Problems

Make an Excel HLOOKUP Range Move Across Columns When Filling Down

Camila MilosovichCamila Milosovich Nov 25, 2026 870 views

Question details

Create an HLOOKUP formula that advances the Bank sheet lookup range across columns when filled down.

Make an Excel HLOOKUP Range Move Across Columns When Filling Down
Product
Microsoft Excel
Device & OS
not provided
Scenario
The user wants to fill a formula downward while its lookup range moves from Bank!D1:D68 to Bank!E1:E68, Bank!F1:F68, and subsequent columns.
Observed behavior
Dragging the existing HLOOKUP formula down moves its lookup range vertically instead of across columns.
Before you start

Check that the source sheet is named Bank and that the lookup values are in row 1, with the values to return in row 68. The example starts in B2 and uses the lookup value in A2.

Solution 1Recommended

Use OFFSET and ROW to Shift the HLOOKUP Range Across Columns

Use this formula when filling down from B2 should move the source range one column to the right per row.

OFFSET starts with Bank!D1:D68. ROW()-2 produces a column offset of 0 in row 2, 1 in row 3, and so on. Each resulting range is one column wide, so HLOOKUP checks that column's row 1 value and returns its row 68 value when it finds an exact match.

1
Enter the formula

Select cell B2 and enter =HLOOKUP(A2,OFFSET(Bank!$D$1:$D$68,0,ROW()-2),68,FALSE).

2
Fill down

Drag the fill handle at the bottom-right corner of B2 down the column. The source range advances from Bank!D1:D68 to Bank!E1:E68 and then Bank!F1:F68.

3
Check the references

Click the filled cells and inspect the formula bar. A2 changes to A3, A4, and so on; use $A$2 instead if every formula should look up the same cell.

Use OFFSET and ROW to Shift the HLOOKUP Range Across Columns
If the result is zero: Check the corresponding cell in row 68 of the Bank sheet. A blank return cell can appear as zero in a formula result. Also verify that the value in column A matches the selected Bank column's row 1 value; an exact-match failure normally returns #N/A.
Work with spreadsheet formulas

Fill an HLOOKUP Formula Across Source Columns in WPS Spreadsheets

Use HLOOKUP with OFFSET and ROW in WPS Spreadsheets to advance the Bank sheet range across columns while filling your formula down.

  1. 1. Open the workbook: Open WPS Spreadsheets and choose Open to select the workbook containing the Bank sheet.
  2. 2. Enter the formula: Select B2 on the destination sheet and enter =HLOOKUP(A2,OFFSET(Bank!$D$1:$D$68,0,ROW()-2),68,FALSE).
  3. 3. Fill the formula down: Drag the fill handle from B2 down through the rows where you need results.
  4. 4. Verify and save: Check the results against row 68 of the Bank sheet, then choose File > Save to save the workbook.
Move the lookup range across source columns as you fill downUse familiar HLOOKUP, OFFSET, and ROW functionsOpen and edit Microsoft Excel XLSX filesInspect formulas in the formula bar
microsoft office alternative - wps office

Frequently Asked Questions

Why does the formula use ROW()-2?

The formula starts in row 2, so ROW()-2 is 0 in B2 and 1 in B3. Those values make OFFSET start at column D and move to column E on the next row. Adjust the subtraction if you start in a different row.

Why does my HLOOKUP return zero?

Check the row 68 cell in the source column selected by the formula. A blank return cell can appear as zero. Also check whether the source cell actually contains a zero or a formula that returns zero.

Why am I getting an #N/A error?

With FALSE as the final argument, HLOOKUP requires an exact match. Compare the lookup value in column A with row 1 of the Bank column selected for that result, and check for differences such as text versus numbers.

How do I keep the lookup value fixed when filling down?

Change A2 to $A$2 in the formula before dragging the fill handle. The source range will still advance across Bank columns, but every row will use the value in A2.