+ Reply to Thread
Results 1 to 9 of 9

Showing degrees of wind direction as compass point initials

  1. #1
    Registered User
    Join Date
    05-04-2010
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    20

    Showing degrees of wind direction as compass point initials

    Here is a webpage that shows the degrees of wind direction and how they apply to the wind rose.

    ie: 348.75 - 11.25 = N(North)
    11.25 - 33.75 = NNE(NorthNorthEast)

    and so on.



    http://climate.umn.edu/snow_fence/Co...houttable3.htm


    How can I set up a cell that reads a number from 0-360 in a different cell and returns the correct set of initials?

    Thanks for any help on this.
    Last edited by bcsapper; 03-18-2011 at 09:11 PM.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Showing degrees of wind direction as compass point initials

    You could set up a 2 column table with degrees in left column and directions in right.
    Then use VLOOKUP() to retrieve the correct direction based on the degree.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Showing degrees of wind direction as compass point initials

    Here's a way that is self-contained in the formula:

    Please Login or Register  to view this content.
    If you don't want a fat formula like that you can have those numbers in one column, and the compass points in another, and replace the parts in braces with references to those columns:

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Showing degrees of wind direction as compass point initials

    If you choose the table option, here it is.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-04-2010
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Showing degrees of wind direction as compass point initials

    Thanks people, I will experiment with that method.

    But, the reason I posted the question was that I read that one can only nest 7 IF functions in one cell. After posting, I thought I'd give it a shot anyway, and it allowed me to do the whole thing with a nested IF. It's pretty long:

    =IF(A5<11.25,H1,IF(A5<33.75,H2,IF(A5<56.25,H3,IF(A5<78.75,H4,IF(A5<101.25,H5,IF(A5<123.75,H6,IF(A5<146.25,H7,IF(A5<168.75,H8,IF(A5<191.25,H9,IF(A5<213.75,H10,IF(A5<236.25,H11,IF(A5<258.75,H12,IF(A5<281.25,H13,IF(A5<303.75,H14,IF(A5<326.25,H15,IF(A5<348.75,H16,IF(A5>348.74999,H1,)))))))))))))))))

    The text is in the H column.

    Is it just that Excel versions prior to 2007 only allow 7 nested IFs?

  6. #6
    Registered User
    Join Date
    05-04-2010
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Showing degrees of wind direction as compass point initials

    @ Cutter: Thanks for putting that table together. It's more elegant than my solution, that's for sure.
    Last edited by bcsapper; 03-18-2011 at 09:26 PM.

  7. #7
    Registered User
    Join Date
    09-06-2012
    Location
    perth, australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Showing degrees of wind direction as compass point initials

    is there a way to then turn these into a graph?

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Showing degrees of wind direction as compass point initials

    maschette,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  9. #9
    Registered User
    Join Date
    09-06-2012
    Location
    perth, australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Showing degrees of wind direction as compass point initials

    oops sorry ill start my own thread

+ 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