Sida loo xisaabiyo fogaanta wadista ee u dhaxaysa labada ciwaan ee Excel

  • La Wadaag Tan
Hugh West

Microsoft Excel waa barnaamij xaashida faafinta ah oo aad u badan. Waxay ku siinaysaa inay qabato hawlo aad u ballaadhan oo aanad xitaa malayn karin. Waxaad xitaa xisaabin kartaa masaafada wadista ee u dhaxaysa labada ciwaan ee Excel. Haddii aad haysato liis cinwaano ah si aad u ogaato farqiga u dhexeeya, waxaad dabcan isticmaali kartaa MS Excel. Waxaad sidoo kale xisaabin kartaa masaafada gacanta. Laakiin taasi waxay noqon doontaa waqti aad u badan. Maadaama aad haysato boqollaal kun oo masaafo ah oo aad xisaabiso. Sidaa darteed maqaalkan, waxaan ku tusi doonaa sida loo xisaabiyo masaafada wadista ee u dhaxaysa labada ciwaan ee Excel.

Soo deji Buug-hawleed Practice

> Waxaad kala soo bixi kartaa faylka Excel ee isku xirka soo socda oo ku celceli it. > Ku xisaabi masaafada u dhaxaysa labada ciwaan.xlsm>

Isticmaalka Trigonometric Functions si loo xisaabiyo Fogaanta Wadista >Halkan, waxaan ku tusi doonaa inaad isku darsato shaqo trigonometric si aad u xisaabiso masaafada wadista ee u dhaxaysa labada ciwaan ee Excel.

>Si aad u bixiso Tusaale ahaan, waxaan soo qaatay laba ciwaan. Ciwaanka ugu horeeya waa MacArthur Park, Camden NSW, Australia. Latitude iyo Longitude waa 34.06312149iyo -118.2783975siday u kala horreeyaan. Ciwaanka labaad waa Jersey City, New Jersey, USA. Latitude iyo longitude waa 40.71799929iyo -74.04276812siday u kala horreeyaan.

Hadda, waxaan isku dari doonaa ACOS , COS , SIN , & RADIANS waxay u shaqeeyaan si ay u abuuraan qaacido. Qaaciddada ayaa si wax ku ool ah u xisaabin doonta masaafada wadista u dhaxaysa labada ciwaan ee mayl.

Taas,

❶ Dooro unugga D8 marka hore.

❷ Kadibna geli qaacidada soo socota ee unugga.

=ACOS(COS(RADIANS(90-C6)) *COS(RADIANS(90-C5)) +SIN(RADIANS(90-C6)) *SIN(RADIANS(90-C5)) * COS(RADIANS(D6-D5))) *3959

❸ Kadibna taabo badhanka ENTER

Hadda, waxaad arki doontaa in qaacidadu ay xisaabisay fogaanta wadista ee u dhaxaysa MacArthur Park, Camden NSW, Australia, iyo Jersey City, New Jersey, USA in miles. Markaa, waxaad natiijada ku arki doontaa unugga D8 oo ah 2445.270922 mayl> Kala-baxa Formula

    > 13> COS(RADIANS(90-C6)) *COS u beddelo qiyamka shucaaca iyo COS shaqada waxa ay bixisa labka qiyamka, cosines for latitude waa la badin doonaa markaas. Wax soo saarka - 0.365377540842758
  • COS(RADIANS(D6-D5)) - waxay bixisaa qiimaha cosine farqiga u dhexeeya labada ciwaan. Wax soo saarka – 0.716476936499882
  • SIN(RADIANS(90-C6)) *SIN(RADIANS(90-C5)) of longitudes ka 90 radian oo baray qiyamka sinaha. Wax soo saarka - 0.627884682513118
  • >
>
  • SIN(RADIANS(90-C6)) *SIN D5)) - noqota0.627884682513118 * 0.716476936499882. Natiijada - 0.449864893802199
  • COS(RADIANS(90-C6)) *COS(RADIANS(90-C5)) C6)) * SIN(RADIANS(90-C5)) *COS(RADIANS(D6-D5)) - waxay noqotaa 0.365377540842758 * 0.449864893802199. Wax soo saarka - 0.815242434644958
  • > 15>
      > 13> Kadib ACOS shaqada arccosines qiimaha. Wax soo saarka - 0.617648629071256
    • Ugu dambayntii, ku dhufashada qiimaha 3959 - 0.617648629071256 *3959 waxay ku siinaysaa natiijada mayl. Wax soo saarka - 2445.270922
    >

    Ka sii akhri 8> 2. Xisaabi Fogaanta Wadista ee u dhaxaysa Labada Ciwaanka Adigoo Adeegsanaya Koodhka VBA >Qaybtan, waxaan isticmaali doonaa VBA code si aan u abuurto hawl isticmaale-qeexay. Kadibna waxaan isticmaali doonaa shaqadaas si aan u xisaabiyo masaafada wadista ee u dhaxaysa labada ciwaan ee Excel.

    Halkan, waxaan isticmaalayaa laba ciwaan. Ciwaanka ugu horeeya waa MacArthur Park, Camden NSW, Australia . Latitude iyo Longitude waa 34.06312149 iyo -118.2783975 siday u kala horreeyaan. Ciwaanka labaad waa Jersey City, New Jersey, USA . Latitude iyo Longitude waa 40.71799929 iyo -74.04276812 siday u kala horreeyaan.

    >Halkan waxaan soo saari doonaa iskudubarid mid kasta oo ka mid ah ciwaannada. Iskudubaridku waa isku-darka loolka iyo dhererka. Si loo abuuro iskudubarid, >
      >
    • Ku qor loolka ciwaankamarka hore
    • >
    • ka bacdi geli comma
    • >
    • ka bacdi ku qor dhererka isla ciwaanka
    • >

    Hadaba isku xidhka ciwaanka hore waa 34.0631214903094 ,-118.27839753751 . Isku xirka ciwaanka labaadna waa 40.7179992930381,-74.0427681204225 .

    >

    > VBA kood wuxuu u baahan yahay API maabka si loo xisaabiyo masaafada wadista. API waxay u taagan tahay Interface Programming Application. Waxaad isticmaali kartaa API si aad ugu xidho Khariidadda Google ama Khariidadda Bing wax kasta oo aad door bidayso

    Laakin abuurista Google Khariidadda API waa la bixiyaa. Taa lidkeed, waxaad samayn kartaa API ee Bing MAP oo bilaash ah.

    Sidaa darteed, waxaan isticmaalayaa Bing MAP API halkan.

    >
      >
    • Si aad u abuurto Bing MAP API , guji halkan .
    • >
    >

    Waxaan sameeyay API . Waxaan ku soo lifaaqayaa API hoos:

    > > AhFG0hk5nKCcQlk80MRaSk1ZtoYUYsX98BCLWi7p7MKZ-VrzOWptdUwsvj9D3L9F > > 6>VBA code. Taas awgeed,
      >
    • Riix ALT + F11 si aad u furto Tafatiraha VBA .
    • >
    • Hadda tag Geli Module si loo furo module cusub.
    • >
    > >

    Ka dib marka la furo VBA Editor , geli kuwan soo socda VBA code ee moduleka la furay.

    9008

    Koodhka kala-baxa >

    >>
  • halkan , Waxaan sameeyay adeegsi-qeexay shaqo oo loo yaqaan Driving_Distance. >
  • >
  • Markaa waxaan adeegsaday 3 cabbir: goobta bilawga , meel ,iyo qiimaha muhiimka ah. 7>, Qiimaha_ugu dambeeya , mitHTTP , & mitUrl. doorsoomayaashan waxa loo isticmaalaa in lagu kaydiyo qiyam kala duwan
  • >
  • kadibna la isku daro qiyamka (ku kaydsan gudaha mitUrl ) waxaana la adeegsaday dhawr habab ( Fur , SetRequestHeader , Diri ). Tani waa sida aan ugu suurtagashay in aan xisaabiyo masaafada wadista ee API .

Tani VBA code waxay soo saartaa hawl isticmaale-qeexay oo loo yaqaan Driving_Distance .

Shaqada Driving_Distance waxay u baahantahay 3 dood wadar ahaan.

Halkan waa tan macnaha guud ee Driving_Distance

>> =Driving_Distance(Start_Location_Coordinate,End_Location_Coordinate, API)Hadda, waa waqtigii la adeegsan lahaa shaqada isticmaale-qeexay. Taas awgeed,
    >
  • Dooro unugga E10 .
  • >
  • Kaddibna geli qaacidada soo socota:
  • > 15> >> > =Driving_Distance(E5,E6,C8)

      >
    • Hadda, taabo ENTER .
    • >
    > >

    Jajabka Formula

    12>
  • E5 waa Bilow_Goob_isku xidhka .
  • E6 waa Dhamaadka_Goobta_isku xidhka .
  • <13 C8 waa API ee Bing MAP . >C8 fogaanta wadista inta u dhaxaysa laba ciwaan oo mayl. Ka eeg unugga E10 . Waxay arki doontaa lambarka, 2790 .

    Marka masaafada wadista ee u dhaxaysa MacArthur Park,Camden NSW, Australia, iyo Jersey City, New Jersey, USA waa 2790 mayl.

    >

    Faahfaahin dheeraad ah ka sii akhri: >Sida loo Xisaabiyo Masaafada u dhaxaysa Labada Ciwaanka ee Excel (3 Ways)

    > Qaybta Tababarka > Waxaad heli doontaa xaashi Excel ah sida shaashadda soo socota, dhamaadka faylka Excel ee la bixiyay halkaas oo aad ku dhaqmi karto dhammaan hababka looga hadlay maqaalkan

    Gabagabo

    Si aan u soo koobo, waxaan ka hadlay 2. siyaabo lagu xisaabiyo masaafada wadista ee u dhaxaysa labada ciwaan ee Excel. Ha ka waaban inaad wax su'aalo ah ku waydiiso qaybta faallooyinka ee hoose. Waxaan isku dayi doonaa inaan si dhaqso ah uga jawaabno dhammaan weydiimaha khuseeya Oo fadlan booqo websaydkayaga Exceldemy si aad wax badan u sahamiso.

    >

Hugh West waa tababare iyo falanqeeye heer sare ah oo tayo sare leh oo khibrad ka badan 10 sano u leh warshadaha. Waxa uu shahaadada koowaad ee jaamacadda ka qaatay xisaabaadka iyo maaliyadda iyo maamulka ganacsiga. Hugh waxa uu jecel yahay waxbaridda waxana uu sameeyay hab waxbarid gaar ah oo ay fududahay in la raaco lana fahmo. Aqoontiisa khabiirka ah ee Excel waxay ka caawisay kumanaan arday iyo xirfadlayaal adduunka oo dhan ah inay horumariyaan xirfadahooda oo ay ku fiicnaadaan shaqadooda. Isaga oo u maraya balooggiisa, Hugh waxa uu aqoontiisa la wadaagaa adduunka, isaga oo siinaya casharro Excel ah oo bilaash ah iyo tababar online ah si uu uga caawiyo shakhsiyaadka iyo ganacsiyada in ay gaaraan awooddooda buuxda.