Discussion on:
View:
Show:
A pernnial issue - how can you achieve vector averaging (sometimes called geometric averaging etc) to average Wind Direction data, where an arithmetic average for wind directions of 350 degs and 10 degs gives the totally incorrect result of 180 degs.
set up a formula where if the difference between the angles is greater than 180? then add 360 to the larger angle? Then use a mod function to put it back to 1-360??
I don't think this can be done in a formula in 1 cell. So have a cell that calculates the range. Then next to your raw values transform the value more than 180? lower than the max. Then average and transform back to 1-360?.
Maybe someone else has an elegant solution. I would be interested too.
I don't think this can be done in a formula in 1 cell. So have a cell that calculates the range. Then next to your raw values transform the value more than 180? lower than the max. Then average and transform back to 1-360?.
Maybe someone else has an elegant solution. I would be interested too.
Assume your values to average are in A1:A7
The formula would be
=(MOD(SUM(A1:A7),360)/COUNT(A1:A7))
The formula would be
=(MOD(SUM(A1:A7),360)/COUNT(A1:A7))
For seven values between 310 and 360, your formula yields a result of 26-something. If you go past 360 to 5 or 10, the result increases to 45.
Somehow, I don't think that's correct.
Somehow, I don't think that's correct.
But it's not pretty and it only works properly if your prevailing winds are from northerly directions (between 270 and 90).
For the line of data in cell A1, use this formula in cell B1:
=IF(A1 180,A1+360,A1)
For the average, use this formula:
=IF((AVERAGE(B1:B7))360,AVERAGE(B1:B7),(AVERAGE(B1:B7)-360))
Send me a PM and I can send you a sample of the spreadsheet.
For the line of data in cell A1, use this formula in cell B1:
=IF(A1 180,A1+360,A1)
For the average, use this formula:
=IF((AVERAGE(B1:B7))360,AVERAGE(B1:B7),(AVERAGE(B1:B7)-360))
Send me a PM and I can send you a sample of the spreadsheet.
- Keyboard Shortcuts:
- Prev
- Next
- Toggle

































