+ Reply to Thread
Results 1 to 5 of 5

Sort by largest, 2nd criteria by less than average %, 3rd criteria pre defined heading.

  1. #1
    Registered User
    Join Date
    03-19-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    48

    Sort by largest, 2nd criteria by less than average %, 3rd criteria pre defined heading.

    Hi all,

    I have an issue I am hoping someone can help with.

    In the Data tab of the attached workbook, I have 4 products, the products are listed by US State. They each have a number of people attached to them, and a popularity %
    In the matrix tab the States are assigned to either East US, West US, or South US
    The OAS tab is where I would like a formula to come in to play
    In the example of product 1 in the OAS tab. The average popularity is 3.2%. I am looking for the largest 3 numbers in column D of the data tab of Product 1 that have a below average % in column E, (in this case 3.2%), and to sort by size ie. Large(D2:D15,1), and to retrieve the 3 largest number States, and to only retrieve in cells C6:C8 of the OAS tab States that are mapped to the East US

    Then E6:E8 in the OAS tab would search Products 1 and search for the 3 largest numbers, for those below the average % in column E to retrieve the 3 states.

    I have just written in the states to show what the data should be retrieving for product 1.

    Is that possible to do with 1 formula? Hopefully I have explained it well enough.

    Thanks,
    Dean
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-19-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Sort by largest, 2nd criteria by less than average %, 3rd criteria pre defined heading

    I've updated the files with formulas. I am still unable to condense it down to one single formula (right now they are in column C & D), and am missing the additional variable of West US, East US, & South US.

    I have no doubt someone here will be able to figure this one out ..
    Attached Files Attached Files

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Sort by largest, 2nd criteria by less than average %, 3rd criteria pre defined heading

    Removed by FR.
    Last edited by FlameRetired; 03-01-2015 at 05:13 AM.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Sort by largest, 2nd criteria by less than average %, 3rd criteria pre defined heading

    I re-arrange in matrix tab to assign cities under state header.
    See attachment
    Notice me if the arrangement is not allowed
    Attached Files Attached Files
    Quang PT

  5. #5
    Registered User
    Join Date
    03-19-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Sort by largest, 2nd criteria by less than average %, 3rd criteria pre defined heading

    bebo, yes it is fine that they get rearranged that way in the matrix tab. This is a very interesting array formula! Thanks so much! will be marked as solved

+ 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] Multiple criteria sort (criteria parsed from string) macro
    By rynofrowan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-18-2014, 09:59 PM
  2. Macro to Insert defined integer into range defined by variable criteria
    By stereofeedback in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-06-2013, 12:33 PM
  3. Sum across a row by column heading & row criteria
    By Sideout in forum Excel General
    Replies: 4
    Last Post: 12-17-2010, 01:37 PM
  4. Replies: 5
    Last Post: 05-05-2010, 10:32 AM
  5. MACROS: Sort by multiple criteria - Create tabs based off of criteria
    By svineyard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2009, 10:48 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