+ Reply to Thread
Results 1 to 3 of 3

Combine and Total sales data into new sheet

Hybrid View

  1. #1
    Registered User
    Join Date
    06-09-2004
    Posts
    29

    Combine and Total sales data into new sheet

    I don't think this woudl be very hard but am not sure where to start.

    Basically I have a list of orders that contains one line item for each item ordered. SO one order might have 5 rows if they ordered 5 items.

    What I want to do is jsut get a total for every order and have it on its own line.

    So if the data was something like
    Order    Item    Price
    1        1234    10
    1        1235    11
    2        1236    15
    2        1237    20
    What I'd want to get back would be:
    Order    Total
    1        21
    2        35
    Thanks for any help.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Combine and Total sales data into new sheet

    Not really a programming question.

    1) Use the ADVANCED FILTER on column A to give you a list of the unique order numbers in a new column, say column G.

    2) Put a SUMIF() formula in H2, like so, then copy down:

    =SUMIF(A:A, G2, C:C)

    =======

    Or highlight all the data and apply a Pivot Table to get a sum of the Order Numbers.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor
    Join Date
    06-19-2010
    Location
    Holywell, N Wales, UK
    MS-Off Ver
    Excel 2013
    Posts
    470

    Re: Combine and Total sales data into new sheet

    Yet another alternative ..
    highlight your data range and use Subtotal from the main Data menu

+ 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