+ Reply to Thread
Results 1 to 2 of 2

Function to convert cardinal wind direction to degrees

  1. #1
    Registered User
    Join Date
    03-12-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    3

    Function to convert cardinal wind direction to degrees

    Hi all,

    I have a dataset with more than 70,000 rows with weather data. I need to convert my cardinal points (N,E,ENE, S, W, WSW, ect..) to degrees ( 0, 90, ec..), I am trying to automate this process. Is there anyway to do this by using Vlookup or lookup?

    Thanks in advance for your help

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Function to convert cardinal wind direction to degrees

    Add a lookup table:

    Cardinal Direction Degrees
    N 0
    NNE 22.5
    NE 45
    ENE 67.5
    E 90
    ESE 112.5
    SE 135
    SSE 157.5
    S 180
    SSW 202.5
    SW 225
    WSW 247.5
    W 270
    WNW 292.5
    NW 315
    NNW 337.5

    Now you can use INDEX / MATCH to return degrees, from a cardinal direction:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 06-14-2022, 02:59 AM
  2. Take the wind direction only
    By vutienhp in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 01-14-2015, 12:09 AM
  3. Replies: 8
    Last Post: 09-06-2012, 01:50 PM
  4. Defining wind event by direction (degrees) AND speed!
    By cswann in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2008, 04:32 PM
  5. Average Wind Direction
    By rexmorgan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-18-2005, 12:05 AM
  6. wind direction
    By TC in forum Excel General
    Replies: 3
    Last Post: 07-14-2005, 02:05 PM
  7. Convert wind direction to degrees
    By Larry in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-17-2005, 06:06 AM

Tags for this Thread

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