Lookups-changing the column ref when dragging formula

Helen

Board Regular
Joined
Feb 19, 2002
Messages
103
When I do a lookup, and I drag the lookup down/across, is there any way I can make the column/row number change as I drag?

e.g. =VLOOKUP(A1;$E$1:$F$6;2;FALSE)

when I then drag the formula down the
2 becomes a 3 then a 4 etc.

Thanks
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Thanks for the help, call me stupid but I don't understand it !!! I have tried seting the scenario up, but it doesn't seen to work?
 
Upvote 0
is it the semicolons messing it up rather than commas ?

vlookup(a1,range,3,false)

you have vlookup(a1;range;3 etc)


hth
Chris D
 
Upvote 0
No, my computer is set to use semi-colons because of a piece of software I have.

I just didn't understand the formula!!!
 
Upvote 0
oh !

well =row(a7) is asking excel to return the value of the row number of cell A7.... which is 7

so row(aa239) will equal 239

As you drag down A2 becomes A3 then A4 then A5 etc etc

so, row(a2)=2 and row(a3)=3 and row(a4)=4 etc etc

which is putting what you wanted into each succesive line of formula without having to type it in each time : you do it once with row(a2) and it takes care of the logic of incremental relativity

Yet another good one from our MVP :)
 
Upvote 0
I understand now - takes a while sometimes. thanks very much for your help.

Cool smiley too !!!
 
Upvote 0

Forum statistics

Threads
1,213,511
Messages
6,114,054
Members
448,543
Latest member
MartinLarkin

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