Copying formul down a column. Data source keeps changing

lauren18

New Member
Joined
Sep 14, 2015
Messages
12
Hi,

I want to copy a formula down a columns to about 200 cells.

This is the formula;
=IFERROR(VLOOKUP(I5,A5:C330,2,0),0)

The only thing that should change is the row for I. So it should look like this
=IFERROR(VLOOKUP(I5,A5:C330,2,0),0)
=IFERROR(VLOOKUP(I6,A5:C330,2,0),0).
=IFERROR(VLOOKUP(I7,A5:C330,2,0),0)
=IFERROR(VLOOKUP(I8,A5:C330,2,0),0) Etc

However when I copy this formula down the column (Column J) the data source changes too

=IFERROR(VLOOKUP(I5,A5:C330,2,0),0)
=IFERROR(VLOOKUP(I6,A6:C331,2,0),0)
=IFERROR(VLOOKUP(I7,A7:C332,2,0),0)
=IFERROR(VLOOKUP(I8,A8:C333,2,0),0)

How do I make it change only the cell for I. It is too much to manually change the formula 200 times.

Please help!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Use absolute references in your formula to protect the source table range (with $ Symbol).

=IFERROR(VLOOKUP(I5,$A$5:$C$330,2,0),0)



Relative And Absolute References In Formulas


This page describes relative and absolute cell references in Excel formulas.
ShortFadeBar.png


Excel accepts cell references in what are called absolute and relative ranges. Absolute ranges have a $ character before the column portion of the reference and/or the row portion of the reference. Relative ranges do not use the $ character. The $ character indicates to Excel that it should not increment the column and/or row reference as you fill a range with a formula or as you copy a range. For example A1 is a relative range, while $A$1 is an absolute range. If you enter =A1 in a cell and then fill that cell down a column, the '1' in the reference will increment in each row. Thus, the formula in row 50 would be =A50. However, if you enter =$A$1 in a cell and fill down, the range reference will remain $A$1 -- it will not increment as you fill or copy down a column.
There are three absolute styles:

Reference Style Meaning
$A$1Both the column and row reference are fixed. Neither will be incremented or changed during a copy or fill operation.
$A1Only the column reference is fixed. It will not change during a fill or copy, but the row will change.
A$1Only the row reference is fixed. It will not change during a fill or copy, but the column will change.

<tbody>
</tbody>
If you select all or part of a formula in the formula, you can press F4 to cycle range reference between the 4 styles (1 relative and 3 absolute).
Even with an absolute referencing style, Excel will still change row and column references when you insert a row or column. To have a truly absolute cell reference that will not change under any circumstances, use the INDIRECT function. For example =INDIRECT("A1") will always refer to cell A1, regardless of any changes made to the worksheet. This works because Excel does not interpret the string "A1" as an address. Instead, it treats it as plain text and therefore does not change it.
A common use of mixing absolute and relative range specifications is to create a running total of a column of number. For example, if you have data in cells A1:A10, the formula =SUM(A$1:A1) in cell B1 and filled down to cell B10 will return the running total for the numbers in column A.

Source:-
Relative And Absolute Range References
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,739
Members
449,050
Latest member
excelknuckles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top