+ Reply to Thread
Results 1 to 4 of 4

Formula to sort large data pool

  1. #1
    Registered User
    Join Date
    03-27-2012
    Location
    Tampa, FL
    MS-Off Ver
    Excel for M365
    Posts
    53

    Question Formula to sort large data pool

    Good day everyone,

    I have a list of 200 clients and the various countries they do business in. What I am trying to do is create a report that shows the top 5 countries ($ value) AND the amount of business they do in their home country. Please see example of data set attached for 10 clients. Is there a formula that will help me achieve this? I am drawing a blank - I need to turn my raw data from 3,573 rows to 1,200 rows.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Formula to sort large data pool

    I am assuming you mean companies for the top 5

    Use this formula, changing the RED to whatever rank number you need:


    =INDEX(B:B,MATCH(LARGE(E:E,1),E:E,0))

    Then make a formula like this, which in which the RED color is the cell you put the first formula in

    =SUMIFS(E:E,B:B,I11,C:C,VLOOKUP(G10,B:C,2,0))
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Formula to sort large data pool

    Actually, that doesn't do it right (and i am leaving now so i can't revise! sorry!) but maybe it'll give ideas, or at least give you a free bump!


    Good luck.

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Formula to sort large data pool

    This can be solved with a pivot table.

    First I set up the pivot table with the items as shown in the Layout box on Sheet1. Then I went to each of the row headers and right clicked on it and selected Field Settings. In the resulting dialog box I selected None for the total and on the next tab in the dialog box: show items in tablular form.

    This produces a tablular report. Since you have Excel 2010 or later you can also select Design -> Report Layout -> Repeat all items labels under the Pivot table ribbon.

    To get the top 6, select a cell in the territory part of the table, and then go to the filter in the Row Labels cell. Select Values filter -> Top 10 and select top 6 by item for Sum of FY16

    To add the shading I recommend using conditional formatting to compare column C to column D. I've had problems in the past with conditional formatting and pivot tables. As the tables refresh, sometimes the range to which the conditional formatting is applied gets scrambled.

    I copied over your desired output to do a quick QA.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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: 5
    Last Post: 10-24-2014, 09:13 AM
  2. Sort Vertical as well as horizontally in a large data set
    By IVOptionAnton in forum Excel General
    Replies: 5
    Last Post: 10-24-2014, 07:30 AM
  3. Excel 2007 : Sort 2 Columns using Large Formula
    By MarvinP in forum Excel General
    Replies: 15
    Last Post: 06-14-2013, 05:13 AM
  4. [SOLVED] VBA code to sort data either within one large worksheet or across several worksheets
    By miss_georgina in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2012, 04:52 PM
  5. Sort results in order of points for pool league
    By mattandrew in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2010, 10:01 AM
  6. How do I sort a large column of data by length?
    By blange in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-29-2006, 03:40 PM
  7. [SOLVED] Bin and sort a large list of data
    By bsears in forum Excel General
    Replies: 4
    Last Post: 01-25-2005, 05:06 PM

Tags for this Thread

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