browse for excel file and getting its path then Vlookup Code for entire column using this file path

bebo201022

New Member
Joined
Sep 24, 2017
Messages
3
0 down vote
I am not good in writing full code till now and I need your help to create a code for browsing for any file and get this file path and using it in <code>VLOOKUP</code> formula which will be used in all non blank cells in the entire column of sheet 1.
More info:
Sheet2:
<code>A1:A5....(1,2,3,4,5)
B1:B5....(A,B,C,D,E)
</code> Sheet1:
<code>A1: 1
A2: 2
A3: 3
A4: 4
A5: 5
B1= Vlookup(A1,"path of sheet2",$A$1:$B$5,2,False)
B2= Vlookup(A2,"path of sheet2",$A$1:$B$5,2,False)
B3= Vlookup(A3,"path of sheet2",$A$1:$B$5,2,False)
B4= Vlookup(A4,"path of sheet2",$A$1:$B$5,2,False)
B5= Vlookup(A5,"path of sheet2",$A$1:$B$5,2,False)
</code>

<tbody>
</tbody>
 
Last edited by a moderator:

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,214,975
Messages
6,122,537
Members
449,088
Latest member
RandomExceller01

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