+ Reply to Thread
Results 1 to 8 of 8

how to convert a complex number by a simple formula

  1. #1
    Registered User
    Join Date
    01-30-2015
    Location
    Iran , Isfahan
    MS-Off Ver
    2013
    Posts
    4

    Question how to convert a complex number by a simple formula

    hey guys, anyone here knows how to make this happen?

    i have lots of Degrees Minutes Seconds (DMS) number , data formatted like this : 26 33 51.332 =>( 26 is D -33 is M -51.332 is S)
    and i want to convert them to Decimal Degrees (DD)

    the fformula is :
    398e37ebca57abf399346e0f44f0572f.png
    DD= D + M/60 + S/3600
    wikipedia link

    the website that using this format

    I am amature in excel, also i seriously need something to do this
    i think excel can do something like this so i ask this question here
    Thanks in advance
    Attached Files Attached Files
    Last edited by iutalireza; 01-31-2015 at 07:42 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,312

    Re: how to convert a complex number by a simple formula

    Try this, assuming that your data start in A1. Copy down.

    =SUBSTITUTE(SUBSTITUTE(TRIM(A1)," ",":"),"-","")*IF(LEFT(A1)="-",-24,24)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: how to convert a complex number by a simple formula

    please attach sample file with some examples and desired results
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    01-30-2015
    Location
    Iran , Isfahan
    MS-Off Ver
    2013
    Posts
    4

    Re: how to convert a complex number by a simple formula

    Quote Originally Posted by Glenn Kennedy View Post
    Try this, assuming that your data start in A1. Copy down.

    =SUBSTITUTE(SUBSTITUTE(TRIM(A1)," ",":"),"-","")*IF(LEFT(A1)="-",-24,24)
    fantastic job ! its exactly what i need! Thank you

    but how can i control decimal places in a formula result ?
    for example i need 35.72976555555556 but i get 35.72976556

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,312

    Re: how to convert a complex number by a simple formula

    Hi. Glad you got what you needed (and thanks for the Reputation always appreciated). Home/Format/Increase Decimal & set to whatever you need (it looks like.00 with a left-facing arrow pointing to another 0, below it).
    Last edited by Glenn Kennedy; 01-31-2015 at 05:35 AM.

  6. #6
    Registered User
    Join Date
    01-30-2015
    Location
    Iran , Isfahan
    MS-Off Ver
    2013
    Posts
    4

    Re: how to convert a complex number by a simple formula

    now everything is ok!
    thank you so much Dear Glenn Kennedy

  7. #7
    Registered User
    Join Date
    01-30-2015
    Location
    Iran , Isfahan
    MS-Off Ver
    2013
    Posts
    4

    Re: how to convert a complex number by a simple formula

    Quote Originally Posted by Glenn Kennedy View Post
    Hi. Glad you got what you needed (and thanks for the Reputation always appreciated). Home/Format/Increase Decimal & set to whatever you need (it looks like.00 with a left-facing arrow pointing to another 0, below it).
    now everything is ok !!
    thank you so much Dear Glenn Kennedy

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,312

    Re: how to convert a complex number by a simple formula

    You're welcome. Enjoy your Saturday in sunny and (by comparison with here) warm Isfahan...

+ 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. Experts: Please help me make a ridiculously complex formula more simple!
    By RobFromNZ in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-04-2014, 12:09 AM
  2. [SOLVED] Complex convert time to minutes formula required
    By peakoverload in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-27-2012, 05:35 AM
  3. How to convert XXh XXm XXs into simple number?
    By jenli17 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-15-2009, 08:36 AM
  4. complex excel formula Array how do I convert it to a vba Function
    By Rob in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-10-2006, 02:10 PM
  5. Replies: 4
    Last Post: 03-29-2005, 03:06 PM

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