+ Reply to Thread
Results 1 to 11 of 11

Convert an Azimuth to Bearing with Minutes and Seconds

  1. #1
    Registered User
    Join Date
    07-07-2020
    Location
    mercedes, tx
    MS-Off Ver
    MS Office 2016
    Posts
    3

    Post Convert an Azimuth to Bearing with Minutes and Seconds

    Hello, I'm an instructor at a college and I was looking into using xcell to help me make a calculator that will convert an Azimuth to Bearing and A bearing to Azimuth. I just hate doing all the math behind all of these conversions. Can anyone help?

    Thanks in Advance

    miguelloya1

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Convert an Azimuth to Bearing with Minutes and Seconds

    Hi welcome to the forum, and maybe even the internet
    Google is our best friend and .... https://www.youtube.com/watch?v=9ZRKtTeevE0
    This is what a simple search can give you, and there's more where that came from.
    Happy coding,
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    07-07-2020
    Location
    mercedes, tx
    MS-Off Ver
    MS Office 2016
    Posts
    3

    Re: Convert an Azimuth to Bearing with Minutes and Seconds

    Hi, yes, I already created an excel with Bearings to Azimuths utilizing the exact video you suggested. I need one that converts the other way. Azimuths to Bearings.
    I have searched for the video in question and to no avail. This is why I am hoping some of the experts in this website can help me.

    Thank You

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Convert an Azimuth to Bearing with Minutes and Seconds

    Well, isn't easy just to ask ... again. I typed in Google and .... https://www.youtube.com/watch?v=EJvhnPEDJHE
    Another one with some information (that might help)

  5. #5
    Registered User
    Join Date
    07-07-2020
    Location
    mercedes, tx
    MS-Off Ver
    MS Office 2016
    Posts
    3

    Re: Convert an Azimuth to Bearing with Minutes and Seconds

    Thank you so much for your assistance.
    This is a sample of what I am looking for:

    I want to be able to type the Azimuth
    Azimuth: 134.7454


    And get the results shown below
    Bearing: S45d15'16"E

    I know it might be too much to ask to convert an azimuth to bearing that will show minutes and seconds.
    The last link you shared is the closest I found. Might have to tweek that one a bit...

    Thanks Once again
    miguelloya1

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Convert an Azimuth to Bearing with Minutes and Seconds

    That's what VBA is all about, loads of perspiration but also a lot of inspiration and .... patience and time to solve it.
    Hope you manage

  7. #7
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,147

    Re: Convert an Azimuth to Bearing with Minutes and Seconds

    @miguelloya1;

    For conversion of Azimuth to Bearing, see the link below:

    https://www.excelforum.com/excel-for...ng-format.html

    .

  8. #8
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Convert an Azimuth to Bearing with Minutes and Seconds

    That's the OP's own first question

  9. #9
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Convert an Azimuth to Bearing with Minutes and Seconds

    Also a spreadsheet of before and after values both ways would be good. Part of the key is how you enter things consistently to create vba code or a formula. Follow the instructions in the yellow banner

  10. #10
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Convert an Azimuth to Bearing with Minutes and Seconds

    Perhaps the attached is along the lines you want
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,408

    Re: Convert an Azimuth to Bearing with Minutes and Seconds

    If I did everything correctly (and I believe I did), here is a function (it can be called as a UDF directly on the worksheet) that will take an azimuth and convert it to a bearing...
    Please Login or Register  to view this content.
    So, if used on a worksheet where, say, cell A1 contained your azimuth, then this formula in a cell will return the bearing...

    =az2dms(A1)

    Note: For your example 134.7454 azimuth, I get a bearing of S45°15'17"E instead of your S45°15'16"E (one second difference) because I rounded the seconds portion instead of truncating it. Your value throws more than 1/2 second away. I that is what you want, then change the Round function to and Int function for the calculation of the Sec variable.
    Last edited by Rick Rothstein; 07-09-2020 at 02:24 AM. Reason: Corrected small piece of the code.

+ 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. [SOLVED] Convert seconds to years, months, days, hours, minutes snd seconds
    By Tresfjording in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-14-2022, 12:55 AM
  2. Convert decimal minutes and seconds into total seconds
    By shauneyd in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-29-2018, 08:50 AM
  3. VBA code that converts Bearing angle in degrees to Azimuth
    By Farhat95 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-14-2017, 10:31 PM
  4. Convert Angle (Azimuth) to Bearing format.
    By markogwapito in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2015, 06:59 AM
  5. convert days hours minutes seconds to just minutes
    By hollylynn in forum Excel General
    Replies: 4
    Last Post: 08-28-2015, 08:53 AM
  6. Convert Days:Hours:Minutes:seconds to minutes.
    By Kevingardner1 in forum Excel General
    Replies: 4
    Last Post: 06-03-2014, 06:44 PM
  7. convert from seconds to form hours: minutes: seconds?
    By nguyen_han in forum Excel General
    Replies: 2
    Last Post: 10-13-2011, 06:56 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