How to Apply OFFSET in Excel: Step-by-Step Guide
In this article
To apply OFFSET in Excel, type =OFFSET(reference, rows, cols, [height], [width]) into a cell and press Enter. The function returns a reference that is a set number of rows and columns away from a starting cell or range. For example, =OFFSET(A1, 2, 3) returns the value in cell D3 (two rows down, three columns right of A1). OFFSET is a volatile function, so it recalculates every time the workbook changes, which can slow down large models. Use it when you need a dynamic range that moves or resizes based on a count or position, and prefer INDEX or structured table references when a static range will do.
What You'll Need
- Excel 2016 or later, Microsoft 365, or Excel for Mac (the function is the same across versions).
- A worksheet with data arranged in a clear grid, ideally with a header row.
- Basic familiarity with cell references (A1 style) and the difference between relative and absolute references.
- Optional: a named range or table if you plan to build dynamic charts or drop-downs.
Step-by-Step
- Pick a starting cell. Click the cell where you want the result, then type =OFFSET(. The first argument is the reference — the anchor point. Click the cell or range you want to start from, for example A1. If you want the anchor to stay fixed when you copy the formula, press F4 to make it absolute ($A$1).
- Set the rows argument. Type a comma, then the number of rows to move. Positive numbers move down, negative numbers move up. For example, 2 moves two rows below the anchor. Use 0 to stay on the same row.
- Set the columns argument. Type a comma, then the number of columns to move. Positive moves right, negative moves left. For example, 3 moves three columns to the right. Use 0 to stay in the same column.
- Add height and width (optional). These two arguments let OFFSET return a range instead of a single cell. Height is the number of rows in the returned range; width is the number of columns. For example, =OFFSET(A1,0,0,5,2) returns a 5-row by 2-column range starting at A1. If you omit them, OFFSET returns a single cell the same size as the reference.
- Close the bracket and press Enter. Excel displays the value at the offset position. If you returned a range, you may see a #VALUE! error unless the formula is wrapped in something that accepts arrays, such as SUM, AVERAGE, or COUNT.
- Wrap OFFSET in an aggregate function when you need a total. A common pattern is =SUM(OFFSET(A1,0,0,10,1)), which sums the 10 cells starting at A1. This is how you build a dynamic total that grows as you add rows.
- Test the formula by changing the inputs. Temporarily change the rows or columns number to confirm the reference moves as expected. Undo with Ctrl+Z (Windows) or Cmd+Z (Mac).
- Copy the formula carefully. If the anchor is relative, copying the formula down or across will shift the anchor too. Use absolute references ($A$1) for the anchor when you want it fixed, and relative references for the row and column counts if you want them to change per row.
- Use OFFSET with a named range for dynamic charts. Go to Formulas > Name Manager > New, give the range a name, and in Refers to enter something like =OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),1). Then use that name as the chart series. Labels and menu paths can differ slightly by Excel version and platform.
- Save and recalculate. Press F9 to force a recalculation if values look stale. Because OFFSET is volatile, it recalculates on every change, so check performance on large sheets.
Common Mistakes
- Forgetting that OFFSET returns a reference, not a value. Used alone it displays the value of one cell, but in most real formulas it must be wrapped in SUM, AVERAGE, COUNT, or similar.
- Mixing up rows and columns. The second argument is rows (vertical), the third is columns (horizontal). Swapping them points to the wrong cell.
- Using a relative anchor when copying. If A1 is not absolute, copying the formula shifts the anchor and the result drifts.
- Ignoring volatility. Thousands of OFFSET formulas can make a workbook sluggish. INDEX is non-volatile and often faster.
- Assuming height and width are required. They are optional; omitting them returns a single cell.
- Referencing outside the sheet. If the offset moves past the last row or column, Excel returns #REF!.
Tips
- Use COUNTA or COUNT inside the height argument to build ranges that grow automatically as data is added.
- Prefer INDEX for simple lookups and structured table references for tables; reserve OFFSET for cases where the range must move or resize dynamically.
- Name your OFFSET formulas in the Name Manager so charts and data validation lists stay readable.
- Press F4 while editing to cycle through absolute and relative reference styles quickly.
- Use the Evaluate Formula tool (Formulas tab) to step through an OFFSET formula and see what reference it returns.
Troubleshooting
If you see #REF!, the offset has moved outside the worksheet. Reduce the rows or columns number, or check that the anchor is correct. If you see #VALUE!, you are likely returning a range without wrapping it in an aggregate function. If the result is wrong, use Evaluate Formula to confirm the reference OFFSET returns, and check whether the anchor is absolute. If the workbook is slow, count how many OFFSET formulas you have and consider replacing them with INDEX or table references. If a dynamic chart does not update, open Name Manager and confirm the OFFSET formula refers to the correct sheet and uses COUNTA correctly. If copying the formula breaks it, make the anchor absolute with F4.
Frequently Asked Questions
What does OFFSET do in Excel?
It returns a reference to a cell or range that is a specified number of rows and columns from a starting reference. You can also specify a height and width to return a larger range.
Why is OFFSET considered volatile?
Excel recalculates volatile functions every time the workbook changes, even if their inputs have not changed. That can slow down large workbooks, so use it sparingly.
Can I use OFFSET to sum a dynamic range?
Yes. Wrap it in SUM, for example =SUM(OFFSET(A1,0,0,COUNTA(A:A),1)), to sum a range that grows as rows are added.
What is the difference between OFFSET and INDEX?
OFFSET returns a reference based on a distance from an anchor and is volatile. INDEX returns a value or reference at a given row and column within a range and is not volatile, so it is usually faster.
Why do I get #REF! with OFFSET?
The offset has moved past the edge of the worksheet. Check the rows and columns numbers and the anchor reference.
Does OFFSET work in Excel for Mac?
Yes, the function and its arguments are the same. Menu labels and keyboard shortcuts can differ slightly between Windows and Mac.