Shaxda tusmada
Tababarku wuxuu muujinayaa siyaabo kala duwan oo da'da looga heli karo dhalashada gudaha Excel. Waxaad baran doontaa dhawr nooc oo qaacido ah si aad u xisaabiso da'da tiro sannado ah oo dhammaystiran, aad hesho da'da saxda ah sannadaha, bilaha iyo maalmaha taariikhda maanta ama taariikh gaar ah
Ma jirto hawl gaar ah oo lagu xisaabiyo da'da Excel, si kastaba ha ahaatee waxaa jira dhowr siyaabood oo kala duwan oo taariikhda dhalashada loogu beddelo da'da. Casharkani wuxuu sharxi doonaa faa'iidooyinka iyo dib u dhacyada qaab kasta, wuxuu muujinayaa sida loo sameeyo xisaabinta da'da saxda ah ee Excel iyo in la hagaajiyo si loo xalliyo hawlo gaar ah.
Sida loo xisaabiyo da'da laga bilaabo taariikhda. dhalashada Excel
Nolol maalmeedka, su'aasha " Immisa sano ayaad jirtaa? " badanaa waxay tusinaysaa jawaab muujinaysa inta sano ee aad noolayd. Microsoft Excel, waxaad samayn kartaa qaacido aad ku xisaabiso da'da saxda ah bilaha, maalmaha, saacadaha iyo xitaa daqiiqadaha. Laakiin aynu dhaqan ahaanno, oo aynu baranno sida da'da looga xisaabiyo DOB sannadaha marka hore.
Qaababka Excel aasaasiga ah ee da'da sannadaha
Sidee baad caadi ahaan u garanaysaa da'da qof? Kaliya adoo ka jaraya taariikhda dhalashada taariikhda hadda jirta. Qaacidada da'da caadiga ah waxaa sidoo kale loo isticmaali karaa Excel.
Marka loo eego dhalashada dhalashada waxay ku jirtaa unugga B2, qaacidada lagu xisaabiyo da'da sannadaha waxay u socotaa sida soo socota:
=(TODAY()-B2)/365
La sameeyay!
Qacuunka waxa la geliyey unugga la doortay si degdeg ah, oo waxaad laba-gujitaa gacanta buuxinta si aad hoos ugu soo dejiso tiirka.
>>0>Sida aad dareentay, qaacidada uu sameeyay xisaabiyaha da'da Excel waa ka adag yahay kuwii aan ka soo hadalnay ilaa hadda, balse waxa ay ka kooban tahay halbeegyo kali iyo jamac ah sida "maalin" iyo "maalmo".Haddii aad jeclaan lahayd inaad ka takhalusto unugyada eber sida "0 days", dooro Ha muujin unugyada eber sanduuqa calaamadee:
>>Haddii aad xiisaynayso inaad tijaabiso xisaabiyaha da'dan iyo sidoo kale inaad ogaato 60 dheeraad ah oo waqti-badbaadin ah oo loogu talagalay Excel, waxaa lagugu soo dhaweynayaa inaad soo dejiso nooca tijaabada ah ee Ultimate Suite dhamaadka qoraalkan.
Sida loo muujiyo da'da qaarkood (ka yar ama ka weyn a da' gaar ah)
Xaaladaha qaar, waxa laga yaabaa inaad u baahato inaad xisaabiso da'da Excel oo kaliya, laakiin sidoo kale inaad muujiso unugyo ay ku jiraan da'da ka yar ama ka weyn da' gaar ah
Haddii da'daada xisaabinta qaacidada soo celisa tirada sanadaha dhamaystiran, ka dib waxaad samayn kartaa xeer habayn shuruudaysan oo joogto ah oo ku salaysan qaacido fudud sida kuwan:
- Si loo muujiyo da'da la mid ah ama ka weyn18: =$C2>=18
- Si loo muujiyo da'da ka yar 18: =$C2<18
Halka C2 uu yahay unuga ugu sarreeya tiirka da'da (kuma jiraan column header).
>>Laakin ka waran haddii caanaha caanahaagu ay muujiyaan da'da sannadaha iyo bilaha, ama sannadaha, bilaha iyo maalmaha? Xaaladdan oo kale, waa inaad abuurtaa xeer ku salaysan qaaciidada DATEDIF oo xisaabisa da'da laga bilaabo taariikhda dhalashada sannadaha.
Haddii laga soo qaado taariikhda dhalashada inay ku jiraan tiirka B oo ka bilaabmaya safka 2, qaacidooyinku waa sidan soo socota.
- Si loo muujiyo da'da ka hooseeya 18 (jaal):
=DATEDIF($B2, TODAY(),"Y")<18
- Si loo muujiyo da'da inta u dhaxaysa 18 iyo 65 (cagaar):
=AND(DATEDIF($B2, TODAY(),"Y")>=18, DATEDIF($B2, TODAY(),"Y")<=65)
- Si loo muujiyo da'da ka badan 65 (buluug):
=DATEDIF($B2, TODAY(),"Y")>65
Si aad u abuurto xeerar ku salaysan qaaciidooyinka sare, dooro unugyada ama safafka oo dhan oo aad rabto in aad iftiimiso , aad Home tab > Styles group, oo dhagsii Qaabka Shuruudaha ah > Xeerka cusub… > Isticmaal qaacido si loo go'aamiyo unugyada loo qaabeynayo .
Tallaabooyinka faahfaahsan waxaa laga heli karaa halkan: Sida loo sameeyo xeerka qaabaynta shuruudaysan ee ku salaysan caanaha.>>0>Sidaan ayaad ku xisaabinaysaa da'da Excel. Waxaan rajeynayaa in qaacidooyinka ay kuu fududaayeen inaad barato oo aad ku tijaabin doonto xaashidaada shaqo. Waad ku mahadsan tahay akhrinta oo waxaan rajeynayaa inaan kugu arko blogkeena usbuuca soo socda!la soo dajin karo
Excel Da'da Xisaabinta Tusaalooyinka (.xlsx file)
>Ultimate Suite 14-maalmood buuxda nooca functional (.exe file)nambarka 365 si aad u heshid tirooyinka sanadaha.Qaabacadu waa caddahay waana sahlan tahay in la xasuusto, si kastaba ha ahaatee, waxaa jirta dhibaato yar. Inta badan, waxay soo celisaa nambar jajab tobanle sida ku cad shaashadda hoose.
Si aad u muujiso tirada sanadaha dhamaystiran, isticmaal shaqada INT si aad ugu soo rogto jajab tobanle ilaa celceliska ugu dhow:
> =INT((TODAY()-B2)/365)
Dib-u-dhac: Isticmaalka caanaha da'dan ee Excel waxay soo saartaa natiijooyin sax ah oo qurux badan, laakiin aan cillad lahayn. U qaybinta celceliska tirada maalmaha sannadkii waxay si fiican u shaqeysaa inta badan, laakiin mararka qaarkood da'da ayaa khaldan. Tusaale ahaan, haddii qof uu dhasho Febraayo 29, maantana ay tahay Febraayo 28, qaacidada ayaa qofka ka dhigaysa maalin ka weyn.
Beddel ahaan, waxaad u qaybin kartaa 365.25 halkii aad ka ahaan lahayd 365 sababtoo ah afartii sano ee kasta wuxuu leeyahay 366. maalmo. Si kastaba ha ahaatee, habkani midna ma fiicna. Tusaale ahaan, haddii aad xisaabinayso da'da ubadka aan weli ku noolayn sanadka boodboodka, qaybinta 365.25 waxay keenaysaa natiijo khaldan.
Guud ahaan, ka jarista taariikhda dhalashada taariikhda hadda waxay si weyn u shaqeysaa nolosha caadiga ah, laakiin maaha habka ugu habboon ee Excel. Dheeraad ah oo ku saabsan casharkan, waxaad ku baran doontaa dhowr hawlood oo gaar ah kuwaas oo xisaabiya da'da qalad la'aan sanadka. DOB ilaa da'da Excel waxay adeegsanaysaa shaqada YEARFRAC taaswaxay soo celisaa jajabka sanadka, tusaale ahaan tirada maalmaha oo dhan inta u dhaxaysa laba taariikhood Labada dood ee hore waa cad yihiin oo uma baahna sharraxaad dheeraad ah. Basis waa dood ikhtiyaari ah oo qeexaysa tirada maalinta si loo isticmaalo.
Si loo sameeyo qaacidada da'da saxda ah, keen qiimayaashan soo socda shaqada YEARFRAC:
> 14> Taariikhda Bilowga- taariikhda dhalashada.>Marka la tixgeliyo kuwa kor ku xusan, qaacido Excel ah oo lagu xisaabiyo da'da laga bilaabo taariikhda dhalashada waa sida soo socota:
YEARFRAC ( taariikhda dhalashada, MAANTA(), 1)Marka loo eego in dhalashada dhalashada ay ku jirto unugga B2, qaacidadu waxay qaadataa qaabkan soo socda: <3
=YEARFRAC(B2, TODAY(), 1)
Marka, halkan waxaa ah qaacidada YEARFRAC oo la hagaajiyay si loo xisaabiyo da'da Excel:
> =ROUNDDOWN(YEARFRAC(B2, TODAY(), 1), 0)
>Ku xisaabi da'da Excel DATEDIF
Hal dariiqo kale oo taariikhda dhalashada loogu beddelo da'da gudaha Excel waa adeegsiga DATEDIF shaqada:
DATEDIF(bilawga_taariikhda,dhamaadka_taariikhda,cutubka)Shaqadani waxay soo celin kartaa farqiga udhaxeya laba taariikhood unugyo waqtiyo kala duwan sida sanado, bilo iyo maalmo, taaso ku xidhan qiimaha aad kusoo bandhigtay unit dood:
- Y - wuxuu soo celiyaa tirada sanadaha dhammaystiran inta u dhaxaysa taariikhda bilawga iyo dhammaadka.
- M - waxay soo celisaa tirada bilaha dhammaystiran u dhexeeya Taariikhaha
- D - waxay soo celisaa tirada maalmood labada taariikhood u dhaxaysa
- YM - waxay soo noqotaa bilood , iska indhatiray maalmo iyo sannado.
- MD - wuxuu soo celiyaa farqiga maalmood , isagoo iska indhatiraya bilaha iyo sannadaha.
Maadaama aan hiigsaneyno inaan xisaabino da'da >sano , waxaan isticmaaleynaa cutubka "y":
DATEDIF( taariikhda dhalashada, MAANTA(), "y")Tusaale ahaan, DOB-gu waxa uu ku jiraa unugga B2, oo waxaad tixraacaysaa unuggan caanaha da'daada:
=DATEDIF(B2, TODAY(), "y")
Looma baahna shaqo wareeg ah oo dheeri ah kiiskan sababtoo ah qaaciddada DATEDIF oo leh t unugga "y" wuxuu xisaabiyaa tirada sannadaha buuxa:
>
Sida da'da laga bilaabo dhalashada sannadaha, bilaha iyo maalmaha
Sida aad hadda aragtay , xisaabinta da'da sida tirada sanadaha buuxa ee qofku noolaa way fududahay, laakiin mar walba kuma filna. Haddii aad rabto inaad ogaato da'da saxda ah, sida inta sano, bilaha iyo maalmaha u dhexeeya taariikhda dhalashada qof iyo taariikhda hadda, qor 3Shaqooyinka DATEDIF kala duwan:
>- >>Si aad u hesho tirada sannadaha:
- Si aad u hesho tirada bilaha:
=DATEDIF(B2, TODAY(), "YM")
- Si aad u hesho tirada maalmaha:
=DATEDIF(B2,TODAY(),"MD")
=DATEDIF(B2, TODAY(), "Y")
Halka B2 ay tahay taariikhda dhalashada
Dabadeedna, ku xidh hawlaha kor ku xusan hal qaacido, sida tan:
> =DATEDIF(B2,TODAY(),"Y") & DATEDIF(B2,TODAY(),"YM") & DATEDIF(B2,TODAY(),"MD")
> Qaaciddada sare waxay soo celinaysaa 3 lambar (sanad, bilo, iyo maalmo) oo isku xidhan hal xadhig qoraal ah, sida ka muuqata sawirka hoose:>>Ma macno badan samaynayso, uh ? Si aad natiijooyinku macno badan u yeelaan, kala saar tirooyinka wata hakadyo oo qeex macnaha qiima kasta:
=DATEDIF(B2,TODAY(),"Y") & " Years, " & DATEDIF(B2,TODAY(),"YM") & " Months, " & DATEDIF(B2,TODAY(),"MD") & " Days"
Qaciidada si fiican ayey u shaqeysaa, laakiin waxaad sii wanaajin kartaa adigoo qarinaya qiyamka eber. Tan, ku dar 3 HADDII Oraahyo hubiya 0's, midkiiba DATEDIF:
> =IF(DATEDIF(B2, TODAY(),"y")=0,"",DATEDIF(B2, TODAY(),"y")&" years, ")& IF(DATEDIF(B2, TODAY(),"ym")=0,"",DATEDIF(B2, TODAY(),"ym")&" months, ")& IF(DATEDIF(B2, TODAY(),"md")=0,"",DATEDIF(B2, TODAY(),"md")&" days")
>Shaashada soo socota waxay muujineysaa qaacidada da'da Excel ugu dambeysa ee ficil - waxay ku soo celisaa da'da sanadaha, bilaha, iyo maalmo, soo bandhigaya kaliya aan eber ahaynqiimaha:>>> Talo. Haddii aad raadinayso qaacidada Excel si aad u xisaabiso da'da sanadaha iyo bilaha, qaado qaacidada sare oo ka saar IF(DATEDIF()) u dambeeya ee xisaabiya maalmaha.>Qaacadaha gaarka xisaabi da'da ExcelQaciidooyinka xisaabinta da'da guud ee kor lagu soo hadal qaaday ayaa si weyn u shaqeeya xaaladaha badankood. Xaaladaha qaarkood, si kastaba ha ahaatee, waxaad u baahan kartaa wax aad u gaar ah. Dabcan, suurtagal maaha in la daboolo mid kastaiyo xaalad kasta, laakiin tusaalooyinka soo socda ayaa ku siin doona fikrado ku saabsan sida aad u hagaajin karto qaacidada da'da iyadoo ku xiran hawshaada gaarka ah.
Sida loo xisaabiyo da'da taariikh gaar ah gudaha Excel
Haddii aad rabto inaad ogaato da'da qof taariikh cayiman, isticmaal qaacidada da'da DATEDIF ee aan kor ku soo hadalnay, laakiin ku beddel shaqada MAANTA() ee doodda 2aad taariikhda gaarka ah.
Marka loo eego taariikhda dhalashada inay ku taal B1, Qaaciddada soo socota waxay soo celin doontaa da'da laga bilaabo 1da Janaayo 2020:
=DATEDIF(B1, "1/1/2020","Y") & " Years, " & DATEDIF(B1, "1/1/2020","YM") & " Months, " & DATEDIF(B1, "1/1/2020", "MD") & " Days"
Si aad caanaha da'daada uga dhigto mid dabacsan, waxaad geli kartaa taariikhda unugga qaarkood waxaadna tixraaci kartaa unugga caanahaaga: <3
=DATEDIF(B1, B2,"Y") & " Years, "& DATEDIF(B1,B2,"YM") & " Months, "&DATEDIF(B1,B2, "MD") & " Days"
Halka B1 ku yaal DOB, B2na waa taariikhda aad rabto inaad xisaabiso da'da
24>
> Xisaabi da'da si gaar ah yearQaciidadani waxay ku imanaysaa anfaca xaaladaha marka taariikhda dhamaystiran ee la xisaabinayo aan la qeexin, oo waxaad taqaanaa sanadka oo kaliya.
Aan nidhaahno waxaad la shaqaynaysaa xogta caafimaadka, iyo hadafku waa in la ogaado da'da bukaanka wakhtiga ay ka yar yihiin galay baadhitaankii caafimaad ee ugu dambeeyay
Marka loo eego taariikhda dhalashada inay ku jiraan tiirka B oo ka bilaabmaya safka 3, sanadka baadhitaanka caafimaad ee ugu dambeeyana uu yahay tiirka C, qaacidada xisaabinta da'da waxay u socotaa sidan soo socota: <3
=DATEDIF(B3,DATE(C3, 1, 1),"y")
Maxaa yeelay taariikhda saxda ah ee baadhista caafimaadku lama qeexin, waxaad isticmaashaa hawsha DATE oo leh taariikh iyo dood aan sabab lahayn, tusaale; TAARIIKHDA (C3, 1, 1).
TheShaqada DATE waxay sanadka ka soo saartaa unugga B3, waxay samaysaa taariikh dhammaystiran iyadoo la isticmaalayo nambarada bisha iyo maalinta aad bixisay (1-Jan ee tusaalahan), waxayna taariikhdaas u gudbisaa DATEDIF. Natiijadu, waxaad helaysaa da'da bukaanka laga bilaabo Janaayo 1 ee sanad gaar ah:
> 3> 8> Iyadoo loo malaynayo in saaxiibkaa uu dhashay 8-dii Maarso 1978. Sidee ku ogaan kartaa taariikhda uu dhammaystirayo da'diisa 50 sano? Caadiyan, waxaad si fudud ugu dari lahayd 50 sano dhalashada qofka. Excel, waxaad ku sameyneysaa isla adigoo isticmaalaya shaqada DATE:
=DATE(YEAR(B2) + 50, MONTH(B2), DAY(B2))
Halka B2 ay tahay taariikhda dhalashada.
formula, waxaad tixraaci kartaa unug gaar ah halkaas oo isticmaalayaashaadu ay geli karaan tiro kasta oo sano ah (F1 ee sawirka hoose): > >> Xisaabi da'da maalinta, bisha iyo sanadka oo kala duwan UnugyadaMarka dhalashada dhalashada loo qaybiyo 3 unug oo kala duwan (tusaale ahaan sannadku waa B3, bisha C3 iyo maalinta D3), waxaad u xisaabin kartaa da'da sidan:
- >
- Hel taariikhda dhalashada adiga oo isticmaalaya DATE iyo DATEVALUE hawlaha:
DATE(B3,MONTH(DATEVALUE(C3&"1")),D3)
- Ku dheji qaacidada sare ee DATEDIF si aad u xisaabiso da'da laga bilaabo taariikhda dhalashada sannadaha, bilaha, iyo maalmaha:
=DATEDIF(DATE(B3, MONTH(DATEVALUE(C3&"1")), D3), TODAY(), "y") & " Years, "& DATEDIF(DATE(B3, MONTH(DATEVALUE(C3&"1")), D3),TODAY(), "ym") & " Months, "& DATEDIF(DATE(B3, MONTH(DATEVALUE(C3&"1")), D3), TODAY(), "md") & " Days"
>
>
Tusaaleyaal dheeraad ah oo ku saabsan xisaabinta tirada maalmaha ka horreeya/taariikhda ka dambeeya, fadlan eeg Sida loo xisaabiyo maalmaha laga soo bilaabo ama ilaa taariikhda Excel.
Da'da xisaabiyaha ku jira Excel
Haddii aad jeclaan lahayd inaad yeelatoxisaabiyaha da'da ee Excel, waxaad samayn kartaa mid adiga oo isticmaalaya dhawr nooc oo DATEDIF ah oo hoos lagu sharaxay. Haddii aad doorbidi lahayd inaadan dib-u-cusboonaysiin giraangiraha, waxaad isticmaali kartaa xisaabiyaha da'da ee ay abuureen xirfad-yaqaannadayada Excel.
Sida loo abuuro xisaabiyaha da'da ee Excel
Hadda oo aad taqaanid sida loo sameeyo qaacidada da'da ee Excel, waxaad ku dhisi kartaa xisaabiyaha da'da caadada u ah, tusaale ahaan kan:
> Ogow. Si aad u aragto buuga shaqada ee ku lifaaqan, fadlan u oggolow cookies-ka suuq-geynta.Waxa aad kor ku aragto waa xaashida Online-ka ah ee Excel, markaa xor u noqo inaad geliso taariikhda dhalashadaada unugga u dhigma, waxaadna heli doontaa da'daada daqiiqad gudaheed.
Xisaabiyaha wuxuu isticmaalaa hababka soo socda si uu u xisaabiyo da'da iyadoo lagu saleynayo taariikhda dhalashada unugga A3 iyo taariikhda maanta
- Qaabka B5 wuxuu xisaabiyaa da'da sannadaha, bilaha iyo maalmaha:
=DATEDIF(B2,TODAY(),"Y") & " Years, " & DATEDIF(B2,TODAY(),"YM") & " Months, " & DATEDIF(B2,TODAY(),"MD") & " Days"
- Formula B6 waxa ay xisaabisaa da'da bilaha gudahooda:
=DATEDIF($B$3,TODAY(),"m")
- Formula B7 waxa ay xisaabisaa da'da maalmaha:
=DATEDIF($B$3,TODAY(),"d")
Haddii aad khibrad u leedahay kontaroolada Foomka Excel, waxaad ku dari kartaa ikhtiyaar si aad u xisaabiso da'da taariikh gaar ah, sida ka muuqata shaashadda soo socota:
>
Si tan loo sameeyo, ku dar dhowr badhamada ikhtiyaarka ah ( Taba horumariyaha). > Geli > Form controls > Badhanka Xulashada ), oo ku xidh unug qaar. Kadibna, qor qaacidada IF/DATEDIF si aad u da'daato ama taariikhda maanta ama taariikhda uu cayimay isticmaaluhu.
Qaciddu waxay la shaqaysaa kuwan soo socda.macquul:
- >
- Haddii Taariikhda maanta sanduuqa doorashada la xusho, qiimaha 1 ayaa ku jira unugga ku xidhan (I5 ee tusaalahan), oo qaacidada da'da ayaa xisaabisa iyadoo ku saleysan taariikhda maanta. :
IF($I$5=1, DATEDIF($B$3,TODAY(),"Y") & " Years, " & DATEDIF($B$3,TODAY(), "YM") & " Months, " & DATEDIF($B$3, TODAY(), "MD") & " Days")
- Hadii Taariikh gaar ah badhanka ikhtiyaariga ah ladoorto IYO taariikhda la geliyo unuga B7, da'da waxa la xisaabinayaa taariikhda la cayimay:
IF(ISNUMBER($B$7), DATEDIF($B$3, $B$7,"Y") & " Years, " & DATEDIF($B$3, $B$7,"YM") & " Months, " & DATEDIF($B$3, $B$7,"MD") & " Days", ""))
Ugu danbayn , Buul kuwan kor ku xusan isku xidh, oo waxaad heli doontaa qaacidada xisaabinta da'da oo dhammaystiran (gudaha B9):
=IF($I$5=1, DATEDIF($B$3, TODAY(), "Y") & " Years, " & DATEDIF($B$3, TODAY(), "YM") & " Months, " & DATEDIF($B$3, TODAY(), "MD") & " Days", IF(ISNUMBER($B$7), DATEDIF($B$3, $B$7,"Y") & " Years, " & DATEDIF($B$3, $B$7,"YM") & " Months, " & DATEDIF($B$3, $B$7,"MD") & " Days", ""))
Qaciidooyinka ku jira B10 iyo B11 waxay ku shaqeeyaan caqli isku mid ah. Dabcan, aad bay u fudud yihiin sababtoo ah waxay ku jiraan hal shaqo oo DATEDIF ah oo lagu soo celinayo da'da sida tirada bilaha ama maalmaha dhamaystiran, siday u kala horreeyaan.
Si aad u ogaato faahfaahinta, waxaan kugu martiqaadayaa inaad soo dejiso xisaabiyaha da'da ee Excel oo aad baarto Hababka ku jira unugyada B9:B11.
Soo deji Xisaabiyaha Da'da ee Excel
Xisaabiyaha da'da u diyaarsan ee Excel
Isticmaalayasha Ultimate Suite ma haystaan Si aad uga werwerto samaynta xisaabiyaha da'dooda ee Excel - waxay u jirtaa dhowr taako oo keliya:
>- > Dooro unug aad rabto inaad geliso qaacidada da'da, tag Aaladaha Awoodda 2> tab > Taariikhda & Waqtiga kooxda, oo guji Taariikhda & Waqtiga Wizard button.
- Taariikhda & Waqtiga Wizard ayaa bilaabi doona, oo waxaad si toos ah u aadaysaa Age tab. >
- Tabaha Da'da , waxaa jira 3 shay oo aad ku qeexday:
- 14> Xogta dhalashada sida a
>