# How To Get A Minimum Average And A Maximum Average

May 23, 2014

Can I get a minimum average and a maximum average, I have a worksheet with days of supply for 100 stores with about 100-200 products each, the dos resides in column D.

I was going to create a summary page and reference column d.

The following just gives me the min, I want the min average if possible:

## Using IF Function To Calculate Average Minus Maximum / Minimum?

May 1, 2014

I am trying to automate a process involving a Grubb's outlier test and calculating averages/stdev of a set of numbers. I have the data in one column and have calculated the average/stdev/%CV of that data. I have also added a formula to calculate Max/Min outliers of that column of data. Then there are cells with IF statements that display either "yes" (for an outlier present), or "no" (if no outlier is present). What I would like to do, if it is feasible, would be to set up formulas to recalculate the average/stdev of the column, taking into consideration either the presence or absence of outliers.

Here is what I invision(cells are for example purposes)

=IF((M9 = yes, Avg(H2:H40)-max(H2:H40)),M9 = no, avg(H2:H40))

So it would calculate the average without the outlier if the outlier "yes" was present, or just calculate the average if "no" is present.

I would also do this with a minimum outlier as well, but i can set that up if this first one is possible.

## VBA To Average Range Starting From Minimum Value & Ending At Maximum Value

Jul 4, 2009

I am using Excel to use stock ticker symbols such as FDX "Fedex", to return past volume and price daily performance found in Google Finance that will be manipulated with the current VBA I am working on that will result in a trading pattern. Each trading pattern will happen at a different range in the same column. I will be inputting hundreds of ticker symbols daily so using VBA and not having to enter formulas manually in each is greatly preferred as this will save me lots of time.

I am stuck trying to find the average value of a range starting from the minimum to the maximum value. For instance, Range("H10:H20") may have a maximum value at range("H12") and a minimum at Range("H18"). I would like the average of Range("H12:H18").

Sub Fnd()

Dim MaxStartPriceRange As Range
Dim MinStartPriceRange As Range

Dim MaxPriLocation As Double

Set MaxStartPriceRange = Range("h11:h21")
MaxPriLocation = Application.Max(MaxStartPriceRange)

Set MaxStartPriceRange = MaxStartPriceRange.Find(MaxPriLocation)

Dim MnPriLocation As Double

## Average From Minimum Row To Current Row In Another Cell?

Aug 4, 2012

I would like to generate an average of Row 1 to Current Row in a column. The Average column is the column that I would like to know how to generate.

Date
Value
Average

08/04/2012
5
5

08/04/2012
10
7.5

[code]....

I got close with =AVERAGE(OFFSET(\$D\$1,COUNT(\$D\$1:\$D2),0,COUNT(\$D\$1:\$D2))), but after a couple rows of it being correct, the average starts to fall.

Using the above:

Value
Average
Should be

7.07
7.07
7.07

7.23
7.120
7.15

[code]....

## Exclude Minimum Two Values In Average

Dec 8, 2006

I have looked on here and I can find the minimum value in my range but what I am trying to do is find the minumum two values. Or rather, i want to find the average of the remaining values.

If the lowest value happens THREE OR MORE times, i still only want to exclude two of them. Same thing goes if the second lowest happens more than once, i only want to exclude at most two values from the avg.

currently, i have 12 values in my list.

example:

list --> one in each cell going across

25, 50, 87, 56, 99, 80, 81, 82, 50, 100, 98, 99

i have the answer as 83.2 doing it by hand. the 25 and one of the 50s would be dropped and the rest would be averaged.

## Average And Minimum Function In Array Formula

May 19, 2009

Actually with the help of array formula I"m taking out Average, Min, Max value of ranges and I was omitting zero but the problem is occurring that if i have originally zero in my ranges then Average & Minimum function is not working properly.

## Average Column Of Cells But Ignore Errors And Return Average Of Numbers That Are There

Jun 14, 2013

E11 through E24 contains numbers and a few errors (#N/A) that need to persist (the errors need to show).

E10 needs to show the average of the numbers that are in E11 through E24, and just ignore the errors.

I have many columns like that - where the errors need to show and I need to show an average of the number/values that do appear, ignoring the errors.

## Average And Vlookup: Average The Grades With Appropriate Names

Dec 9, 2008

i have two columns...a and b (a w/ names, and b w/grades). then i have the table lookup with names and grades all mixed up for many rows. i want to be able to average the grades with appropriate names.

=average(vlookup(name, table, column, false))?? i don't get it to work and how can i specify the grade to average?

## Worksheet.function Average Returning Error "Unable To Get The Average Property Of The WorksheetFunction Class"

Jan 23, 2007

TotHCInv.Value = WorksheetFunction. Sum(KRInv, PBLInv, CRInv, PVInv)
If i >= 34 Then CPSCtphRMA.Value = WorksheetFunction.Average("G" & (i - 30) & ":G" & i)

The first line runs properly, but the second line bugs out with the error message "Unable to get the Average property of the WorksheetFunction class". I can simply do the math, but I thought that using the worksheet function would be easier than summing and dividing. I'm curious, though, as to why I can't seem to use the Average function.

## Grade Point Average Using AVERAGE IF AND

Sep 1, 2006

I am attempting to calculate Grade point averages for my students for all classes. There are 5 columns of grades to be considered. I frist assign values of 0-5 to the grades then average the points. My problem is that I want the AVERAGE to ignore the zero but it calculates it as well. (I enter a 0 if I have no grade for that class.) I have tried the{ } to make it an array formula but this also did not work. Here is what I have, can anyone help?

=SUM(AVERAGE(IF(AND(L2>89,L2<100),5,IF(AND(L2<90,L2>79),4,IF(AND(L2>69,L2<80),3,IF(AND(L2<70,L2>59), 2,IF(AND(L2>0,L2<60),1,0))))),IF(AND(T2>89,T2<100),5,IF(AND(T2<90,T2>79),4,IF(AND(T2>69,T2<80),3,IF( AND(T2<70,T2>59),2,IF(AND(T2>0,T2<60),1,0))))),IF(AND(AB2>89,AB2<100),5,IF(AND(AB2<90,AB2>79),4,IF(A ND(AB2>69,AB2<80),3,IF(AND(AB2<70,AB2>59),2,IF(AND(AB2>0,AB2<60),1,0))))),IF(AND(AJ2>89,AJ2<100),5,I F(AND(AJ2<90,AJ2>79),4,IF(AND(AJ2>69,AJ2<80),3,IF(AND(AJ2<70,AJ2>59),2,IF(AND(AJ2>0,AJ2<60),1,0))))) ,IF(AND(AR2>89,AR2<100),5,IF(AND(AR2<90,AR2>79),4,IF(AND(AR2>69,AR2<80),3,IF(AND(AR2<70,AR2>59),2,IF (AND(AR2>0,AR2<60),1,0)))))),-1)

I know it is huge. The syntax is correct. It calculates the average, but always for all 5 columns. It will not ignore a 0 in a column.

## Formula =AVERAGE(B16:L16) To Give The Average

Jan 7, 2008

I'm using the formula =AVERAGE(B16:L16) to give me the average.

However I have a couple of problems with this. Firstly I would like to exclude the value zero from the average. Secondly to also ignore the lowest and highest values.

Example, if the values in the cells are 0,1,2,3,4,5,6,7,8,9,10 then the current result shows 5, by ignoring the 0 and lowest value 1 and highest value 10 the average should be 4.5.

## Avoiding Average Of An Average: Times

Oct 11, 2006

Ok, I for some reason just cant wrap my head around this. I need to to get the average time per call of two rows, but they are based on how many calls taken.

so in one column i have 50168 calls taken at 4:21 seconds per call. and in the next row i have 597 calls taken at 5:20 per call. I need to see what the new average will be with them combined, and I need it to display in m:ss form.

## Sum Minimum & Maximum From Each Row

Jun 13, 2007

data in 3 colums (A2:c100)

Would like to sum the maximun values in each row together.

is Max(A2:C2) + Max(A3:C3) + Max(A4:C4) ........

I assume whatever works with max I can change to min.

## IF Using A Minimum And Maximum Function?

Aug 5, 2014

I have 3 columns 1st one has numbers that reference a wellbore.

2nd have a depth

3rd has a number value (a mud weight) volume

Well API example Depth Weight
42050102600000 10000 10.2
42050102600000 9500 9.2
42050102600000 6500 8.5
42050105000000 12000 11.0
42050105000000 7500 6.0
42050105000000 10200 9.5
42050110100000 8000 8.0
42050110100000 9500 9.2

I want the formula to give me based on the well API number the max depth and the weight associated to that max depth. And the minimum depth and the weight associated to that minimum depth. I'm not sure how to say it in a formula. I don't want to use VBA.

## Find Minimum Value Corresponding To Maximum Value

Jan 16, 2010

I am having trouble with large data sets of rents by market: trying to find the peak rent in a time-series, and then look for the next trough rent in time. I tried using the Newsletter 3 techniques which feels like the right direction, but I am not getting the nesting right or some of the parameters in the functions.

So, within each time-series I need to find the MAX value (peak rent), wherever that is in the array. Then I need to look to the right of that exact MAX value and find the exact MIN value (trough rent), whereever that is in the array (again, to the right of the MAX value).

A small sample of what the data set looks like:

2008 Q22008 Q32008 Q42009 Q12009 Q22009 Q3
Atlanta771773768761749756
Austin770786784779776776
Baltimore947948949950950953
Boston1,6471,6601,6541,6481,6301,613
Chicago998998996985984986

## Maximum And Minimum Time Value In A Range

May 17, 2014

I have used max and min function to display minimum and maximum time value; however, it is not displaying the correct time value from the list. I think there is a better formula to achieve this. From the sample data displayed below, minimum time value should be 11:30PM and maximum time value should be 6:30AM

See sample data below:

4/1/2013 11:45 PM
4/1/2013 11:30 PM
4/2/2013 6:30 AM
4/2/2013 6:15 AM
4/2/2013 6:00 AM
4/2/2013 5:45 AM

[Code]....

## Minimum And Maximum Value In Sumproduct Formula

Dec 1, 2008

Is there a simple way to find the min and max value for my formula below

HTML =SUMPRODUCT((Data!\$J\$2:\$J\$10000="E700")*(Data!\$M\$2:\$M\$10000>'Rental Rates'!\$A3)*(Data!\$M\$2:\$M\$10000<'Rental Rates'!\$B3)*(Data!\$M\$2:\$M\$10000))

## Match Criteria According To MINIMUM And MAXIMUM

Nov 27, 2008

I need a macro that will search MIN and MAX columns and identify which horse has the maximum number in both the MIN and MAX columns an example is highlighted yellow in the attached spreadsheet. If there is a selection i want the macro to keep the horse that matches the criteria along with the race date and time e.t.c (header) but delete all other horses in that race. If there are no selections that meet the criteria in a race i want it to delete all details for that race including headers and go to the next race.

## Listbox Minimum & Maximum Range

Jun 10, 2009

I have the two buttons on userform "viewer" that try to push the listbox past it min and max range. resulting in a error. Could it be that if listbox is at min it set the button to hidden.

## Finding The Minimum Value In A Column That Comes After The Maximum Value

Dec 11, 2008

Say I have 2 columns that in basic form look like this:

Column A Column B
Jan 1
Feb 0
Mar 7
Apr 4
May 15
Jun 2
Jul 5
Aug 4

First I want to look up the max value in this column. This is easy =max(b1:b8)
Then I want to know the minimum value that occurs after the maximum value. Thus the answer would be 2.

## Count No Of Maximum / Minimum / Median

Apr 22, 2009

here is an attachment... i have found array fromulas for finding Maximum, Minimum & Median. Now i need to find the no of Maximum, Minimum & Median.

## MAXIMUM/MINIMUM Formula With Time

Jul 13, 2009

I have the following formula C= day in DD/MM/YYYY and D = Time in HH:MM format and BJ5 is the date

## Return Data Corresponding To Minimum & Maximum

Nov 26, 2008

Please see attached file which is data for horse races (this is a small example of the data i will be working with). I need to find the largest values from the MIN and MAX column (shaded Grey) range for each race. I want to be able to add a function that will allow me to quickly identify which horse has the largest number in both the MIN & MAX columns example on spreadsheet is highlighted RED. It would be handy if it would inform me if the criteria has been met by highlighting it or by placing some text value in an adjacent cell on my spreadsheet i have used the example "Y".

It would also be beneficial if that race be deleted in its entirity if there are no horses which meet the criteria above or similary if all other selections within that race be deleted if ther is a horse which meets the criteria. If there is a selection within that race i will need to keep the row that includes the heading which is coloured blue on the attachment.

I will be working with 20,000 or more selections at a time so it is important that they can be identified quickly for ease of use.

I have tried the functions i know such as MAX and LARGE but this requires me to do alot of work when you consider the ammount of data i'm required to work with.

## Calculate Minimum & Maximum Of Range

Apr 23, 2009

Is there a easy way to calculate the MAX or MIN of column B dates to column A items that have say many different dates in column B? see attached excel file to show what I am looking for. How to calculate the MIN value in column "B" of the items in column "A" with formula in column "C"...

## Lookup Maximum & Minimum. Return Corresponding Row

Nov 2, 2006

I have searched your forums and thought I had found a sufficient answer but could not get the vba to work. So any help is greatly appreciated. I am trying to determine a max value from a list then put that value in a cell. Next I want to determine how many times and on what day that max value occured. From there take the value and concatenate them adding a "," between them I have attached an example. I would like the values placed in cells F1 and H1 (the other is a min value and when it occurred)

## Copy Values Between Minimum & Maximum

Jul 4, 2007

i have found this code on ozgrid to search between a min max value, trouble is it only selects the first cell it finds. How can it be modifide to copy each value in between the min max set say to sheet 2?

Option Explicit
Private Sub CommandButton1_Click()
Dim strNum As String
Dim lMin As Long, lMax As Long
Dim rFound As Range, rLookin As Range
Dim lFound As Long, rStart As Range
Dim rCcells As Range, rFcells As Range
Dim lCellCount As Long, lcount As Long
Dim bNoFind As Boolean
strNum = InputBox("Please enter the lowest value, then a comma, " _
& "followed by the highest value" & vbNewLine & _
vbNewLine & "E.g. 1,10", "GET BETWEEN")
If strNum = vbNullString Then Exit Sub
On Error Resume Next
lMin = Left(strNum, InStr(1, strNum, ","))
If Not IsNumeric(lMin) Or lMin = 0 Then...................

## Idendify Cell With Minimum & Maximum Value

Nov 20, 2007

If I have a column full of data (call it 5000 data points) and use =min(a1:a5000), how do I find the cell this function is referencing without sifting through 5000 entries?

## Limit Returned Value To A Maximum/Minimum

Dec 4, 2007

Given this formula =(H2+( SUM(K53:DB53))) which simply takes an existing value and adds to it the sum of a series of values. I am happy if the value returned is any number less than 28. However if the value returned from the above formula is >28 I want the number returned to be shown as 28.

## Color Maximum & Minimum Value In Range

Feb 16, 2008

I use code as below to find max or min data row, data is in not integer, but match doesn't work, I got error 1004, "Match function's properties can't be accessd".

Sub SelectMaxMin(ByVal vSheet As Worksheet)
Dim i As Integer, oRange As Range, iRowMax As Integer, iRowMin As Integer
For i = 4 To 23
Set oRange = vSheet.Range(Chr(64 + i) & 6 & ":" & Chr(64 + i) & 82)
iRowMax = WorksheetFunction.Match(WorksheetFunction.Max(oRange), oRange) + 5
iRowMin = WorksheetFunction.Match(WorksheetFunction.Min(oRange), oRange) + 5
vSheet.Cells(iRowMax, i).Interior.ColorIndex = 40
vSheet.Cells(iRowMin, i).Interior.ColorIndex = 35
Next
Set oRange = Nothing
End Sub

## Determine If Whole Number Exists Between Minimum And Maximum Value?

Feb 14, 2014

I have two columns of data with a minimum value in the first column and a maximum value in the second column. What I'm trying to get is an indicator in a third column which tells me if a whole number falls at or between the minimum and maximum values. Here is a sample of my data:

A1 B1 C1
0 0.1 TRUE
0.2 0.5 FALSE
0.6 0.8 FALSE
0.9 1.2 TRUE
1.3 1.6 FALSE
1.7 2.0 TRUE