+ Reply to Thread
Results 1 to 3 of 3

convert yards

  1. #1
    Les
    Guest

    convert yards

    Does anyone know a fomula or function to convert yards to miles and yards
    i.e. 2000 yards equals 1 mile and 240 yds not 1.14 miles.
    Thanks


  2. #2
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    =TRUNC(A1/1760)&" Miles "&MOD(A1,1760)&" Yards"

    or if you wanted it to be slightly more elaborate
    =IF(A1<1760,A1& " yards",IF(A1<3520,TRUNC(A1/1760)&" Mile "&MOD(A1,1760)&" Yards",TRUNC(A1/1760)&" Miles "&MOD(A1,1760)&" Yards"))

    Regards

    Dav

  3. #3
    Les
    Guest

    Re: convert yards

    Cheers Dav
    Absolutely spot on.
    Les.


    "Dav" wrote:

    >
    > =TRUNC(A1/1760)&" Miles "&MOD(A1,1760)&" Yards"
    >
    > or if you wanted it to be slightly more elaborate
    > =IF(A1<1760,A1& " yards",IF(A1<3520,TRUNC(A1/1760)&" Mile
    > "&MOD(A1,1760)&" Yards",TRUNC(A1/1760)&" Miles "&MOD(A1,1760)&"
    > Yards"))
    >
    > Regards
    >
    > Dav
    >
    >
    > --
    > Dav
    > ------------------------------------------------------------------------
    > Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
    > View this thread: http://www.excelforum.com/showthread...hreadid=563200
    >
    >


+ 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