+ Reply to Thread
Results 1 to 4 of 4

sort by group and total by each group

  1. #1
    Registered User
    Join Date
    04-14-2015
    Location
    San Diego
    MS-Off Ver
    2013
    Posts
    16

    sort by group and total by each group

    I have a 30 rows of items that were purchased from 4 different vendors. I need to sort them by vendor and with total at the bottom of each vendor. I have included an example of what I am trying to do, however I manually put it in.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-30-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    31

    Re: sort by group and total by each group

    Enter all your data,
    If you want to sort it and subtotal under each its better to do this as just data entry and not a table, as you can then select all your data, and under data hit Sub total and define your criteria and how you want it to look and it will do what you did manually.
    OR keeping your data in the table format this is how I would do it and it doesn't require you to sort your data at all.

    Filter your data by vendor you want to look at...eg//amazon

    On the bottom row under where you want your total (cost or qty or whatever) with your data still filtered, you can hit autosum and it will create a subtotal.

    When you remove your filter the subtotal will change to the total of all of it, and if you filter into a different vendor the subtotal will calculate only whats filtered in your table.

    Hope that works.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: sort by group and total by each group

    A Pivot Table would seem to be a natural solution to your problem.
    See the enclosed.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    04-14-2015
    Location
    San Diego
    MS-Off Ver
    2013
    Posts
    16

    Re: sort by group and total by each group

    Thank you very much for that. It helps out a great deal. I know i have a lot to learn.

+ 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: 1
    Last Post: 04-18-2014, 05:54 PM
  2. Replies: 8
    Last Post: 01-09-2014, 08:01 PM
  3. Replies: 1
    Last Post: 10-19-2012, 07:55 AM
  4. Sort a group of names based on the group total
    By ron2k_1 in forum Excel General
    Replies: 3
    Last Post: 08-13-2010, 01:16 PM
  5. [SOLVED] Macro to sort data, insert a line after each group & then total?
    By karinmpfa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-24-2006, 08:15 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