Convert number in (Deg) to direction (Text) N, NNE,...

Haf

New Member
Joined
Jan 6, 2011
Messages
8
Hello,

I was wondering if it was possible to convert wind direction in Deg (Number) to wind direction in Text (N,NNE,...) using Excel.

Thanks

Haf
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Cartesian Coordinates are in (x,y) = distance along x-axis and distance along y-axis.
Polar Coordinate are in (r, Theta) = distance from origin and angle from positive y-axis.

Going from point 1 (x1, y1) to point 2 (x2, y2), calculate a third (point 3) as (x3, y3) where x3 = x2 - x1 and y3 = y2 - y1.

The distance between the points, r, is =SQRT(x3^2+y3^2) from Pythagorean Thm

The angle from one to the other, Theta, is =DEGREES(ATAN2(x3, y3)).

Feed this value into the formula from earlier in the post to obtain your cardinal direction.

HTH,
~ Jim
 
Last edited:
Upvote 0
Cartesian Coordinates are in (x,y) = distance along x-axis and distance along y-axis.
Polar Coordinate are in (r, Theta) = distance from origin and angle from positive y-axis.

Going from point 1 (x1, y1) to point 2 (x2, y2), calculate a third (point 3) as (x3, y3) where x3 = x2 - x1 and y3 = y2 - y1.

The distance between the points, r, is =SQRT(x3^2+y3^2) from Pythagorean Thm

The angle from one to the other, Theta, is =DEGREES(ATAN2(x3, y3)).

Feed this value into the formula from earlier in the post to obtain your cardinal direction.

HTH,
~ Jim


I guess where I'm confused is where to add that value in the formula. I have successfully done the (r, thea)

I don't want to be of bother to you so I understand if I'm below a level of assistance lol.

Do i need to have (r,thea) in one column? right now i have it as R in a column and THEA in a column with a distance (in miles) in the third column first cell... maybe I'm creating the layout/table in error as well?
 
Upvote 0
I guess where I'm confused is where to add that value in the formula. I have successfully done the (r, thea)

I don't want to be of bother to you so I understand if I'm below a level of assistance lol.

Do i need to have (r,thea) in one column? right now i have it as R in a column and THEA in a column with a distance (in miles) in the third column first cell... maybe I'm creating the layout/table in error as well?

In whichever cell you want the cardinal direction to display, put the following formula from post #8 of this thread:

Code:
=CHOOSE(1+ROUND(A1/22.5,0),"N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSW","SW","WSW","W","WNW","NW","NNW","N")

instead of A1 use the reference to your cell that contains Theta.
 
Upvote 0
In whichever cell you want the cardinal direction to display, put the following formula from post #8 of this thread:



instead of A1 use the reference to your cell that contains Theta.

ooooh my gosh, i'm such a dork. Yes, that makes plenty sense now. i was making it way harder than it needed to be when I read it. Thank you SOO much for your help.
 
Upvote 0

Forum statistics

Threads
1,223,382
Messages
6,171,771
Members
452,422
Latest member
rlynchbro

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top