+ Reply to Thread
Results 1 to 12 of 12

How to merge similar data

  1. #1
    Forum Contributor bengaluru's Avatar
    Join Date
    06-10-2005
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    150

    Red face How to merge similar data

    I have a large spreadsheet where some data are similar. for Example

    Robert $1000
    Louis $600
    Glen $350
    Doreen $2300
    Robert $500
    Louis $600
    Glen $750
    Doreen $300
    Robert $3000

    I want to merge all Robert together, all Louis together and show as one Robert $4500. How can I do that ? Someone suggesed that I should use a Look up. Can someone give me the formula for this please ??

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How to merge similar data

    LOOKUP wont work, it just looks up one value.
    Pivot table would be best but prob complicated to use.

    Type the names once only in a new sheet in column A, say Sheet 2

    in Sheet2!B1
    =SUMIF(Sheet2!A1,Sheet1!$A$1:$A$1000,Sheet1!$B$1:$B$1000)

    Adjust the 1000 for however many rows there are
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: How to merge similar data

    One solution possibility: Sort on the name. Use the subtotal function found in 2003 on the Data Tab.

    Here is a tutorial: http://www.youtube.com/watch?v=X5w5uWJDct8
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Contributor bengaluru's Avatar
    Join Date
    06-10-2005
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    150

    Re: How to merge similar data

    Oh My God ........you guys are the best. Thanks Special-K and alansidman for the quick replies. I will try te subtotal function, which looks like it would work.

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

    Re: How to merge similar data

    In that case, the already mentioned, pivot table will also work.
    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.

  6. #6
    Forum Contributor bengaluru's Avatar
    Join Date
    06-10-2005
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    150

    Re: How to merge similar data

    Quote Originally Posted by Special-K View Post
    LOOKUP wont work, it just looks up one value.
    Pivot table would be best but prob complicated to use.

    Type the names once only in a new sheet in column A, say Sheet 2

    in Sheet2!B1
    =SUMIF(Sheet2!A1,Sheet1!$A$1:$A$1000,Sheet1!$B$1:$B$1000)

    Adjust the 1000 for however many rows there are
    There may be something missing because your formula picks up only one value, say if I have three values for Robert, it does not pick up the other two.
    Last edited by bengaluru; 01-24-2013 at 03:34 PM.

  7. #7
    Forum Contributor bengaluru's Avatar
    Join Date
    06-10-2005
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    150

    Re: How to merge similar data

    Can someone please tell me how I can merge all similar data into one data ?

    Your help is much apprecaited.

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: How to merge similar data

    I don't understand. Please post an example of what you are trying to do.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: How to merge similar data

    Based on the sample you provided, try this in column C, copied down - adjust ranges as needed...
    =IF(COUNTIF($A$1:A1,A1)>1,"",SUMIF($A$1:$A$9,A1,$B$1:$B$9))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  10. #10
    Registered User
    Join Date
    01-24-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: How to merge similar data

    I am trying to do something similar.
    I have a spreadsheet I use at work with a different worksheet for each day displaying what the staff have achieved and a sheet for a weekly total, bearing in mind that the staff can vary from day to day.
    How can I merge the data from all the other sheets in to the weekly total sheet to show the total productivity for that week?

    Here is a simple example of what I am trying to achieve..

    help.jpg

    And here is the file..

    help.xls


    Cheers guys!
    Last edited by hello its dean; 01-24-2013 at 07:48 PM.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: How to merge similar data

    Hi hello its Dean
    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.

  12. #12
    Registered User
    Join Date
    01-24-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: How to merge similar data

    Ah sorry dude. I should of read the rules first.

    I will make a new thread now.

+ 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