Welcome to Excel Forum!
If the wind speed > 0 then calculate average of direction:
I got error because maybe 'averageif' hasn't cos, sin... support.Please Login or Register to view this content.
Help!
Welcome to Excel Forum!
If the wind speed > 0 then calculate average of direction:
I got error because maybe 'averageif' hasn't cos, sin... support.Please Login or Register to view this content.
Help!
Last edited by nunito; 03-14-2013 at 08:30 PM.
Gary's Student
I don't have 2010, but that AVERAGE.IF (with the dot) looks funny? Maybe AVERAGEIF (no dot)?
Ben Van Johnson
I think you'll have to use an "array formula" with AVERAGE and IF separately, e.g. for that first average
=AVERAGE(IF(wind_begin:wind_end>0;COS(RADIANS(direc_begin:direc_end))))
do the same for the second average function so the whole thing looks like this:
=DEGREES(ATAN2(AVERAGE(IF(wind_begin:wind_end>0;COS(RADIANS(direc_begin:direc_end))));AVERAGE(IF(wind_begin:wind_end>0;SIN(RADIANS(direc_begin:direc_end))))))
confirmed with CTRL+SHIFT+ENTER
Audere est facere
@daddylonglegs: I tested and confirmed true average of direction wind.
Thank you!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks