A Macro For Various Data Corrections From List

  • I have a list of incorrectly spelled or formatted data and also a list of that data corrected. Two lists on one sheet.
    I need to search across multiple other sheets for the "incorrect data" and place the correlating "corrected" cell from the corrected list, into the cell next to it.


    Example:


    Collumn I(Sheet1) is incorrect. Collumn M(Sheet1) is correct.
    I need to search a different collumn, collumn "B" for values from Collumn I(Sheet1) across multiple sheets for each individual value of Collumn I(Sheet1).. and when found, I need the corrected term from Collumn M(Sheet1) to be inserted into Collumn C(Multiple Sheets).



    I could really use the help, I've been on this for days doing it individually and without a macro it may take weeks.

  • Re: A Macro For Various Data Corrections From List


    Hi Bob


    This should be possible but please upload a small sample workbook to make it easier to provide a solution.

  • Re: A Macro For Various Data Corrections From List


    forum.ozgrid.com/index.php?attachment/45396/Great!! Thank you for your optimism.
    I hope the attachment works.


    Collumn A(List Sheet) is incorrect. Collumn B(List Sheet) is the intended value.
    I need to search a different collumn in a different sheet, collumn I(Sheet 1-Etc...) for values from Collumn A(List Sheet) across multiple sheets. When found, I need the corrected term from Collumn B(List Sheet) to be inserted into Collumn M(Sheet 1-Etc...)



    Thanks so much for your help.forum.ozgrid.com/index.php?attachment/45393/

  • Re: A Macro For Various Data Corrections From List


    I hope the optimism is justified!


    Give this a try:


  • Re: A Macro For Various Data Corrections From List


    re: post #5


    Please do not quote entire posts. When quoting follow these guidelines


    1. Quote ONLY if it is needed to add clarity or context for your reply. If so, then
    2. Quote ONLY the specific part of the post that is relevant - - not the entire post.


    This will keep thread clutter to a minimum and make the discussion easier to follow.
    Thanks

  • Re: A Macro For Various Data Corrections From List


    I need this to function exactly as it is currently with one addition. If it finds any cell in collumn i(ws-<>"List Sheet") any cell from Column (i) that that MATCHES the data from Column B(ws-List Sheet), I want it, instead of filling the cell in Column M with the contents form Column B(ws-List Sheet) like it does now, I need it to erase the contents in Column M and input an EMPTY cell..only for the ones that Match the data from Column B.


    Basically I just need to figure out how to add the phrase "If does match Column B from ws-"List Sheet" then return an empty cell into Column M(every sheet not equal to "List Sheet")".


    Does this makes sense?

  • Re: A Macro For Various Data Corrections From List


    To comply the rules here, please edit your post and add code tags around the code listing.


    Code tags format and colourise the code making it easier to tread and so follow the logic.


    You can edit your message by clicking the 'Edit post' link below the message.


    Code tags are added by highlighting the code and clicking the # button is the toolbar above the edit window.

  • Re: A Macro For Various Data Corrections From List


    I think it's just (not tested):


  • Re: A Macro For Various Data Corrections From List


    Thanks for getting back so quickly.
    I tried the code and it ran without errors but did not change the matched data cells(Matching Column B with Columns i). It didn't empty Columns (M) if Columns (i) matched Column (B).

  • Re: A Macro For Various Data Corrections From List


    Your code at the moment is only looking at sheet "SAP_EQ_Master" for the match. Are you still wanting to loop through all the other worksheets apart from "List Sheet"?

  • Re: A Macro For Various Data Corrections From List


    Thank you. I'd forgotten I used that for another project.
    I corrected that and it ran fine but now it is completely clearing out Column M from all worksheets other than "List Sheet". It didn't empty Columns (M) ONLY IF Columns (i) matched Column (B).

  • Re: A Macro For Various Data Corrections From List


    OK. To match to column B, try:

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!