# Repeating formula in other cells

#### steve3730

##### New Member
I have the below formula in my excel file and I have the formula repeating down. When I drag it down B21 changes to B22,B23,B24 etc and that is exactly what I want it to do, but D6 I want to stay the same the whole way. But when I drag it it changes to D7,D8,D9 etc. How can I repeat the formula have the B21 change but not the D6?

=IFERROR(VLOOKUP(\$B21,CHOOSE(D6,'100'!\$A\$2:\$D\$21471,'1400'!\$A\$2:\$E\$21471),3,0),"")

Thanks for the help
-Steve

### Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Make it absolute:

=IFERROR(VLOOKUP(\$B21,CHOOSE(\$D\$6,'100'!\$A\$2:\$D\$21471,'1400'!\$A\$2:\$E\$21471),3,0),"")

\$D\$6

Thanks guys! Knew it was going to be something simple but was having trouble finding the answer on google

You are welcome.

Replies
1
Views
546
Replies
2
Views
542
Replies
11
Views
502
Replies
1
Views
2K
Replies
3
Views
427

1,196,057
Messages
6,013,172
Members
441,751
Latest member
336448

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

### Which adblocker are you using?

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

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