What is the best way to combine rows where one column contains a duplicate field (in this case an order number) - and then one column is a dollar amount that needs to be summed.
Basically each line is a line item on an order, and so the order number appears multiple times for each item. Want to combine the sales orders into one row with total sales.
I have tried manually combine/group options in Excel and they don't work as intended.
I tried kutools which has a very specific tool to do this but won't work if you have more than around 500 rows.
I have columns A:BJ (a lot of columns)
The Primary key item is in Column E (SalesOrder) and the Dollar amount is in Column BJ (TotalLineSalesPrice)
I would really like to do diff things in some other rows besides take the first value but at this point I don't care about that I just want to combine the rows with same SalesOrder value and sum the TotaLineSalesPrice value.
Is VBA the best way to do this? not sure why this has been so difficult for me - been fighting it for three weeks now.
I really don't need all the columns so to simplify if we want to just say we have 4 columns and I can try to modify it from there.
Order Date, Sales Order, Part Number, LinePrice
Combine based on dupe in SalesOrder, and sum the LinePrice
The closest thing I found was the Consolidate feature but this seems to only work when you just have two columns and not extra columns (or any extra columns will either sum also or just be blank)
Bookmarks