Results 1 to 4 of 4

Top 10 and Bottom 5 Formula

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Top 10 and Bottom 5 Formula

    Hi Guys

    I had the two formulas below which were working which would find the top 10 and bottom 5 customers based on margin (column A on the “CSV” sheet).

    Top 10 Formula:

    =IFERROR(LARGE(IFERROR(SUBTOTAL(9,OFFSET(Margin,IF(MOD(ROW(Cust_Name)-ROW(INDEX(Cust_Name,1,1))+1,3)=1,ROW(Cust_Name)-ROW(INDEX(Cust_Name,1,1)),"a"),,3)),""),ROWS(U$18:U18)),"")

    Bottom 5 Formula

    =IFERROR(SMALL(IFERROR(SUBTOTAL(9,OFFSET(Margin,IF(MOD(ROW(Cust_Name)-ROW(INDEX(Cust_Name,1,1))+1,3)=1,ROW(Cust_Name)ROW(INDEX(Cust_Name,1,1)),"a"),,3)),""),ROWS(U$33:U33)),"")

    However due to a change in the CSV file it is no longer working. Originally the plan was to have the CSV file to show data for one month however it is now going to be show data for all months.

    What I am trying to achieve is the user selects the month in column Y16 on the report sheet and the formula returns either the top 10 or bottom 5 customers for that particular month from the data on the “CSV” tab (this is a change to what I originally required).

    The formulas would go in the cells I have highlighted in red.

    In the green highlighted cells I would like that to return a % based on the total sales from “Unique” Sheet data table but that’s not as important.

    I have uploaded the file I am referring to.

    Can anyone help please?

    Paul
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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