+ Reply to Thread
Results 1 to 15 of 15

Combine data with identical name

  1. #1
    Registered User
    Join Date
    09-17-2012
    Location
    Netherlands
    MS-Off Ver
    Office 2010 Plus
    Posts
    15

    Question Combine data with identical name

    Hello people!

    Currently trying to figure out how to do this, but not quite sure on how to accomplish this. Any help is appreciated.

    I basically have a order sheet, with quantity requested and a menu name. I'd like to copy all the menu's that are being ordered, and combine the menu's if any are identical.


    Example:

    Please Login or Register  to view this content.
    I'd like to copy the whole Menu row to my other sheet, and combining MENU 3 (since there are 3) But, the quantity still has to fall under the specific order column like below:


    Please Login or Register  to view this content.
    I can't seem to paste the values properly in the code, look at the attached example if my question is still unclear.


    The excel data I work with is massive, i have tried using macroes but that doesn't work since it doesn't combine any identical names. Surely there is a function that I can use? or do I have to work with vba.

    Any suggestions on how to tackle this?


    Thank you in advance,
    -Nick
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Combine data with identical name

    Hi,

    in sheet2!C2 to be copied across

    =Sumifs(Sheet1!B$3:B$17,Sheet1!B$5:B$19,$A2)

    If you don't need to see zeros, customize cells format:

    #,#,


    Hope it helps
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    09-17-2012
    Location
    Netherlands
    MS-Off Ver
    Office 2010 Plus
    Posts
    15

    Re: Combine data with identical name

    It works, but not really what I meant but that's my bad. Thanks!

  4. #4
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Combine data with identical name

    Hi. Thanks for feedback. Mine was a simple workaround. i suspected it was not you were asking. I hope answers are coming


    Cheers

  5. #5
    Registered User
    Join Date
    09-17-2012
    Location
    Netherlands
    MS-Off Ver
    Office 2010 Plus
    Posts
    15

    Re: Combine data with identical name

    Hi cana,

    Basically wanted this:

    Please Login or Register  to view this content.


    I would like for the combined menu's to be copied to my Sheet2!A2. But I need the quantity that corresponds with the menu as well. Have a look at this new attachment, it's rather hard for me to explain it properly.(Sheet2 has the wanted outcome).

    I do believe I can some use of your formula =Sumifs(Sheet1!B$3:B$17,Sheet1!B$5:B$19,$A2), just not quite sure how to implement it.


    Thanks in advance!
    Attached Files Attached Files

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Combine data with identical name

    If the sort order of the final list is flexible:

  7. #7
    Registered User
    Join Date
    09-17-2012
    Location
    Netherlands
    MS-Off Ver
    Office 2010 Plus
    Posts
    15

    Re: Combine data with identical name

    Hi FlameRetired,

    Thank you for the reply.

    That's one hell of a formula, thanks for that. I don't believe I can use that cause of the array, since there will be allot of data added and removed from my Sheet2, let me see if that's usable on my original file and hopefully wrap my head around the formula.

    Any idea on how to get the quantity along as well?

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Combine data with identical name

    Quote Originally Posted by y0brah View Post
    Hi FlameRetired,

    Thank you for the reply.

    That's one hell of a formula, thanks for that. I don't believe I can use that cause of the array, since there will be allot of data added and removed from my Sheet2, let me see if that's usable on my original file and hopefully wrap my head around the formula.

    Any idea on how to get the quantity along as well?
    If you use this:
    I failed to mention that with this particular formula: pre-select the entire range and array commit the range all at once.

    BTW: this draws only from the first list where all the Menu# are listed. I don't follow how the second list was derived. If say Menu4 gets added to the second list only this formula will not do what you want. Do we need to start over, again?

    I need to work on interpreting the rest of your question based upon the data.........i.e. I don't even know what the questions are, yet.

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Combine data with identical name

    OK.
    I get what you want the output to be, but I don't see the data and layout that you will be drawing all your source info from. Any chance you could update your workbook Sheet1 to give us an idea?

    Edit: Never mind. I down loaded the wrong file.

    The excel data I work with is massive,
    How massive....thousands of rows/columns?
    Last edited by FlameRetired; 10-13-2014 at 12:59 PM. Reason: answered my own question

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Combine data with identical name

    Try this simpler array formula in Sheet2 A2, and copy down to A23.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then enter this non-array formula in C2 of Sheet2. Copy down and across.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The effect of the first formula above will be to sort your unique Menu items from Sheet1 B5:G5. This will scatter your quantities on Sheet2 C2:L23 in a different pattern than your example, but it still works, and all the numbers from Sheet1 check out.

    Does this do what you want?
    Last edited by FlameRetired; 10-13-2014 at 03:33 PM. Reason: typo

  11. #11
    Registered User
    Join Date
    09-17-2012
    Location
    Netherlands
    MS-Off Ver
    Office 2010 Plus
    Posts
    15

    Re: Combine data with identical name

    Quote Originally Posted by FlameRetired View Post
    OK.
    I get what you want the output to be, but I don't see the data and layout that you will be drawing all your source info from. Any chance you could update your workbook Sheet1 to give us an idea?

    Edit: Never mind. I down loaded the wrong file.


    How massive....thousands of rows/columns?
    Thanks for the reply. Well it's massive for me, about 150 rows and 30 columns, when filled.


    Let me try out your formula's and i'll get back to you asap. Cheers


    -I can't seem to use the formula's, I keep having to change , to ; (maybe compatibility issue?) and then comes up with Cannot change this array.
    Last edited by y0brah; 10-13-2014 at 04:29 PM.

  12. #12
    Registered User
    Join Date
    09-17-2012
    Location
    Netherlands
    MS-Off Ver
    Office 2010 Plus
    Posts
    15

    Re: Combine data with identical name

    Double post, my bad
    Last edited by y0brah; 10-13-2014 at 04:42 PM. Reason: Double post

  13. #13
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Combine data with identical name

    Quote Originally Posted by y0brah View Post

    -I can't seem to use the formula's, ................ and then comes up with Cannot change this array.
    Just select the entire range, press the F2 key and then just Ctrl+Enter.....not array Ctrl+Shift+Enter. That will release the array.
    Last edited by FlameRetired; 10-13-2014 at 05:31 PM.

  14. #14
    Registered User
    Join Date
    09-17-2012
    Location
    Netherlands
    MS-Off Ver
    Office 2010 Plus
    Posts
    15

    Re: Combine data with identical name

    After a small struggle, I actually managed to get it to work using your formula and it does suffice my needs.

    Thank you, FlameRetired, much appreciated.

  15. #15
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Combine data with identical name

    Glad it worked.

+ 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] Combine identical macros of different worksheets into one.
    By Sarangsood in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-17-2013, 06:26 AM
  2. Trying to combine two spreadsheets with one identical column header
    By Gypsum in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-07-2013, 08:10 AM
  3. Combine quantity of identical product names
    By n8custerwv in forum Excel General
    Replies: 4
    Last Post: 07-07-2011, 12:51 AM
  4. combine identical cells and get count
    By cclough27 in forum Excel General
    Replies: 22
    Last Post: 06-11-2008, 04:01 AM
  5. How do I combine multiple whooksheets with identical columns
    By HF in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-04-2005, 09:06 AM

Tags for this Thread

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