Excel 2010: Average results between 25th and 75th Percentile - excel

I have managed to get a solution for an easy Average of the 25th and 75th percentile, but to average the values between them appear to be a tad problematic.
My current instruction is as follows:
{AVERAGE(AND(F$1:F$489>PERCENTILE(F$1:F$489,0.25),F$1:F$489<
PERCENTILE(F$1:F$489,0.75),F$1:F$489))}
I am trying to average all values in Column F where they reside between percentile 25 and 75.
Thanks!

In excel it helps to slip your formula into separate chunks. So in one column you print which percentile the values are in. Then you use that as input for the next. That way you can see what the intermediate values are.
For this you could actually use AVERAGEIF. This average you can give a condition that the percentile should be between 25 and 75.

Related

Average daily max/min temperature if within date/time range in Excel

I have the following array formula which calculates the average daily temperature for a season (outlined in more detail here: Average day and night temperature in excel).
=AVERAGE(IF(Sheet1!$C$7:$C$17622>=$A$20,IF(Sheet1!$C$7:$C$17622<$A$21,IF(Sheet1!$B$7:$B$17622>=$B18,IF(Sheet1!$B$7:$B$17622<$B19,OFFSET(Sheet1!A$7:A$17622,0,(COLUMN(Sheet1!A$7)*3)))))))
The OFFSET function is to account for alternating columns of temperature and humidity for each site (site temperature/humidity are in columns in Sheet1; there are four columns for each site, hence the *3).
I can get the absolute maximum for each season by replacing AVERAGE with MAX.
However, I would like to obtain the average maximum/minimum daily and nightly temperatures for each season, but I cannot figure out how to do it (after several hours). I'd appreciate it if anyone could help me out here.
Sample data here:
https://www.dropbox.com/s/9brbxjbcrhjwrhc/Climate%20by%20season.xlsx?dl=0
Just add 1 extra column to 'collect' you daily maximum temperature and 1 more column for daily minimum temperature. Then use the same AVERAGE or AVERAGEIFS formula to work on each of these column to obtain your intended results.
Hope that helps. ( :

Excel incorrectly calculating the average of numbers when using division

I am trying to work out the average of scores for the male artists. When I tried using the AVERAGEIFs function it returned a #VALUE error and therefore I have created a table to work out the average manually. The expected score is 3.9 however when I use my table which adds up all the scores and then the number of scores which are not blank and divides the total score by number of scores the answer is 3.4.
Could you please advise on why this would be and if there is a way to calculate the average of male artists?
Here is an image of my spreadsheet:
To my knowledge, AVERAGEIFS() works on a single column / single row.
Thus, you need a helping row, showing you the AVERAGE per person, and then taking the average, with conditions such as Gender and Job.
I have 6.5 with this formula:
=AVERAGEIFS(F2:F5 F2:F5,B2:B5,B2,A2:A5,A2)
It simply gives the average of 2 and 11, as they are the only 2 male artists in my sample.
MSDN AVERAGEIFS
If you do not like the idea of additional column, then making a PIVOT table would be a good solution.

Calculate Average from Groups

I'm trying to take a table of web data (average % of page viewed) and create an average.
This is what my table looks like:
0-25% 954,353
26-50% 58,569
76-100% 73,653
51-75% 31,011
I'm looking to calculate in a cell that the average across all is XX %.
I guess this is what you are looking for:
Due to a lack of more information, we do not know what the actual distribution of the items in the range from 0 - 25% is. Hence, I am assuming that they all average out at 12,5% (the median). If you continue this line of thought then the overall average is nothing but an average of the medians or (looking at the formula) a SumProduct divided by the Sum of all items.

Excel Finding average speed

I have got 1500 rows of travels. In column A I have got total time on travel, in column B total km driven. In column C I did calculation on the average speed of specific travel. Whats the best way to calculate the average speed of all travels? The lengths are from 0 to 20 kms approx, time always shorter than one hour.
First I eliminated all travels shorter than 2 km then
I managed to do a frequency table and have written frequencies of speeds in 0-5,5-10,... km/h. Now I can do a histogram, but should I eliminate more data or how to approach this problem?
In another cell enter:
=SUM(B:B)/SUM(A:A)
A common error would be to try to average the values in column C.
it depends on your data. if it is statistics, don't throw data away, use them.
you have column A for travel time, and column B for travle distance. using this two column you can find the total average speed like what Gary's student suggest i.e. SUM(B:B)/SUM(A:A).
you also have column C the average speed for each travel, you can use this two counter check. simply do SUMPRODUCT(A:A,C:C), you should find the result equals to SUM(B:B). if the results match, then i'll say "ok i'm satisfied with my calculation".

Calculate percentile of a value, given only the 25th, 50th and 75th percentile

This may or may not be the correct forum to post this question to BUT I'm hoping for the best.
Currently, we are trying to calculate what percentile a given salary value is based on the 25th, 50th and 75th percentile for each position in our company. I'm not sure how to go about this given only three data points (25th, 50th and 75th percentiles for each position).
For example, we are paying Employee A $72k/year and the data for this position is: $66k (25th percentile), $72k (50th percentile) and 80k (75th percentile). Clearly, employee A's salary is in the 50th percentile. There are many employees whose salaries do not line up as nicely, so if anyone has an idea how to solve for the percentiles for other salary amounts, I would greatly appreciate it!
I've been trying to create a formula to calculate the percentiles for each salary and have fail miserably so far... Is there a way to do this? Thanks for your time and help!
This is a horiible,horrible kludge, but it gets you some info... Note I haven't taken into account items past 0% and 100%
I put the value I am testing in A1
I put the 25th,50th and 75th percentile in B1,B2 & B3
The formula I used was
=IF(A1<$B$2,0.5+((A1-$B$2)/($B$2-$B$1)/4),0.5+((A1-$B$2)/($B$3-$B$2))/4)
What this does is assume the 25->50 percentile range is the same as the 0% to 25% range, and the 75% to 100% percentile is the same as 50% to 75%.
Without other data like standard deviation, number of samples, and other fun statistics, this is a very bad approximation at best, and no better than rolling dice at worst.

Resources