+ Reply to Thread
Results 1 to 2 of 2

Excel VBA Code for finding the 10th percentile value for a certain bin Range

  1. #1
    Registered User
    Join Date
    02-14-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question Excel VBA Code for finding the 10th percentile value for a certain bin Range

    Hello everyone

    I hope that you all are fine.

    I have an excel sheet, and I am trying to bring some sort of automation in to that sheet (since I use it quite often) with the help of macros. The fact is that I am really new to macros and VBA programming language, so I need a little help in writing the code to find the 10th percentile for each bin value (50, 100, 150).
    If you see the picture attached, the wanted percentile values are in Q, the bins for which I want to find the 10th percentile value, are given in Column M and the main data on which the 10 percentile value will be based is given in Column D.
    By Using the data given in D and filtering out a certain bin width in column E (Example: Filtering bin width 50 or 100), we could find the Percentile value against each of the bin value given in Column N.

    As said earlier I am new to VBA code, so any help will be appreciated in order to find the percentile values for each bin.
    I can give the excel sheet as well if someone want to try hand on it, and let's me know the email address.

    Additional Note: (The spread sheet is sorted out with respect to column E, is Ascending order (50, 100, 150) and the number of count for each bin width is given in column O, so you can just find the range of each bin by adding the count for each bin i.e range for first bin (50) is from 1 to 1+8542, similarly the range for the second bin (100) is given by 1+8542 to 1+8542+6862.

    Please click the link below to download the main excel sheet

    https://portal.bitcasa.com/send/e096...81ee5c95e3a9a1

    I will be very grateful if someone spares some time for me.

    Kind Regards
    raishikoh

    Find Percentile for the bins.jpg
    Last edited by raishikoh; 02-14-2013 at 05:38 PM.

  2. #2
    Registered User
    Join Date
    02-14-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Excel VBA Code for finding the 10th percentile value for a certain bin Range

    For the help of the viewers

    Formula for 10th percentile is
    Percentile PERCENTILE( array, 0.1 )

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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