+ Reply to Thread
Results 1 to 8 of 8

Concatenate cells? and delete duplicates

  1. #1
    Registered User
    Join Date
    03-23-2010
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Concatenate cells? and delete duplicates

    Hi there, I'm a newbie and I have an excel 2007 spreadsheet that I would like to merge the values from 3 columns against the common company name and then delete duplicate company names from (column A) - Don't know if im explaining properly, but i have attached example of what i have vs. what i would like as a result.

    I need to identify the duplicates, concatenate the "3 Columns values (Currency, Year and Total)" to the appropriate company the first row, and delete the duplicate company I guess...???

    Any help on how to do this would be greatly appreciated!
    Attached Files Attached Files
    Last edited by scorp; 03-23-2010 at 12:24 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    re: Concatenate cells? and delete duplicates

    I'll look at your sheet. Meanwhile, read through the Forum Rules so you can use and follow them effectively. For instance, you'll need to EDIT that post above ...GO ADVANCED and then correct the title.

    Thread titles are unemotional descriptions of the topic, appropriate to a Google Search.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    re: Concatenate cells? and delete duplicates

    Also, does your sample data represent your ACTUAL layout? Do the titles of the table appear in row 3 and data starts in row 4? Or are the titles in row 1, more common?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Concatenate cells and delete duplicates

    Scorp, I have a macro ready for you to test...fix that first post title so we can get it posted.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    re: Concatenate cells? and delete duplicates

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    Edited this time
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Concatenate cells? and delete duplicates

    Thanks Roy.

    Scorp, take out the blank rows at the top of your data so the titles are on row1, the data in row2. Then try this macro:
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-10-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Concatenate cells? and delete duplicates

    below is a bit shorter:

    Please Login or Register  to view this content.

    also this requires the top left corner of your data table to be in A1. You can alter this and the code or create a named range as required.

  8. #8
    Registered User
    Join Date
    03-23-2010
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Concatenate cells? and delete duplicates

    Thanks JBeaucaire, the code worked and I am so pleased - but now i have a new sheet that requires the same type of thing, but dont really understand how to edit the code so that it works for this attachment (see new attachment)...

    The company is the main identifier and need to merge columns C D E F G H I J K L M and S T U V W X into the row with Columns N O P Q R, if that makes any sense.

    Urgh Excel!
    Attached Files Attached Files
    Last edited by scorp; 03-23-2010 at 07:31 PM.

+ 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