# Returning All Data From A List Above The Nth Percentile

Feb 15, 2006
Is there any function in Excel that returns all values from a list above or below a certain percentage rank/percentile?

For instance, if you want the average of the 2% highest numbers in a list? Or the sum of the 25% most expensive items in a shopping catalogue?

It has to be a "dynamic" function, where you can just drop in a set of figures, sort the list, add a percentile, and perform a calculation on all the figures from the cutoff point signalled by the percentile...

View 10 Replies
ADVERTISEMENT
Jun 9, 2014

I am having trouble using formulas in a smart way in excel.Basically, I am trying to calculate percentile for a range. But since my data set is huge, I dont want to select the range in percentile formula manually. my data set includes buckets and would love to be able to search for that field and then calculate percentile on a range. is that possible?

example

see attached excel file -its a small data set, but there are more buckets in the volume column. Using Excel 2007

View 1 Replies
View Related
Dec 9, 2013

[URL]

If I go any of the cells in that column, the VBA code page opens up and I get the following message:

Compile Error:

Ambigous name detected: Worksheet _SelectionChange

and the following vb code is hightlighted:

Private Sub Worksheet_SelectionChange(ByVal Target As Range

The code I have used is:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

If Target.Count > 1 Then Exit Sub

If Target.Column = 13 Then

Target.Columns.ColumnWidth = 40

Else

Columns(13).ColumnWidth = 20

End If

End Sub

View 2 Replies
View Related
Feb 8, 2014

I'm looking to use the percentile formula given a condition. The percentile formula as I understand it is percentile (array,k), where K is the percentile I want.

What I want to do is select a column for the percentile, but only do it for values above zero (I don't want to get into the full explanation as to why but I cannot cheat and just sort the columns).

The context is that I was doing some averageif calculations previously and want to remove outliers (top 5 and bottom 5% of data).

View 1 Replies
View Related
Mar 10, 2014

I have set of people where by based on Level & designation want to find the percentile on their CTC.

Attached is the sample file. Percentile.xlsx

View 6 Replies
View Related
Jul 4, 2013

I have to run the 95th percentile value against a raw data dump from a monitoring tool. The data has multiple devices and each device has about a couple of thousands of samples/values. These values are dynamic, it can be 1000 samples for device 1 and may be 1300 for device 2. The data between 2 devices are separated by an empty row. run a macro using the percentile formula that can accept a dynamic range in the array so that it should not matter how many samples/values each device has, it should provide the 95 Percentile value.

Current Option: =Percentile(array,value)

What I'm looking for is: =Percentile(A dynamic range starting from a designated cell to all the way till the last cell in that range i.e before the empty row that separate the two devices,value)

View 3 Replies
View Related
Jun 18, 2008

I have a collection of data where the lower the value, the better. When I use Quartile/Percentile, it shows higher values as having a higher rank. Any way to reverse the order, without changing the underlying data (ie. multiply all values by -1)?

Also, I have a graph of the data showing the 1st, 2nd (median) and 3rd quartile and then a particular data set (in this case, company results) over a number of years. Any way to automatically add the Percentrank as a data label for the specific company results? For example, the value 200 puts this company at the 65th percentile. I want the data label to show 65, not 200.

View 9 Replies
View Related
Jul 30, 2013

trying to come up with a formula that will return the last non-zero value in a row. In the example below, I'd like the formula to return the value "456". If there is a way to do this without VBA or array formulas, that much the better!

View 2 Replies
View Related
Jan 31, 2014

I have a table with a set of duplicate values like given in the sample table below;

abc22

abc12

abc33

abc44

def60

def56

def46

ghi78

ghi88

ghi98

klm108

klm118

klm120

klm125

klm140

i need to derive the percentile value of one particular text in another sheet. i.e

i want to get- what is the 90th percentile of the defined array abc

if i use the formula percentile(vlookup(abc,table1,2),90%), the cell is referring only to the first value. i want the entire range to be referred.

View 1 Replies
View Related
Feb 26, 2013

I have a list of 186 random numbers sorted by descending order in column A. In column B I have another statistic of corresponding values to the number in column A. I am hoping to calculate the average of values in column B based on the percentiles of column A. (i.e. for the top 10th percentile values of column A the average B value is X, for the top 20th percentile of values in column A, the average B value is Y).

View 2 Replies
View Related
Mar 4, 2009

The conversion rate is updated daily from telephony reports, and I manually sort it into conversion order each day before sending it round.

What I want to do is find the highest converter for each team.

So:

Column A ('TeamLeader' range) has the Team leaders in, column B has the agent name ('Agent' range), and column F has the agents conversion rate ('conversion' range).

I think I'm on the right track with this formula:

=(MAX(IF(TeamLeader="Bonnie",Conversion))

But this only displays the figure in the Conversion rate, how to I get it to 'step back' 4 column's and show the agents name?

I tried this:

=VLOOKUP(MAX(IF(TeamLeader="Bonnie",Conversion)),A5:F60,-4,FALSE)

but that returns #NA - is this because I'm asking the VLOOKUP to look 'backwards' 4 columns?

View 9 Replies
View Related
Nov 29, 2011

I have a list of 400 numbers. I wish to filter down the list to those 500 and then of that list get the 95 percentile.

I have tried

=IF('GRML ECP 01'!O$2:O$584 500 I get a blank. When I run the function manually on the numbers > 500 I get 1800.

View 3 Replies
View Related
May 2, 2014

I use the following formula to pull the median from a list of numbers...

=MEDIAN(IF(($H$2:$H$7800=$H7813)*($T$2:$T$7800""),$T$2:$T$7800*0.01))

I'm trying to also find the numbers that are in the 25th and 75th percentile, is there an easy way to do this?

Column H = Performance Rating (1-5)

Column T = The bonus payout % (example 105%)

I'm trying to pull the 25th and 75th percentile for each rating. So if there are 100 employees rated 1, what is the bonus payout that is the 25th percentile? This is just an example, in this case it would be the 25th number in the list....I'm dealing with thousands of bonus %'s.

View 4 Replies
View Related
Apr 22, 2010

I know how to create drop down list but I have a problem to Return different value then is displayed in Dropdown List. For example: On the workbook I have two wokssheets: one with empty cell and secound with list created for dropdown list.

On the secound woksheet I have created: column A namebox "Country" - cointains full name of countries (Great Britain, Australia ...) and column B namebox "CountryCode" - contains country codes only (GBR, AUS ...) When I click on dorp down list on first worksheet, I would like to my drop down list display me list with columnA "Country" but when I choose one of that it would returns me cell from columnB "Country Code".

View 14 Replies
View Related
Apr 20, 2006

I have run across a problem that I am unable to solve with a combination of index, match and countif funtions. What I am trying to do is have the formula return disctinct symbols. I have a list of currencies on one sheet: audusd, eurusd, usdcad etc, more than one from each. Id like to return one from each onto another sheet...

View 9 Replies
View Related
May 31, 2013

is there a way to return a textbox full of information based on a selection from a dropdown box?

View 4 Replies
View Related
Apr 24, 2013

Actually I plan to create an eRequisition Form for our branch sites. My focus would be the consumable items of Lexmark printers. I want to create cascading drop-down lists based on data table (worksheet : All) as per attached. From lots of examples I've seen in this or other similar forums, I notice that in order to allow this cascading to work is by creating column with header name identical with the input in the 1st List. But I'm thinking, if I need to do that, then there gonna be hundreds or maybe thousands columns to create as the number of branches are expanding, so I think tht should not be practical.

I found examples that shows how lookup 1 value can return multiple values but I totally cannot think of a way to allow those multiple values to be returned as dropdown list rather than displaying all in rows of the worksheet.

What I need is that, in 1st list, upon selecting the branch, it'll populate all items related to the branch and when selecting the item, it'll populate brand/model list for the particular item only. The input in the dropdown list should not have duplicates. Been trying using pivot to do this with macro that enables auto refresh once any changes made in the table.

create this cascading drop-down lists just based on the table as per attached? I really want to avoid having to create extra tables to allow this cascading to work.

[URL]

View 13 Replies
View Related
May 1, 2013

I am doing a list which has the same products returning several times, but with different values. Want to filter/make a new list, with only one of each product and the summed amount of that specific product. Summing the specific amount is not that big of an issue, but the creation of the list is, least in a smart way i have tried this:

[Code]......

This being the last possible entry for the summed list.

My problem is that the formulas is getting too big for my computer :S, since this formula is copied more or less 10 times.

Here is an example of what i want: Product list.xlsx

View 5 Replies
View Related
Jul 8, 2009

I have a list of names in say column A, but the names are prefixed with numbers. So, for example you have 2 Peter Jones, 5 Johnny Piper, 10 Andrea, 3 St. Mary's, 13 White etc.

I want to return these list of names in another column say B, but without the prefixed numbers. So, column B will have Peter Jones, Johnny Piper, Andrea, St. Mary's, White etc.

View 9 Replies
View Related
Oct 29, 2013

I am trying to create a formula that will allow me to enter a zip code and have excel return the specific tax rate for that zip code. I have zip codes in excel for all of California along with the corresponding tax rates. I am creating a form that I can just input the zip code and have the tax rate automatically pop in.

View 1 Replies
View Related
Apr 3, 2013

So basically I have an Excel sheet which has keywords that need to be entered in Google search. I need the URL of the first page of the search result that appears after that keyword is entered. IS there a macro for the same?

View 3 Replies
View Related
Apr 15, 2014

Having trouble changing this formula from its current Median to a Quartile or Percentile. The median formula looks like this:

(MEDIAN(IF(DATA!$B$15:$DZ$15=1000,DATA!$B26:$DZ26))) and works perfect.

However I can't figure out how to manipulate it into a percentile keeping the condition of

IF(DATA!$B$15:$DZ$15=1000)

View 2 Replies
View Related
Feb 24, 2014

I would like compare data using a certain column to key off of and compare whether data has changed.

I have 5,000 rows and 26 columns. Cell C1 is CALLED PMNUM, cell I1 is called CHANGEDATE

I want to find all of the same PMNUMs (C2-C5000), look at the last change date (I2) (sorted in descending order), compare it to the previous change date (I2) and if anything has been changed in columns D2 through G2 and J2 through Z2 compared to the last time the data was reported, list the changes in in AA2.

View 4 Replies
View Related
May 14, 2009

The formula below

=IF(M22<=286.74>191.16,(286.74-M22)*30%, IF(M22<=191.16>127.44,((191.16-M22)*50%)+28.674, IF(M22<=127.44>79.65,((127.44-M22)*70%)+60.534, IF(M22<=79.65,((79.65-M22)*90%)+93.987. is returning all data based on =IF(M22<=286.74>191.16,(286.74-M22)*30%, and is disregrading the rest of the formula.

View 4 Replies
View Related
Apr 1, 2014

I have a reference vertical table which can be up to 30 long (I just put 5 here to keep it simple):

Sheet 1

A

B

1

[Code].....

And I want to return the data in the B column depending on whether the data matches either of the words in the corresponding A column.

E.g. Sheet 2

C

D

10

laki

The formula in this cell would return B1 because C10 = A1

11

katla

The formula in this cell would return B4 because C11 = A4

View 4 Replies
View Related
Jun 19, 2014

I want to be able to choose a country from a drop-down list, and then have the spreadsheet retrieve/return values from that country, whose input data is located in a different worksheet. E.g. I want to be able to change the input according to what country I am looking at. I was able to do this with simple IF functions,but I'm realizing that this is not good enough. I want to eventually expand the number of countries that I want to return data from, and then the formula is not dynamic enough.

Example spreadsheet attached.

To make it simple: I want to be able to return the correct values for "page views" and "high" and "low" according to what country I choose from the drop-down menu in cell C3 on the "value calculator" sheet.

Also; in cell N15 and N16 I want the alternatives to be yes and no, and they cannot be yes at the same time. H

View 6 Replies
View Related
Jul 10, 2014

I am working on a form to pull employee identifiers such as employee ID, store number as well as sales performance. I am using the below formula but the data that is being returned is not the correct data for the specific employee. C5 is the employee name (last name, first name) in a single cell. A sample of the spreadsheet I am trying to pull data from is attached. Some employees the formula pulls the right data and some it does not...

=IF(C5="","",VLOOKUP(C5,'Raw Data'!A3:N15,2))

View 3 Replies
View Related
Sep 7, 2009

I have a query which is giving me some trouble when returning the data from ms query. The query was written in mysql query browser and returns 2 columns of data - a date and a number. MS Query correctly processes the query but when the data is returned to excel only the second column is returned. Here is the query:

SELECT

(SELECT

max(l.the_date)

FROM

nc_view_date_functions AS l

WHERE

l.week_of_year = d.week_of_year

AND l.yyyy = d.yyyy

) AS week_end_date,

count(r.consent_id) AS weekly_count

FROM

rg_resource_consents AS r

INNER JOIN nc_view_date_functions AS d

ON r.application_date = d.the_date

GROUP BY

d.yyyy, d.week_of_year;

View 2 Replies
View Related
Jun 20, 2009

If the item in the vlookup table Array does not exist, the vlookup returns the result of an unrelated item. Is their another formula I can use?

View 2 Replies
View Related
Nov 22, 2011

I have the following table of data...

ABCDLetter--100.0%-100.0%-----100.0%----100.0%-100.0%---100.0%---100.0%---100.0%---100.0%--0.7%99.1%0.2%-

I would like to populate the Letter column with A B C or D depending on which contains the highest value.

View 8 Replies
View Related