A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
shortma wrote:
Here is my an example of the Data. I would like to use an Average function to be able to Average the amount Column C excluding "software" and or "No". If = "software" or no then it shouldn't be counted in the Average. Also say I only wanted to capture the ones that are in March, what would be the best way to complete this task and what would it look like?
=AVERAGEIFS(C1:C14,A1:A14,"<>software",B1:B14,"<>no",
D1:D14,">="&DATE(2011,3,1),D1:D14,"<="&DATE(2011,3,31))
If you literally mean "are in March" -- that is, you do not care what year -- then try the following array formula [*]:
=AVERAGE(IF(A1:A14<>"software",IF(B1:B14<>"no",IF(MONTH(D1:D14)=3,C1:C14))))
[*] Enter an array formula by pressing ctrl+shift+Enter instead of Enter. Excel will display an array formula surrounded by curly braces in the Formula Bar, i.e. {=formula}. You cannot type the curly braces yourself. If you make a mistake, select the cell, press F2 and edit, then press ctrl+shift+Enter.