+ Reply to Thread
Results 1 to 6 of 6

Search,update, and add details on master file

  1. #1
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Search,update, and add details on master file

    Hi i need a little help from you guys, kindly see attach file to visualize my problem, On my file I have MasterFile and File sheet, on File sheet are the details and it will update the master file based on this details, for example if the "Employee Name" exist on "MasterFile" sheet it will update only the Salary column on "MasterFile" if the employee name not on MasterFile it will add the details on it's respective department as you see the format of MasterFile,I want to achieved this using VBA/MACRO,thank you
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Search,update, and add details on master file

    Any reason why you have the MasterFile formatted this way? It will be much easier to maintain if you avoid merged cells and blanks in between.

    Also, the department info is already present in column B, why do you have it again in column A?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Re: Search,update, and add details on master file

    That is the default format of Master File, it is like put details alternate or 1 rows must be empty before the details/data .

  4. #4
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Re: Search,update, and add details on master file

    I just modified the file and what will be the final output,kindly see attachment please. Is there any way to updated it even though the master file has a plenty of empty rows?

    As you noticed,master file looks organized since the output/design is alternately compose of data and empty rows
    Attached Files Attached Files

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Search,update, and add details on master file

    I tried working on the code for you but its getting pretty messy.

    I have a solution in mind but it can take a lil while. What i plan on doing is - Copy the contents of Masterfile and File to a new temp tab, compare them line by line and then re-input values into a fresh MasterFile.

    Will this work for you?

  6. #6
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Re: Search,update, and add details on master file

    Yes it is,that will be good idea. thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1