爱问知识人 爱问教育 医院库

EXCEL中如何实现角度度分秒的输入以及数据处理?

首页

EXCEL中如何实现角度度分秒的输入以及数据处理?

EXCEL中如何实现角度度分秒的输入以及数据处理?有插件吗?何处有?

提交回答
好评回答
  • 2005-04-25 22:45:14
      MicroSoftFAQConvertingDecimalDegreestoDegrees/Minutes/SecondsFunctionConvert_Degree(Decimal_Deg)AsVariantWithApplication\'SetdegreetoIntegerofArgumentPassedDegrees=Int(Decimal_Deg)\'Setminutesto60timesthenumbertotheright\'ofthedecimalforthevariableDecimal_DegMinutes=(Decimal_Deg-Degrees)*60\'Setsecondsto60timesthenumbertotherightofthe\'decimalforthevariableMinuteSeconds=Format(((Minutes-Int(Minutes))*60),"0")\'ReturnstheResultofdegreeconversion\'(forexample,10。
      46=10~27\'36")Convert_Degree=""&Degrees&"°"&Int(Minutes)&"\'"_&Seconds+Chr(34)EndWithEndFuncti (A1)ConvertingDegrees/Minutes/SecondstoDecimalDegreesFunctionConvert_Decimal(Degree_DegAsString)AsDouble\'Declarethevariablestobedoubleprecisionfloating-point。
      DimdegreesAsDoubleDimminutesAsDoubleDimsecondsAsDouble\'Setdegreetovaluebefore"°" grees=Val(Left(Degree_Deg,InStr(1,Degree_Deg,"°")-1))\'Setminutestothevaluebetweenthe"°"andthe"\'"\'ofthetextstringforthevariableDegree_Degdividedby\'60。
      TheValfunctionconvertsthetextstringtoanumber。
      minutes=Val(Mid(Degree_Deg,InStr(1,Degree_Deg,"°")+2,_InStr(1,Degree_Deg,"\'")-InStr(1,Degree_Deg,_"°")-2))/60\'Setsecondstothenumbertotherightof"\'"thatis\' conds=Val(Mid(Degree_Deg,InStr(1,Degree_Deg,"\'")+_2,Len(Degree_Deg)-InStr(1,Degree_Deg,"\'")-2))_/3600Convert_Decimal=degrees+minutes+secondsEndFunctionExample:=Convert_Decimal("10°27\'36""")。

    老***

    2005-04-25 22:45:14

类似问题

换一换
  • 互联网 相关知识

  • 电脑网络技术
  • 电脑网络

相关推荐

正在加载...
最新资料 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):