+ Reply to Thread
Results 1 to 10 of 10

Combine and sum rows

  1. #1
    Registered User
    Join Date
    02-25-2021
    Location
    Stockholm
    MS-Off Ver
    Windows 7
    Posts
    10

    Combine and sum rows

    Hello,

    I have a sheet which I'll be using as a stock and inventory report. The sheet "Lagersaldo" need your help. I will add to this regularly, via "Lastat". I would like a code to combine rows in "LAGERSALDO" if they have D, E and L in common, and at the same time sum value of F. I have tried with multiple codes but i can't seem to tweak them to my needs. I've placed and IF formula with a nested RAND in L to keep pallet "not full pallets" separated and not merging. I've attached the file, please tell me if you can help or need more information. And please, I don't want to use a pivot table.

    Best regards,
    Joel
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-27-2010
    Location
    sYRIA
    MS-Off Ver
    Excel 2013
    Posts
    669

    Re: Combine and sum rows

    Hi
    If I correctly understand
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Combine and sum rows

    Without any formula pl give the required results manually filled. The present result table I believe in Lastat Sheet it is not possible to make out what is required. Your statement "code to combine rows in "LAGERSALDO" if they have D, E and L in common, and at the same time sum value of F" is also confusing.
    Pl upload file.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Registered User
    Join Date
    02-25-2021
    Location
    Stockholm
    MS-Off Ver
    Windows 7
    Posts
    10

    Re: Combine and sum rows

    Seems to do the trick! Thank you Mohadin. But is it possible to keep the range from D3 and don't copy it to N3? Delete whats been copied. Then i could just use my "filtrera" button to delete empty rows and your macro to bundle rows together.

    Best Regards,
    Joel

  5. #5
    Valued Forum Contributor
    Join Date
    06-27-2010
    Location
    sYRIA
    MS-Off Ver
    Excel 2013
    Posts
    669

    Re: Combine and sum rows

    Please Login or Register  to view this content.
    TO
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-25-2021
    Location
    Stockholm
    MS-Off Ver
    Windows 7
    Posts
    10

    Re: Combine and sum rows

    More like it! But when i fill upp with "Lagerlägg" from "Lastat" sheet couple of times, and use your macro it doesn't take all numbers at the same time. If i repeat it goes way beyond the initial numbers. Can you try yourself? Thank you for your help!

    Best regards,
    Joel

  7. #7
    Registered User
    Join Date
    02-25-2021
    Location
    Stockholm
    MS-Off Ver
    Windows 7
    Posts
    10

    Re: Combine and sum rows

    I fill in numbers in "Lastat". Pushes numbers into "Lagersaldo", Here I want to combine numbers. I've attached a new file to show what I'm looking for.

    Thanks in advance!

    Best regards,

    Joel
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    06-27-2010
    Location
    sYRIA
    MS-Off Ver
    Excel 2013
    Posts
    669

    Re: Combine and sum rows

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    02-25-2021
    Location
    Stockholm
    MS-Off Ver
    Windows 7
    Posts
    10

    Re: Combine and sum rows

    Hi again.

    Since I in the future want to withdraw stock, I need the new numbers to take the former columns place. Is this possible?

    Best regards,

    Joel

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Combine and sum rows

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new, I will do it for you today: https://www.mrexcel.com/board/thread...olumn.1169187/.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Replies: 7
    Last Post: 03-25-2016, 07:02 PM
  2. [SOLVED] VBA - combine matching rows and concatenating corresponding rows into one column
    By mjcanty in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2015, 12:47 PM
  3. [SOLVED] Excel - combine rows with previous rows - conditionally
    By sbabu16 in forum Excel General
    Replies: 7
    Last Post: 01-16-2014, 03:30 AM
  4. Combine Duplicate Rows and Combine Data in Rows
    By cherylmcgk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2013, 12:04 PM
  5. [SOLVED] formula to combine rows based on empty rows
    By sam_mas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2013, 09:24 AM
  6. [SOLVED] how to combine the multiple rows into one rows?
    By Rusy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  7. [SOLVED] how to combine the multiple rows into one rows?
    By Rusy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM

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