Results 1 to 11 of 11

Combine Rows with Calculation (Dupe in one column)

Threaded View

  1. #1
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Combine Rows with Calculation (Dupe in one column)

    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)
    Last edited by NewYears1978; 05-18-2021 at 01:00 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Displaying rows of dupe orders with discrepancies..
    By Jadanar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-16-2019, 06:12 PM
  2. VBA - Combine Duplicate Rows into One and perform calculation
    By polinew in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-29-2013, 02:30 PM
  3. [SOLVED] Color dupe rows but differentiate
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-04-2012, 01:25 PM
  4. Optimize delete dupe rows
    By Engineers2008 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2010, 04:54 PM
  5. Color fill rows based on dupe value
    By jp1980 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-24-2009, 01:56 PM
  6. [SOLVED] Dupe check over more than one column
    By Wynn in forum Excel General
    Replies: 3
    Last Post: 06-16-2005, 10:05 PM
  7. how do i "de-dupe?" rows by a column value?
    By hailah in forum Excel General
    Replies: 1
    Last Post: 05-20-2005, 12:06 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