Hi all - a tricky one here that I hope will challenge a few!
Spreadsheet attached.
What I need to do with this one is combine an AverageIFs function with one that find duplicate values in Column E.
I have an average if function that works fine:
=IFERROR(AVERAGEIFS($Z$2:$Z$19,$N$2:$N$19,">="&$B28,$N$2:$N$19,"<="&$C28,$B$2:$B$19,"="&F$22)," ")
However this one is calculating averages for ALL activities (z2:z19) and not considering the duplicate values in column E
I have worked out that there are actually 13 activities, not 18, through using the following:
=SUM(IF(FREQUENCY(MATCH(E2:E19,E2:E19,0),MATCH(E2:E19,E2:E19,0))>0,1))
What I need then is for my AVERAGEIFS function to understand the FREQUENCY/MATCH command – ie to average only the 13 activities, not the 18 which are duplicates.
Any ideas??
thanks all =D!!!!!
Bookmarks