+ Reply to Thread
Results 1 to 15 of 15

Extract client names from the list - vba

  1. #1
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Extract client names from the list - vba

    Hey!

    I have the list of clients name. Some names are repeated.
    example.
    1.Saudi Arabian Saipem
    2.NDT Services
    3.MMG Group
    4.Saudi Bin-Ladin Group(SBG)
    5.Saudi Arabian Saipem
    6.Saudi Bin-Ladin Group(SBG)
    7.MMG Group
    8.MMG Group
    9.NDT Services.

    Here I need to extract the client only once. So the answer should be

    1.MMG Group
    2.Saudi Arabian Saipem
    3.NDT Services
    4.Saudi Bin-Ladin Group(SBG)

    Can anyone help me in this regard. Thanks in advance.

    Charles

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Extract client names from the list - vba

    Hello Charles,

    Does this relate to your previous project that I helped you with?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: Extract client names from the list - vba

    Hi,

    This assumes your list in Column A

    Please Login or Register  to view this content.
    Thank You, Mike

    Some Helpful Hints:

    1. New members please read & follow the Forum Rules
    2. Use Code Tags...Place[code]Before the first line and[/code] After the last line.
    3. If you are pleased with a solution mark your post SOLVED.
    4. Thank those who have help you by clicking the scales at the top right of the post.

    Here...

  4. #4
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Thumbs up Re: Extract client names from the list - vba

    Quote Originally Posted by Leith Ross View Post
    Hello Charles,

    Does this relate to your previous project that I helped you with?
    Of course,

    I have the old list of four year record. And now I like to use with the project
    you helped me.

    First I need to extract and form the list of client name from those period
    which is about 5 to 6000 records in which one client name was repeated.
    After consolidating a client's list, I can make use with new vba program.

    Thank you for your kind help.

    charles.

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Extract client names from the list - vba

    Hello Charles,

    As I understand it, you want to remove duplicate the names in column "A" and import this new list into another workbook. Is that correct?

  6. #6
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Re: Extract client names from the list - vba

    Quote Originally Posted by realniceguy5000 View Post
    Hi,

    This assumes your list in Column A

    Please Login or Register  to view this content.
    It still keeps repeated "A1" value.
    The value in cell "A1" is repeating not deleting.

    There is 75 client names starts from cell A1 and goes repeated towards the bottom.
    I need to remove all repeated client names and keep only 75 clients.

    thank you for your help.

    charles

  7. #7
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Re: Extract client names from the list - vba

    Quote Originally Posted by Leith Ross View Post
    Hello Charles,

    As I understand it, you want to remove duplicate the names in column "A" and import this new list into another workbook. Is that correct?
    Exactly.

    But no need into another workbook, just another column is enough or
    just delete repeated (duplicate) name.

    Thank you.
    charles

  8. #8
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Extract client names from the list - vba

    Hello Charles,

    I though this might change the Data sheet in your project. If you want to place the data in another column then realniceguy5000's solution will work fine. If you need to delete the entire row if a duplicate is found then some adjustment to the macro will be needed.

  9. #9
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Re: Extract client names from the list - vba

    Quote Originally Posted by Leith Ross View Post
    Hello Charles,

    I though this might change the Data sheet in your project. If you want to place the data in another column then realniceguy5000's solution will work fine. If you need to delete the entire row if a duplicate is found then some adjustment to the macro will be needed.
    Yes, I try to delete the duplicate value in row "A",
    But I don't think it is easy for me.

    I would be much thankful if you can help me.
    charles

  10. #10
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Extract client names from the list - vba

    Hello Charles,

    Can you post the workbook with the full list that needs to duplicates removed?

  11. #11
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Re: Extract client names from the list - vba

    Quote Originally Posted by Leith Ross View Post
    Hello Charles,

    Can you post the workbook with the full list that needs to duplicates removed?
    Yes ,

    Here I attached the file contains partial list.

    Can you help me in this file?

    charles
    Attached Files Attached Files

  12. #12
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Extract client names from the list - vba

    Hello Charles,

    I modified realniceguy5000's macro a little and attached it to a button. here is the revised macro.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  13. #13
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Re: Extract client names from the list - vba

    Quote Originally Posted by Leith Ross View Post
    Hello Charles,

    I modified realniceguy5000's macro a little and attached it to a button. here is the revised macro.
    Please Login or Register  to view this content.

    Thank you very much.

    Charles

  14. #14
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Thumbs up Re: Extract client names from the list - vba

    Quote Originally Posted by Leith Ross View Post
    Hello Charles,

    I modified realniceguy5000's macro a little and attached it to a button. here is the revised macro.
    Please Login or Register  to view this content.

    Thank you very much. For your guide.
    thank you.

    Charles

  15. #15
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Extract client names from the list - vba

    Hello Charles,

    If this solution works and you have no further questions then please marked this post as solved.

+ 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