I want a formula to calculate the average days (of a given set of days) and EXCLUDE any day above 100.
I have more info on the attached sheet.
I want a formula to calculate the average days (of a given set of days) and EXCLUDE any day above 100.
I have more info on the attached sheet.
Last edited by mrcois; 08-13-2010 at 02:10 AM.
which version do you need this to run in ?
For XL2007:
Q5:
=IFERROR(AVERAGEIF(INDEX($A$3:$O$10,0,3*ROWS(Q$5:Q5)),"<=100"),"")
copied down
For versions prior to that you can use SUMIF/COUNTIF approach (or an Array if you prefer)
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
I am using XL2003 and therefore used both SUMIF and COUNTIF separately but get the following: #NAME?
I have attached the sheet again.
I think you misinterpreted the prior post.
AVERAGEIF is a function exclusive to XL2007 and beyond.
For versions prior to Excel 2007 your options for the same are either a SUM/COUNT approach else an Array.
2003 version below:
Please Login or Register to view this content.
for Q2 there is another way to extra the day.
=TEXT(WEEKDAY(P2),"DDDD")
Thanks guys, this worked for me.
Appreciate your help.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks