• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

VLOOKUP between files automatically using vba code based on masterfile

Sonia7717

New Member
Dear All,

i am new to VBA and really have no idea how to even start coding except for auomation of formatting in excel.

I am very sorry to ask this without any background code like may of you post to give a start... but i really have no idea how to start.

I do a lot of repeat Vlookup everymonth for about 45 excel tables... and it really takes a lot of my time to do this manually. I wonder if you can please help me with a solution whihc make my life simpler.

I have 45 customer tables for each city one. And i also have 45 different customer details files by each city. The scores and discount rates change everymonth based on savings and spends. I do a vlookup every month for each file and get the SCORE and DISCOUNT RATE into my base file. I have a master file which says from whihc file i need to copy for each file.

Is it possible that i open the MASTERFILE and run the vba code so that vba can open file one, say BOMBAYCUSTOMER201601 and then open the corresponding BOMBAYCUSTDETAILS201601 file, and vlookup the customer name and bring the column B and Column E into the BOMBAYCUSTOMER201601. Also, the number of records can keep varying...

I would be very grateful if someone can please help me with such a code. I have attatched sample files and master file. Many thanks in advance.

Best regards
Sonia
 

Attachments

  • BOMBAYCUSTDETAILS201601.xlsx
    9.1 KB · Views: 1
  • BOMBAYCUSTOMER201601.xlsx
    8.6 KB · Views: 0
  • DELHICUSTDETAILS201601.xlsx
    9.1 KB · Views: 0
  • DELHICUSTOMER201601.xlsx
    8.7 KB · Views: 0
  • MASTERFILE.xlsx
    8.4 KB · Views: 2
Back
Top