Vlookup or vba or code

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
533
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
Thanks in advance

I am using the following vlookup

Lookup value = C10
Table array =sheet1!$B$2:$GKX$5
Col index = 5041
Range lookup=0

Now problem is
I want to change the table array "sheet1!$B$2:$GKX$5" for coloumn from B to GKW

And also change the coloumn index accordingly, like 5040, 5039
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
I mean in coloumn E
Lookup value = C10
Table array =sheet1!$B$2:$GKX$5
Col index = 5041
Range lookup=0

Coloumn F
Lookup value = C10
Table array =sheet1!$C$2:$GKX$5
Col index = 5040
Range lookup=0

Coloumn G
Lookup value = C10
Table array =sheet1!$D$2:$GKX$5
Col index = 5039
Range lookup=0
 
Upvote 0
Just drop the column index number by 1 & you should be sorted.
 
Upvote 0
hi

i mean i want don't want to copy paste vlookup code on each column (because we have large number column, From E to GKX)

If we do it manually we need to change the in "Table array =sheet1!$C$2:$GKX$5", in every column C,D,E,F,G,H it will take more time

Also pls guide how can we paste it to in every column raws, i mean raw 11 to raw 420 in every column
 
Upvote 0
Hi
for column index
in column E use 5046-COLUMN()
then drag up to the column you want

I hope its is clear
 
Upvote 0
its not working, we need to change two points

(1) Table array =sheet1!$C$2:$GKX$5
Col index = 5040

(2)sheet1!$D$2:$GKX$5
Col index = 5039

(3)
sheet1!$E$2:$GKX$5
Col index = 5038

(4)sheet1!$F$2:$GKX$5
Col index = 5037

till the GKX and col index 2
 
Upvote 0
Can you tell where is the cell for each(1)(2)(3)....
 
Upvote 0
Hi;
Tel you what
See this and you manipulate to you requirement

="sheet1!"&ADDRESS(2;COLUMN()-3)&":"&"$GKX$5"
Good luck
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,535
Messages
6,120,090
Members
448,944
Latest member
sharmarick

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