AVERAGE using multiple criteria from multiple columns - excel

I need to calculate the average value of a column contain temperature values (column H). The difficult part is that I want to average only specific cells of this column, that meet certain criteria. More specifically, I want to average temperature values from column H, only if the wind direction is northwest,which is detoned as "NW", the values of which are in column J, as well as if the wind speed is lower than 2 (column D). I used the AVERAGEIFS command but I recieve a message that "excel the formula you typed contains an error".
AVERAGEIFS($J$3:$J$5434;"NW";$H$3:$H$5434;D3:D5434;"<2")
Is the averageifs not the proper command to calculate this? Do you have any other ideas on how I could do it?

=AVERAGEIFS(H3:H5434;J3:J5434;"NW";D3:D5434;"<2")
should work, where the main difference is that the column to be averaged comes first. Since there seems no need to copy this formula around the $s seem redundant.

Related

Average of Averageifs (ignoring 0 values)

I have a data set which I am trying to find conditional averages from, I am able to get the results I want using multiple cells, but would like to contain all of the steps in a single cell
I have tried some other solutions on this site (most recently this one: AVERAGE from AVERAGEIFs that will ignore AVERAGEIFs where is ERROR EXCEL) from similar topics but cannot seem to make any of them work
The three steps I am using are
=IFERROR(AVERAGEIFS($F$3:$F$17,$B$3:$B$17,"TCM",$C$3:$C$17,"Critical"),0)
=IFERROR(AVERAGEIFS($F$3:$F$17,$B$3:$B$17,"TCM",$C$3:$C$17,"Main"),0)
=SUM(F23:F24)/COUNTIF(F23:F24,"<>0")
The first formula gives a value, the second zero and the third the average of the two, excluding the zero
I would like to know if it is possible to somehow combine these formulas into one cell?
UPDATE
sample table
In this table i would be looking to get the average of all the "A" in column B that also have "D" and "E" in column C (Using the values in column F to get the average) however in some instances a combination (e.g. "A" and "G") may be zero. In this instance I want to exclude the zero value from the calculation.

Average multiple values from multiple columns in Excel

I need to calculate the average from the percentages shown in the picture below but I need to ignore the 0s.
So, I need the average of the first row of percentages, precisely cells H1, K1 and N1, but because K1 is a 0 I will not include it. So the first average is 100%.
I know about averageif but I cant make it work, and I do not think it would in this case
=IFERROR((H1+K1+N1)/((H1>0)+(K1>0)+(N1>0)),0)

Excel 2016 - How do I determine which column I should use to help me predict actual numbers?

I have 3 columns that guess what a number should be, and then the actual column of what the numbers are. I need to determine mathematically overall a few things. (Each column is a prediction and there are 3 sources.)
Which column was the closest to the actual column.
Which column was the closest to the actual column, but was larger than the actual column. (Supervisor would rather guess high than low.)
Which column should I use in assisting me predict the actual numbers for next year.
I'm not sure if I should use only Conditional Formatting, or have columns with the percentages of over / under. What do you recommend and how would you do this?
Thank you!
I would use root-mean-square to evaluate each option. For example, to compare cols A and D, use:
=SQRT(SUMPRODUCT((A2:A15-D2:D15)^2))
then compare B and D. Finally compare C and D.
Use whichever column has the lowest RMS score.

Getting the average of values who share a value in a different column in Excel

I am messing around with Excel 2007 and I'm looking for a solution regarding finding the average of values who share a value in a different column.
The values in column A are all numbers running anywhere from 0 to several dozen. Column B has either Yes or No in it, one for each row. What I am looking for is being able to calculate the average of all values in column A who share the same word in column B.
Initially both will be empty, and only after the field in column A has been filled will column B be filled. The value of column A does not always mean that it always have the same value in column B, meaning that that two instances of the number 8 in A can mean that either, both or neither values in B will be Yes.
I am looking for two formulas to give me these averages: one average for all the Yes numbers and one for all the No ones, but not in VBA.
Thank you in advance!
Not sure I understand, but please try say in D1 and copied down one row:
=AVERAGEIF(B:B,C1,A:A)
where C1 is Yes and C2 is No.

Using an excel formula on filtered cells?

I have the following excel spreadsheet:
The elevation is increasing in ascending order. The distance is culmulative. Criteria is a separate formula which can be explained here:
Selecting values in a list based on an interval?
I want to calculate the slope which is the difference in elevation divided by the difference in distance, but only for the values that have a criteria of "1". Here is a picture showing the spreadsheet filtered and cut where I get the expected values of slope:
I want to perform this formula on the unfiltered list and to get the desired result in the third image.
Are there any formula operations in excel that can perform this task? Can it be done in VBA?
You can add 2 helper columns to your table like so:
Col D tracks the last Elevation that met your criteria. Similarly, Col E selects the last Distance that met your criteria. This keep COL F's formula super simple.
Note this is a variation on Alan's comment, but I prefer the legibility and maintainability of the additional columns to the expert level (and lengthy) formula.

Resources