how to make column number movable in vlookup formula

genetist

Board Regular
Joined
Mar 29, 2013
Messages
75
Office Version
  1. 2016
Platform
  1. Windows
Hi to all,
I have data in two sheets, both sheets contains 253 columns data
for example sheet1
A B C D E F
AA BB CC DD EE FF

Sheet2 contains
A B C D E F
BB FF CC DD EE AA
Now i want to get data from sheet1 to sheet2 for columns A to F and i am using vlookup function for it but i need to change column number everytime, so that i have change column number for 253 times and it will be problematic for me. Is there any to put movable column to this vlookup?,
=vlookup(lookupvalue,table array,columnnumber,match), i want to make columnnumber movable so that i can drag that formula with out any problem.
I need help to solve this problem and help would be appreciated.
Thanks
Regards,
Genetist​
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
another option, have the column numbers in cells eg 2 in cell A1, 3 in A2. Your formula would then be =vlookup($B$2,$D$6:$KH$1500,A1,false). So when you copy across, A1 changes to A2 which will refer to 3 and so on.

Hope this is of assistance.
 
Upvote 0

Forum statistics

Threads
1,213,562
Messages
6,114,326
Members
448,564
Latest member
ED38

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