+ Reply to Thread
Results 1 to 4 of 4

Macro to push blank data field records in the end.

  1. #1
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Macro to push blank data field records in the end.

    Dear Forum,

    Daily, I work on an Incremental Data and there are certain data fields which are missing as this common data is circulated to all departments some fields are missing to prevent data leak..

    However, for my work I need to have all the columns / data fields filled with values so the person sending data sends 2 Files one with Masked Data and another which has the Missing Information which I have to collate using vlookup on a daily basis, this is very taxing and a very bad methodology to follow..

    However, on the pretext of securing the confidentiality of the data, the management does not want to change.
    So, I have to do this rigorous task daily...of collating the missing chunks..

    What I normally do is ? I create a copy of the original sheet in the same workbook Ex: Main Sheet is "Log" so the copy would be "Log (2)" and then I put a Auto-Filter and then put a Custom Filter on the Columns which has missing data and then Cut this data into a NEw Sheet and Name it as "Masked Log as on Day - 1" and then go back to Sheet Log (2) and then delete those records and then OPEN/REMOVE the filter and then copy paste the missing records from the just created sheet "Masked Log as on Day - 1" and then paste them exactly below the last filled record in the "Log (2)" Sheet and then do a VLOOKUP based on a specific unique EMp Id Column from a another WorkBook which has a Sheet called as "Masked Log" and retrieve the missing details.

    As this Masked details are send on random basis there is every possibility that certain details would remain missing which remain blank in the final report and so we push the records down.


    So can someone help me with a Macro to achieve the same..

    I have recorded a Macro but I dont know how to make it Dynamic..as everytime different no of records would be missing and I want this to run till all the details are filled and then after checking for all the missing details from the Masked Log Sheet in the other workbook we do one more round of pusing the data down further so that it becomes easy to track in the final report..


    Please Login or Register  to view this content.
    I have coloured this range to understand that these records came without the details if there is any other scrutiny to be carried out..later..

    Regards
    e4excel

  2. #2
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Macro to push blank data field records in the end.

    Dear Forum,

    I have made a sample workbook for explaining the requirement, the Recorded Macro was done on the actual data and therefore the Columns would not match however this file is a dummy after removing the sensitive data columns...

    There are 4 Sheets in this Workbook where the Main Sheet is "Log" which has some data fields missing coloured in yellow...

    In the Sheet "Log (2)" the same records go down..

    What I do ? I apply a Filter select the blank records copy them in a new sheet and then delete them from Log (2) and then paste them back from "Masked Data as on 1-Nov-13"

    in the end below the last record in the Sheet "Log (2)" ..

    The same data is present in another sheet "Masked Log" so by applying lookup formula I can get it back in the Sheet "Log (2)" and then again whatever is "#N/A" has to again go down further..

    So all the records with some details out of these 3 columns i.e Application ID(Log Cases) in both the columns and the Contract No...need to get data back from Masked Log if possible or else just be pushed down to distinguish it from other filled data in the same Sheet "Log (2)"

    The Yellow Fill colour records are the ones which are present in Masked Log Sheet and the one in green is not available...so can this macro loop till it fills back the data and then again pushes the records down after doing an INDEX LOOKUP from Masked log to the "Log (2)" Sheet..


    Regards
    e4excel
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Bump No response

    Dear Forum,

    Anyone has any suggestions to this daily task for Multiple sheets..

    Regards
    e4excel

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Macro to push blank data field records in the end.

    Hi e4excel,
    try it (if I understand correctly)
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Delete all blank records within data set
    By bcn1988 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-10-2013, 06:09 AM
  2. [SOLVED] Push specific data to Access Table/records
    By Ubernard in forum Access Programming / VBA / Macros
    Replies: 5
    Last Post: 04-04-2013, 11:31 AM
  3. Replies: 3
    Last Post: 01-06-2012, 11:16 PM
  4. Advanced Filter Macro With Field Not Blank
    By mr63249 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-05-2008, 11:10 AM
  5. Extracting data from rows where one field is blank
    By BillBurton57 in forum Excel General
    Replies: 5
    Last Post: 08-11-2006, 12:00 PM

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