+ Reply to Thread
Results 1 to 5 of 5

Formula to Count from Mid-Range to Bottom

  1. #1
    Registered User
    Join Date
    05-18-2022
    Location
    Mumbai
    MS-Off Ver
    365
    Posts
    2

    Formula to Count from Mid-Range to Bottom

    Cross-posted at https://www.mrexcel.com/board/thread...rmula.1205385/

    I need to your help with a formula im trying to build and its been days I have tried my ways but I haven’t reached anywhere

    I have attached a sheet which is sample file…below are the steps I take to update.

    I filter the data by Month as I have 6 months data.
    I filter it by unit as I have two unit
    I have 8 different columns with 8 metrics.
    1st select the first data column and sort is desc to asc.
    I count the total day on that column.
    For eg if its 50 then I need the top 30. Mid 40 and bottom 30
    I multiply 50*30% give me m top30 and bottom 30 which is 15 each
    Remaining 20 as my mid40 percent
    I have to do this manually and assign the name on E Column for the first 15 entries as T30 then go on to other 20 and type M40 and remaining as B30.
    Now I have data in thousands and it’s a very tedious task to do this everytime manually.
    Is tehre a way to create a formula which takes count and cover the cells I need to my to mid and bottow.

    Sample is given for you to refer
    Attached Files Attached Files
    Last edited by 6StringJazzer; 05-18-2022 at 09:42 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,863

    Re: Formula to Count from Mid-Range to Bottom

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here, I have done it for you this time, however your description of what you are wanting help with is not clear to me, so you may need to add more detail to it yourself.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-18-2022
    Location
    Mumbai
    MS-Off Ver
    365
    Posts
    2

    Re: Formula to Count from Mid-Range to Bottom

    i have 6 montth data for various other metrics on different column
    our job is to identify the bottom performers for teh past 6 months.
    so we have to filter each mo, filter it by unit and sort a metric from desc to asc.
    once thats done. i count the entire column of that metric (excluding the header)
    it gives me a number that this column has 50 entries.
    as i have already sorted the column from desc to asc i need to know whos the top 30
    so i do the math 50*30%=15 that becomes my first 15 rows as TOP30.
    sames goes for Bottom 15 so i put Bottom30 for the entries from the bottom to top
    and all the remaining becomes by MID40
    the reason why as I have 100% divided in TOP30, MID40 and Bottom30.
    my math says 30% hence it gives us two metrics top and bottom at the same time.
    remaining goes towards mid

    100 T30
    66 T30
    64 T30
    63 T30
    56 T30
    55 T30
    46 T30
    42 M40
    41 M40
    36 M40
    30 M40
    30 M40
    29 M40
    28 M40
    27 M40
    26 M40
    25 M40
    23 M40
    23 M40
    22 M40
    20 M40
    19 M40
    18 M40
    17 M40
    14 M40
    12 M40
    11 B30
    10 B30
    9 B30
    8 B30
    6 B30
    5 B30
    1 B30

    this si for 34 entries

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Formula to Count from Mid-Range to Bottom

    In G2 (count of rows)

    =LOOKUP(2,1/(D2:D1000),ROW(A2:A1000))-1

    in F2

    =IF(ROWS($1:1)<=INT($G$2*0.3),"T30",IF(ROWS($1:1)>=INT($G$2*0.7),"B30","M30"))

    "
    I have 32 counts
    32*30% gives me 9.6 which become my top and bottom
    9.6 Top 30
    9.6 Bottom 30
    19.2 becomes Mid 40
    we can round it to 7 for top and bottom and 18 for Mid

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula to Count from Mid-Range to Bottom

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    I have added the link for you since this is your first thread.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Build formula(Like Goal Seek)
    By Masa1989 in forum Excel General
    Replies: 0
    Last Post: 03-20-2020, 04:36 AM
  2. how to build the formula??
    By solty89 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-11-2013, 10:39 AM
  3. How build formula over & less
    By redza in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-27-2013, 06:28 PM
  4. [SOLVED] Help with a Formula to build a working formula from a text string
    By Mallycat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2013, 11:51 PM
  5. build formula using 2 cells, evaluate that formula in 3rd cell?
    By ryan1234 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2007, 07:29 PM
  6. Build Formula
    By lynnc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-13-2006, 07:25 PM
  7. [SOLVED] Trying to build a formula
    By faberk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-10-2005, 02:06 PM

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