+ Reply to Thread
Results 1 to 12 of 12

Load data's Update for multiple records using vba

  1. #1
    Forum Contributor
    Join Date
    02-19-2014
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    308

    Load data's Update for multiple records using vba

    Hi There,

    Good evening all,

    Like i have been allocated to work on the below item..i tried in one module,but am failing..below is my requirement.


    So there are two things i have to do using vba macros..

    1) the vendors (rows) in this sheet should be checked by the following condition:
    vendors with ZM01, ZM07, ZM11 account group (column D) should not have the same DUSN number (column G). You can use column H for the vendor comparision. Unfortunately at this point we don't have unique ids If it has then make all the rows for that vendor "FAILED"
    2) this is the harder one. We should check if the vendor names are the same or not. If not, then "FAILED"


    Kindly help me with recoding vba for the scenario..

    Attaching the file for referncce

    lax
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    02-19-2014
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Load data's Update for multiple records using vba

    Can anyone please help me with this..let me know if you need more details on that?

  3. #3
    Forum Contributor
    Join Date
    02-19-2014
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Load data's Update for multiple records using vba

    Adding additional information:

    so basically we should check the column H first.
    For instance if you found 3 similar match of "1ST MILESTONE LTD",
    then first you should check if it has id in the column G, if not then "FAILED",
    if there is Id, then you should check further if the corresponding records in the column G crosschecked with column D contains unique records only.

    For example:


    ZM01,396085586,1ST DEFENSE LTD
    ZM07,396085586,1ST DEFENSE LTD
    ZM11,396085586,1ST DEFENSE LTD

    These 3 rows above should be "FAILED", because ZM01,07,11 have the same ID.

    ZM01,396085586,1ST DEFENSE LTD
    ZM07,396085587,1ST DEFENSE LTD
    ZM11,396085588,1ST DEFENSE LTD


    These 3 rows above should be "OK", because ZM01,07,11 have different IDs


    I hope I could manage to explain it clearly.


    Thanks,
    Lax

  4. #4
    Forum Contributor
    Join Date
    02-19-2014
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Load data's Update for multiple records using vba

    Can some one please advice..

  5. #5
    Forum Contributor
    Join Date
    02-19-2014
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Load data's Update for multiple records using vba

    I tried with the below formula's and am failing..please help.

    What am doing wrong...

    Please Login or Register  to view this content.
    Lax
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    02-19-2014
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Load data's Update for multiple records using vba

    Hi i applied this formula also..but im failing..Please help me

    Please Login or Register  to view this content.

    Lax
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Load data's Update for multiple records using vba

    Hi Laxmannan

    sorry to say i didnt get your query , could you please explain what exactly u want output.
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  8. #8
    Forum Contributor
    Join Date
    02-19-2014
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Load data's Update for multiple records using vba

    Dear Naveed,

    Please leave all my query as it is not produce output..My requirement is below:

    So there are two things i have to do using vba macros..

    1) the vendors (rows) in this sheet should be checked by the following condition:
    vendors with ZM01, ZM07, ZM11 account group (column D) should not have the same DUSN number (column G). You can use column H for the vendor comparision. Unfortunately at this point we don't have unique ids If it has then make all the rows for that vendor "FAILED"
    2) this is the harder one. We should check if the vendor names are the same or not. If not, then "FAILED"

    Additional information:

    so basically we should check the column H first.
    For instance if you found 3 similar match of "1ST MILESTONE LTD",
    then first you should check if it has id in the column G, if not then "FAILED",
    if there is Id, then you should check further if the corresponding records in the column G crosschecked with column D contains unique records only.

    For example:


    ZM01,396085586,1ST DEFENSE LTD
    ZM07,396085586,1ST DEFENSE LTD
    ZM11,396085586,1ST DEFENSE LTD

    These 3 rows above should be "FAILED", because ZM01,07,11 have the same ID.

    ZM01,396085586,1ST DEFENSE LTD
    ZM07,396085587,1ST DEFENSE LTD
    ZM11,396085588,1ST DEFENSE LTD


    These 3 rows above should be "OK", because ZM01,07,11 have different IDs

    The solution either it may be a vba or formula..anythng is fine for me..Am pulling out my hair..i tried a lot.



    Thanks in advance.
    Laxman

  9. #9
    Forum Contributor
    Join Date
    02-19-2014
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Load data's Update for multiple records using vba

    I have attached the file in the Post#1..Same file..

  10. #10
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Load data's Update for multiple records using vba

    Hi laxmanann

    See if this works for you
    Please Login or Register  to view this content.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  11. #11
    Forum Contributor
    Join Date
    02-19-2014
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Load data's Update for multiple records using vba

    Thanks Jaslake..It is working like a charm.Added reputation too.

    Lax

  12. #12
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Load data's Update for multiple records using vba

    You're welcome...glad I could help. Thanks for the Rep.

+ 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. Import data and update records
    By siroco79 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-28-2013, 09:39 AM
  2. [SOLVED] need to be able to update records with button click and delete records sample included
    By unreal11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2013, 11:45 PM
  3. Search records from userform and update data list
    By craigw27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-30-2013, 08:55 AM
  4. Vlookup - How to get it to search and update multiple records
    By androgynyrocks in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-31-2012, 12:29 AM
  5. Creating a Custom Data Entry Form to Update Multiple Excel Records at Once
    By Scotty81 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-19-2009, 04:30 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