+ Reply to Thread
Results 1 to 2 of 2

summary and sort table by indexes

  1. #1
    Registered User
    Join Date
    02-14-2019
    Location
    israel
    MS-Off Ver
    2016
    Posts
    3

    summary and sort table by indexes

    i have a table with 3 columns
    quantity, x, y

    and im trying to make summary of rows which have same indexes in X and Y
    and sort by those indexes.

    I MEAN FOR EXAMPLE

    QUANTITY--X---Y-------->-QUANTITY---X---Y
    -----3-------A---B------->--------5------A---B
    -----2-------A---A------->--------2------A---A
    -----2-------A---B------------------------------
    didnt manage to solve it in pivot charts
    Last edited by eitansss; 02-14-2019 at 11:55 AM.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,559

    Re: summary and sort table by indexes

    This proposed solution employs a helper column which may be hidden (or moved) for aesthetic purposes.
    The initial range has been changed to a table so that it may easily be sorted and appended.
    Two columns are added to the table. The first combines the X and Y values using: =[@X]&[@Y]
    The second totals the quantities using: =SUMIFS([Qty],[X],[@X],[Y],[@Y])
    The helper of the result table is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The Qty, X and Y columns of the result table are populated using formulas similar to: =IF($H6="","",INDEX(Table1[Sumifs],MATCH($H6,Table1[[XY]:[XY]],0)))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] VBA to sort dates and paste to summary
    By Roampie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-25-2018, 03:17 PM
  2. Pivot table with custom indexes
    By horace_vr in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-31-2017, 02:53 PM
  3. [SOLVED] Adding a row in a table corrupts formula in a summary table (2nd table)
    By How How in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-31-2015, 02:35 PM
  4. [SOLVED] Analyse each of the groups in a Data Table and send results to a Summary Table
    By PeterR in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-20-2015, 10:26 PM
  5. Return indexes of rows when multiple rows of a table are selected.
    By samkumar in forum Word Programming / VBA / Macros
    Replies: 0
    Last Post: 08-12-2013, 04:54 AM
  6. Replies: 5
    Last Post: 07-19-2010, 01:50 PM
  7. Replies: 2
    Last Post: 05-19-2010, 05:14 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