+ Reply to Thread
Results 1 to 5 of 5

Need VBA for concatenate, find and replace, then remove duplicate

  1. #1
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Need VBA for concatenate, find and replace, then remove duplicate

    Hello,

    I'm searching for a VBA that can help me Concatenate 2 columns and then find and replace "DALLAS MANUFACTURING COMPANY" to "GOOGLE and then remove any duplicate values. Finally I want to seperate text and number to have text in one column and number in seperate column. Please see the attached. Thank you.

    Test.xlsx

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need VBA for concatenate, find and replace, then remove duplicate

    without VBA

    see the result.

    1) CTRL + H

    find DALLAS MANUFACTURING COMPANY

    replace by google

    2) make a header on the sheets

    3) make a table of your data

    4) insert the formula in D2

    5) Data => remove duplicates on colum D

    6) you could delete column D (or hide column D) afterwards.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Need VBA for concatenate, find and replace, then remove duplicate

    Thanks for response. I need a macro to do it because it belongs to one of my master sheet and it needs automation to complete when assign to speacific buyers. Could you help me then?

  4. #4
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Need VBA for concatenate, find and replace, then remove duplicate

    BTW, your method did not seperate text and number after remove duplication

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need VBA for concatenate, find and replace, then remove duplicate

    Record the actions above with the macro-recorder and you get the code you need.

    And for your post #4.

    In column B there is tekst.

    In column C there is a number.

    I think this is what your asked for.

    As already said, you can delete column D (if you want).
    Last edited by oeldere; 07-15-2013 at 03:45 PM.

+ 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. [SOLVED] Need to find if duplicate values exist in a column, concatenate cells and then delete
    By Siemieniuk in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-22-2017, 07:22 PM
  2. [SOLVED] Find and Remove Duplicate Entries
    By ohlrj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-11-2012, 09:55 AM
  3. If statement, Find Replace, Concatenate in VBA code
    By almouchie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-19-2012, 05:27 AM
  4. Replies: 1
    Last Post: 01-26-2012, 10:06 AM
  5. Remove a row using find and replace?
    By jonnyboy111 in forum Excel General
    Replies: 6
    Last Post: 09-29-2011, 02:32 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