Do Vlookup from Mutiple file If error using VBA

ssingh75

Well-known Member
Joined
Jan 5, 2012
Messages
518
Hi All,

I'he 4 files one is master where data needs to be filled by vlookup and other 3files with input data from where data needs to picked.

e.g.,
Master File
Description</SPAN> Jan</SPAN> Feb</SPAN>Mar</SPAN>
Chandan</SPAN>
Amar </SPAN>
Sohel</SPAN>
Sameer


Jan-2012

Description</SPAN>Qty</SPAN>Price</SPAN>Amt</SPAN>
Chandan</SPAN> 32</SPAN>
Amar </SPAN> 326</SPAN>
Sohel</SPAN> 2365</SPAN>
Feb-2012

Description</SPAN>Qty</SPAN>Price</SPAN>Amt</SPAN>
Chandan</SPAN> 265</SPAN>
Amar </SPAN> 32</SPAN>
Sameer</SPAN> 236</SPAN>

<TBODY>
</TBODY><COLGROUP><COL span=4></COLGROUP>


Mar-2021

Description</SPAN>Qty</SPAN>Price</SPAN>Amt</SPAN>
Chandan</SPAN> 65</SPAN>
Amar </SPAN> 32632</SPAN>
Sohel</SPAN> 6532</SPAN>
Sameer</SPAN> 656</SPAN>

<TBODY>
</TBODY><COLGROUP><COL><COL><COL><COL></COLGROUP>


First master data will match from sheet1 of itself if any error occur or value =0 thenn it will go the file jan-2012 and search the caption "Amt" and do the vlookup from that file.

Hope this is clear.

</SPAN>

<TBODY>


</TBODY><COLGROUP><COL span=4></COLGROUP>
</SPAN>

<TBODY>
</TBODY><COLGROUP><COL><COL><COL span=2></COLGROUP>
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,219,161
Messages
6,146,657
Members
450,706
Latest member
LGVBPP

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