+ Reply to Thread
Results 1 to 5 of 5

create ranked list of unique codes with subtotals

  1. #1
    Registered User
    Join Date
    10-23-2011
    Location
    Sydney Australia
    MS-Off Ver
    Excel for Mac V16.39
    Posts
    68

    Question create ranked list of unique codes with subtotals

    I have a list of products in column A and a list of values in a column B.
    I need to create a third column, C, that uses a formula to return unique products from A
    I also need a 4th column, D, that contains the sub totals from column B (probably a sumif)

    To make it difficult I need column C and D sorted in descending order based on the subtotal in column C. If someone could incorporate a rank in the formula, that would be great and will save me manually sorting this table.

    My preference is for standard formula's rather than arrays and VB.

    I would appreciate any help you could provide.

    Thanks

    I have attached a basic example of data and what I hope excel can return. My real example is thousands of lines long but if I can get a formula that works I should be able to modify it.
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: create ranked list of unique codes with subtotals

    Why not just use a pivot table?

    Insert a pivot table (Select A1:B38, click Insert > Tables > Pivot Table, select range to put pivot table).

    Put Product in the Rows section, and Value in the Values section. Click the down arrow in the Product header, click 'More Sort Options' then choose Descending by Sum of Value. Format to suit.

    See attached workbook, with pivot table in G1.
    Attached Files Attached Files
    Last edited by Olly; 10-16-2019 at 03:39 AM.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,612

    Re: create ranked list of unique codes with subtotals

    Pl see file.
    In C2
    Please Login or Register  to view this content.
    In D2
    Please Login or Register  to view this content.
    Copy down both till empty cells are seen.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Registered User
    Join Date
    10-23-2011
    Location
    Sydney Australia
    MS-Off Ver
    Excel for Mac V16.39
    Posts
    68

    Re: create ranked list of unique codes with subtotals

    Thanks. this did the trick!

  5. #5
    Registered User
    Join Date
    10-23-2011
    Location
    Sydney Australia
    MS-Off Ver
    Excel for Mac V16.39
    Posts
    68

    Re: create ranked list of unique codes with subtotals

    Thanks. I learn't some new things by following your formula but the pivot table was a simpler solution in this instance.

    thanks again.

+ 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] Need to create unique pin codes
    By Tsheik in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 09-21-2021, 12:31 AM
  2. [SOLVED] Extract the Unique List based on SAP Codes and Header from two tabs
    By Neilesh Kumar in forum Excel General
    Replies: 6
    Last Post: 09-07-2018, 09:29 AM
  3. Unique codes from an existing list. Possible VLOOKUP?
    By s_bruno1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-03-2016, 10:19 AM
  4. [SOLVED] Find unique entries and create ranked list with formulas only
    By opheim in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2013, 04:09 AM
  5. Extract a sorted and ranked unique list of items
    By bruno_ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-11-2013, 09:52 PM
  6. [SOLVED] create list of unique staff numbers with unique work codes
    By shaz0503 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-01-2013, 08:57 PM
  7. [SOLVED] How to create a ranked list
    By Allan T in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2006, 08:55 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