urgent need help to have the code VBA for Vlookup

wadedaring

New Member
Joined
Aug 29, 2011
Messages
1
Is there anyone who can help me to give me the code in VBA for the Vloopkup formula?

I am having 2 excel files in my hand and there are over 80,000 lines+.it will take me a lot of time if i use the Vlookup formular to run the data.So i heard of using code VBA in macro that will be more effective and cost less time.

This is my formular.
the first one
=VLOOKUP(A2&D2,IF({1,0},'[sheet 1.xlsx]Sheet1'!$A$2:$A$75819&'[sheet 1.xlsx]Sheet1'!$D$2:$D$75819,'[sheet 1.xlsx]Sheet1'!$F$2:$F$75819),2,0)}

the second one:

=VLOOKUP(A2&D2,IF({1,0},'[sheet 1.xlsx]Sheet1'!$A$2:$A$75819&'[sheet 1.xlsx]Sheet1'!$D$2:$D$75819,'[sheet 1.xlsx]Sheet1'!$G$2:$G$75819),2,0)}

I am reallu in need if there is anyone who can help me on this issue. And all the help is highly appreciated. Thank you so much.And this is also my mail, if you want me to provide the original file: wadedaring@yahoo.com

THis is the format of these file.

Sheet 1:

A E F G
Pers.No. To Date Rec. hrs Target hrs
00038106 05.06.2011 17.000 40.000
00038106 12.06.2011 0.000 40.000
00038106 19.06.2011 0.000 40.000
00038106 26.06.2011 0.000 40.000

sheet2:

A B C D
HP ID EDS ID From date To Date
00071486 00000000 30.05.2011 05.06.2011
00071486 00000000 06.06.2011 12.06.2011
00071486 00000000 13.06.2011 19.06.2011
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,224,527
Messages
6,179,348
Members
452,907
Latest member
Roland Deschain

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