+ Reply to Thread
Results 1 to 8 of 8

Average of directions wind

  1. #1
    Registered User
    Join Date
    03-14-2013
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    24

    Average of directions wind

    Welcome to Excel Forum!

    If the wind speed > 0 then calculate average of direction:

    Please Login or Register  to view this content.
    I got error because maybe 'averageif' hasn't cos, sin... support.

    Help!
    Last edited by nunito; 03-14-2013 at 08:30 PM.

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Average of directions wind

    See:

    http://www.excelforum.com/excel-gene...irections.html
    Gary's Student

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,624

    Re: Average of directions wind

    I don't have 2010, but that AVERAGE.IF (with the dot) looks funny? Maybe AVERAGEIF (no dot)?
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    03-14-2013
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Average of directions wind

    Quote Originally Posted by protonLeah View Post
    I don't have 2010, but that AVERAGE.IF (with the dot) looks funny? Maybe AVERAGEIF (no dot)?
    Sorry but in portuguese - 'média.se' (w/ the dot).

  5. #5
    Registered User
    Join Date
    03-14-2013
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Average of directions wind

    Quote Originally Posted by Jakobshavn View Post
    ok but do not found to mean «if wind speed > 0 then calculate average of directions wind».

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Average of directions wind

    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

  7. #7
    Registered User
    Join Date
    03-14-2013
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Average of directions wind

    Quote Originally Posted by daddylonglegs View Post
    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
    I will work it...

  8. #8
    Registered User
    Join Date
    03-14-2013
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    24

    Thumbs up Re: Average of directions wind

    @daddylonglegs: I tested and confirmed true average of direction wind.
    Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1