+ Reply to Thread
Results 1 to 8 of 8

Sort a list with a number of order# and values

  1. #1
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Sort a list with a number of order# and values

    I need some help sorting a list... i have tried a pivot table but have not gotten it to work...

    There are order numbers, and revenue amounts... i want to find a total revenue amount for the order number... so the list may look like...

    ORDER # | REVENUE
    1000 | $25
    1001 | $55
    1002 | $34
    1002 | $54
    1002 | $23
    1003 | $76

    and so on... one order number may have 1 line or may have 10 lines...

    Any suggestions?

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,683

    Re: Sort a list with a number of order# and values

    Create a single list of order numbers and use sumif.

    Guess I'm not sure when I reread your post do you want it sorted or summed?
    Last edited by Sam Capricci; 11-25-2015 at 11:15 AM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: Sort a list with a number of order# and values

    Sorry, should have been more specific... i would like to sum the value of each order number... so the above example would become...

    1000 = $25
    1001 = $55
    1002 = $111
    1003 = $76

    Does that make more sense? How does sumif work? what would the criteria be?

  4. #4
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Sort a list with a number of order# and values

    With a pivottable
    Attached Files Attached Files

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,683

    Re: Sort a list with a number of order# and values

    say your order # list is in column A and your revenue is in column B. You can make a copy of your order numbers by highlighting column A and paste it to an empty column for instance column C. Then highlight the column and using the built in remove duplicates function remove the duplicates from that list.

    Then using sumif =SUMIF(A:A,C2,B:B) you will get the totals for the order numbers. Sumif is (look at this column range,look for this item in that range, sum these values that appear across from that item in this column range)
    Hope that helps.
    Last edited by Sam Capricci; 11-25-2015 at 11:36 AM. Reason: Clarity

  6. #6
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: Sort a list with a number of order# and values

    Very good Sambo, let me try that...

  7. #7
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: Sort a list with a number of order# and values

    Thank you that worked... i can remember how to mark solved...

  8. #8
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Sort a list with a number of order# and values

    Post #4 missed?

+ 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] Cumulative SUM of values - in a order specified by a order list 1-10
    By etaf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-30-2015, 03:56 PM
  2. [SOLVED] custom sort list order in vba
    By sarksloane in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-20-2014, 09:45 AM
  3. Pull Unique Values from a List and Automatically Sort in Alphabetical Order
    By Aimee S. in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-29-2013, 09:43 AM
  4. Count only one order number in a list of values
    By david1987 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2013, 10:50 AM
  5. [SOLVED] Sort List According to Order in Master List (formula)
    By Filibuster in forum Excel General
    Replies: 5
    Last Post: 05-24-2012, 08:21 PM
  6. How to sort lines in order of number of letters
    By wizi in forum Excel General
    Replies: 5
    Last Post: 09-06-2011, 04:31 AM
  7. purchase order list & order number generator
    By podaf in forum Excel General
    Replies: 2
    Last Post: 06-28-2009, 06:02 PM

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