+ Reply to Thread
Results 1 to 7 of 7

How to report the top 20 and bottom 20 of a data table? + report with 2 conditions

  1. #1
    Forum Contributor
    Join Date
    11-07-2020
    Location
    Paris
    MS-Off Ver
    Microsoft office 365
    Posts
    175

    Talking How to report the top 20 and bottom 20 of a data table? + report with 2 conditions

    Hi community.
    I use the workbook "Dashboard". I work on the worksheet "GLOBAL".
    I try to establish 3 report.

    First report: Top 20 values (end user price in EUR) of the data table located Raw data
    HTML Code: 
    This report works but it doesn't work for the bottom 20 values.

    Second report. Bottom 20 values (end user price in EUR) of the data table located Raw data
    HTML Code: 
    Third report: Values for AMERICA and Antenna



    Thank you for your help.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Luu4466; 12-10-2020 at 10:53 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,959

    Re: How to report the top 20 and bottom 20 of a data table? + report with 2 conditions

    What do you mean by "It doesn't work"?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: How to report the top 20 and bottom 20 of a data table? + report with 2 conditions

    Please try

    =INDEX(SORT(FILTER('Raw data'!$A$2:$J$897,'Raw data'!$J$2:$J$897>0),10),SEQUENCE(20),SEQUENCE(,10))

    and

    =SORT(FILTER('Raw data'!$A$2:$J$897,('Raw data'!$B$2:$B$897="Antenna")*('Raw data'!$H$2:$H$897="America")*('Raw data'!$J$2:$J$897>0)),10,-1)
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,959

    Re: How to report the top 20 and bottom 20 of a data table? + report with 2 conditions

    Please update your profile. You are clearly not using Excel 2016.... which (I believe) did not support SEQUENCE.

  5. #5
    Forum Contributor
    Join Date
    11-07-2020
    Location
    Paris
    MS-Off Ver
    Microsoft office 365
    Posts
    175

    Re: How to report the top 20 and bottom 20 of a data table? + report with 2 conditions

    Quote Originally Posted by Glenn Kennedy View Post
    What do you mean by "It doesn't work"?
    It works but i have only the blank value which are reported. (I think blank values are considered as a 0, and 0 are small values)

  6. #6
    Forum Contributor
    Join Date
    11-07-2020
    Location
    Paris
    MS-Off Ver
    Microsoft office 365
    Posts
    175

    Re: How to report the top 20 and bottom 20 of a data table? + report with 2 conditions

    Quote Originally Posted by Glenn Kennedy View Post
    Please update your profile. You are clearly not using Excel 2016.... which (I believe) did not support SEQUENCE.
    I am using version 2002 (Build 12527.21330) version.

  7. #7
    Forum Contributor
    Join Date
    11-07-2020
    Location
    Paris
    MS-Off Ver
    Microsoft office 365
    Posts
    175

    Re: How to report the top 20 and bottom 20 of a data table? + report with 2 conditions

    [QUOTE=Bo_Ry;5436960]Please try

    =INDEX(SORT(FILTER('Raw data'!$A$2:$J$897,'Raw data'!$J$2:$J$897>0),10),SEQUENCE(20),SEQUENCE(,10))

    and

    =SORT(FILTER('Raw data'!$A$2:$J$897,('Raw data'!$B$2:$B$897="Antenna")*('Raw data'!$H$2:$H$897="America")*('Raw data'!$J$2:$J$897>0)),10,-1)[/QU

    It's working, thank you very much Bo_Ry. I'm learning so fast with your help!
    Last edited by Luu4466; 12-10-2020 at 08:09 AM.

+ 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. Agging report, openingbalance report,customer report vab code was not working
    By rana19 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-28-2015, 03:38 AM
  2. Replies: 4
    Last Post: 08-18-2015, 10:02 AM
  3. Replies: 3
    Last Post: 07-13-2013, 11:59 AM
  4. [SOLVED] Filter / Report Top 10 Values with identifier into new spreadsheet / table / report style
    By steverokh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2013, 05:10 AM
  5. Replies: 2
    Last Post: 06-29-2011, 04:35 PM
  6. Pull data from a matrix table into a report using 2 report conditions
    By bing in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-03-2008, 11:51 AM
  7. [SOLVED] Automate Excel report to place certain data into existing report?
    By Craig Harrison in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-25-2006, 09:00 AM

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