How can I use a formula throughout the column??

Tig

New Member
Joined
Oct 4, 2011
Messages
2
Hi,

I am using the INDEX and MATCH functions to match two tables that I have and return a value. I am wanting to apply the formula to all cells in the column but when I drag the formula down it changes all of the cell numbers not just the one variable. I have inputted the formula into 10 cells and dragged them together to see if it can detect my pattern but this does not work either.

My code

=INDEX(Z2:Z36,MATCH(A2,Y2:Y36,0))

I want the next to be =INDEX(Z2:Z36,MATCH(A3,Y2:Y36,0))

and for just the A number to change

BUT it seems to be changing it to

=INDEX(Z3:Z37,MATCH(A3,Y3:Y37,0))


Is there any way of doing this?

Thanks
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Dollar signs. =A1, =$A$1, =$A1, =A$1.

The dollar locks whichever part of the cell refs follows it.
 
Upvote 0
Doofusboy, Expiry - thanks for this - this has worked a treat!

Rick - thank you - I will use this as a resource, I am fairly new to excel, I can do the basics but want to learn more.

Have you got any more resources that you would recommend?

Thanks
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,285
Members
452,902
Latest member
Knuddeluff

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