Shaxda tusmada
Tababarku wuxuu sharxayaa sida loo isticmaalo COUNTIFS iyo COUNTIF qaaciidooyinka leh shuruudo badan oo Excel ah oo ku saleysan IYO sidoo kale AMA macquul ah. Waxaad ka heli doontaa tiro tusaalooyin ah noocyada xogta ee kala duwan - lambarada, taariikhaha, qoraalka, xarfaha calaamadaynta, unugyada aan banaanayn iyo wax ka badan ilaa sababtoo ah aad ayey isugu egyihiin oo labaduba waxaa loogu talagalay in lagu tiriyo unugyada iyadoo lagu saleynayo shuruudaha la cayimay.
Farqiga u dhexeeya ayaa ah in COUNTIF loo qorsheeyay in lagu tiriyo unugyada leh xaalad keliya oo hal qayb ah, halka COUNTIFS ay qiimeyn karto shuruudo kala duwan. isku mid ama noocyo kala duwan. Ujeedada casharkan waa in la soo bandhigo habab kala duwan oo lagaa caawiyo inaad doorato qaacidada ugu waxtarka badan ee hawl kasta oo gaar ah.
Excel COUNTIFS function - syntax and usage
The Excel Shaqada COUNTIFS waxay tirisaa unugyo kala duwan oo kala duwan iyadoo lagu saleynayo hal ama dhowr xaaladood. Shaqada waxaa laga heli karaa Excel 365, 2021, 2019, 2016, 2013, Excel 2010, iyo Excel 2007, marka waxaad isticmaali kartaa tusaalahan hoose nooc kasta oo Excel ah.
> COUNTIFS syntax> syntax ee shaqada COUNTIFS waa sida soo socota:COUNTIFS shuruuda ( Shuruudaha1)) waa inay ahaataalagu dabaqay.>Runtii, maaha inaad xasuusato hab-raacyada shaqada COUNTIF ee wadnaha. Microsoft Excel waxay soo bandhigi doontaa dooda shaqada isla marka aad bilowdo qorista; Doodda aad galayso wakhtigan waxa lagu iftiimiyay si geesinimo leh
>Excel COUNTIFS - waxyaabaha la xasuusto!
- > Waxaad isticmaali kartaa shaqada COUNTIFS gudaha Excel Tiri unugyo isku jira oo kala duwan oo leh xaalad keliya iyo sidoo kale tiro badan oo leh xaalado badan. Haddii tan dambe, kaliya unugyada buuxiya dhammaan shuruudaha la cayimay ayaa la tiriyaa.
- Qoraal kasta oo dheeraad ah waa inuu lahaadaa tiro isku mid ah safafka iyo tiirarka sida ugu horreeya. kala duwan ( criteria_range1 dood). >
- Labada ku-socota iyo labadaba waa la ogolyahay
- Haddii shuruudaha tixraac unug madhan , shaqada COUNTIFS waxay ula dhaqantaa qiimo eber ah (0)
- Waxaad isticmaali kartaa kaarka duurjoogtajilayaasha marka loo eego shuruudaha - xiddigga (*) iyo calaamadda su'aasha (?). Fiiri tusaalahan si aad faahfaahin buuxda u hesho.
Sida loo isticmaalo COUNTIFS iyo COUNTIF oo leh shuruudo badan oo Excel ah
COUNTIF waxay u shaqeysaa Excel si ay u qiimeyso shuruudo badan.Sida loo tiriyo unugyada leh shuruudo badan (Iyo macquul)
Muqaalkani waa kan ugu fudud, maadaama shaqada COUNTIFS ee Excel loogu talagalay in lagu tiriyo kaliya Unugyadaas kuwaas oo dhammaan shuruudaha la cayimay ay yihiin RUN. Waxaan ugu yeernaa iyo macquulka, sababtoo ah Excel's AND function sidan ayuu u shaqeeyaa.
Formula 1. COUNTIFS formula oo leh shuruudo badan
Ka soo qaad inaad haysato liis alaab ah sida ka muuqata sawirka hoose. Waxaad doonaysaa in aad hesho tiro alaabta kaydka ah (qiimaha tiirka B waxa uu ka weyn yahay 0) laakiin aan wali la iibin (qiimaha tiirka C waxa uu la mid yahay 0) adiga oo isticmaalaya qaacidadan:
> =COUNTIFS(B2:B7,">0", C2:C7,"=0")
>Tiraduna waa 2 (" Cherry " iyo " Limemons "):
<0Formula 2. Qaaciddada COUNTIFS oo leh laba shuruudood
>Marka aad rabto inaad tiriso shay leh shuruudo isku mid ah, waxaad weli u baahan tahay inaad keento Shuruudaha_kala duwanaanshaha / shuruudahasi gaar ah.Tusaale ahaan, halkan waa qaacidada saxda ah ee lagu tirin karo shayada leh 0 labadaba tiirka B iyo tiirka C:
=COUNTIFS($B$2:$B$7,"=0", $C$2:$C$7,"=0")
kaliya " Canabka" ayaa ku leh "0" labada tiir.
Isticmaalka qaacido ka fudud oo leh hal criteria_range sida COUNTIFS(B2: C7"=0") waxay dhalinaysaa natiijo ka duwan - wadarta tirada unugyada inta u dhaxaysa B2:C7 ka kooban eber (taas oo ah 4 tusaalahan)
Sida loo tiriyo unugyada leh shuruudo badan ( AMA macquul)
Sida aad ku aragteen tusaalooyinka sare, tirinta unugyada buuxiya dhammaan shuruudaha la cayimay waa sahlan tahay sababtoo ah shaqada COUNTIFS waxaa loogu talagalay inay sidan u shaqeyso.
>Laakin ka waran haddii aad waxaad rabtaa inaad tiriso unugyada ugu yaraan > mid kamid ah shuruudaha la cayimay waa RUN , ie. ku salaysan AMA macquulka? Guud ahaan, waxaa jira laba siyaabood oo tan loo sameeyo - iyadoo la isku daro qaabab badan oo COUNTIF ah ama la isticmaalo qaabka SUM COUNTIFS oo leh nidaam joogto ah.Formula 1. Isku-dar laba ama ka badan COUNTIF ama COUNITFS formulas
Jadwalka hoose, adigoo u malaynaya inaad rabto inaad tiriso amarrada leh " la joojiyay " iyo " sugaya " heerka. Si taas loo sameeyo, waxaad si fudud u qori kartaa 2 qaacido Countif oo caadi ah oo waxaad ku dari kartaa natiijooyinka:
> =COUNTIF($C$2:$C$11,"Cancelled") + COUNTIF($C$2:$C$11,"Pending")
> Hal shuruud, isticmaal COUNTIFS halkii aad ka isticmaali lahayd COUNTIF. Tusaale ahaan, si aad u hesho tirinta " la joojiyay "iyo" lagu hagayo " dalabaadka " Tufaax " isticmaal qaacidadan:
=COUNTIFS($A$2:$A$11, "Apples", $C$2:$C$11,"Cancelled") + COUNTIFS($A$2:$A$11, "Apples", $C$2:$C$11,"Pending")
>
Formula 2. SUM COUNTIFS oo leh hannaan joogto ah
>Xaaladaha markawaa inaad qiimeysaa shuruudo badan, habka kor ku xusan maaha habka ugu fiican ee loo maro sababtoo ah caanahaaga ayaa kori doona cabbir aad u weyn. Si aad u samayso xisaabin isku mid ah oo ku jira qaacido is haysta, ku tax dhammaan shuruudahaaga qaab habaysan oo joogto ah, oo ku soo bixi shaxdaas Shuruudaha doodda shaqada COUNTIFS. Si aad u hesho wadarta tirinta, ku dheji COUNTIFS gudaha shaqada SUM, sida tan:SUM "," Shuruudaha3",...})))Shaxda muunada, si loo tiriyo dalabaadka leh heerka " la joojiyay " ama " la sugayo " ama " In transit ", qaacidadu waxay u dhacaysaa sidan soo socota:
=SUM(COUNTIFS($C$2:$C$11, {"cancelled", "pending", "in transit"}))
Si la mid ah, waxaad tirin kartaa unugyo ku salaysan laba ama dheeraad ah Shuruudaha_kala duwanaanshaha / Shuruudaha lammaane. Tusaale ahaan, si aad u hesho lambarka dalabaadka " Apple " kuwaas oo ah " la joojiyay "ama" lasugayo "ama" Transit " , isticmaal qaacidadan:
=SUM(COUNTIFS($A$2:$A$11,"apples",$C$2:$C$11,{"cancelled","pending","in transit"}))
Waxaad ka heli kartaa dhawr siyaabood oo kale oo aad u tirin karto unugyo leh AMA macquul casharkan: Excel COUNTIF iyo COUNTIFS oo leh AMA shuruudo.
Sida loo tiriyo tirooyinka u dhexeeya 2 tiro cayiman
Guud iyo weyn, COUNTIFS qaacidooyinka nambaradu waxay u kala baxaan 2 qaybood - iyadoo lagu saleynayo shuruudo dhowr ah (oo lagu sharaxay tusaalooyinka sare) iyo inta u dhaxaysa labada qiime ee aad sheegtay . Midda dambe waxa lagu dhamayn karaa laba siyaabood - iyadoo la isticmaalayo shaqada COUNTIFS ama in hal COUNTIF laga gooyomid kale.
Formula 1. COUNTIFS si loo tiriyo unugyada u dhexeeya laba tiro
Si aad u ogaato inta lambar ee u dhaxaysa 5 iyo 10 (oo aan ku jirin 5 iyo 10) ee ku jira unugyada C2 ilaa C10, isticmaal formula this:
=COUNTIFS(C2:C10,>5, C2:C10,<10) Si loogu daro 5 iyo 10 tirinta, isticmaal "ka weyn ama la siman" iyo "wax ka yar ama la mid ah" hawl wadeenada:
=COUNTIFS(B2:B10,">=5" , B2:B10,"<=10")
Formula 2. COUNTIF qaaciidooyinka lagu tiriyo tirooyinka u dhexeeya X iyo Y
Natiijo isku mid ah ayaa lagu gaadhi karaa marka la gooyo hal qaacido Countif mid kale ka yimid. Midka kowaad wuxuu tiriyaa inta tiro ee ka weyn qiimaha xadka hoose (5 ee tusaalahan). Qaabka labaad wuxuu soo celinayaa tirooyinka ka weyn qiimaha xadka sare (10 kiis). Farqiga u dhexeeya lambarka koowaad iyo kan labaad waa natiijada aad raadinayso.
- =COUNTIF(C2:C10,">5")-COUNTIF(C2:C10,">. ;=10") - ayaa tirinaya inta tiro ee ka weyn 5 kana yar 10 ayaa ku jira inta u dhexeysa C2:C10. Habkani waxa uu soo celin doonaa isla tirinta ka muuqata sawirka sare.
- =COUNTIF(C2:C10, ">=5") -COUNTIF(C2:C10, ">10") - qaacidadu waxay tirisaa inta lambar ee u dhaxaysa 5 iyo 10 ee ku jira kala duwanaanta C2:C10, oo ay ku jiraan 5 iyo 10. 5>
Sida loo isticmaalo tixraacyada unugga ee qaaciidooyinka COUNTIFS
Marka la isticmaalayo hawlwadeenada macquulka ah sida ">","<", "=" oo ay la socdaan tixraacyada unugga ee qaaciidooyinka COUNTIFS kaaga, xasuusnoow inaad ku darto hawlwadeenka "double quotes" iyo
ku dar ampersand (&) ka hor tixraac unug si aad u dhisto qoraal string.
>Muunada xogta hoose, aynu tirinno " Apples " dalabaadka ka badan $200. Iyadoo criteria_range1 ee unugyada A2:A11 iyo criteria_range2 gudaha B2:B11, waxaad isticmaali kartaa qaacidadan:
> =COUNTIFS($A$2:$A$11, "Apples", $B$2:$B$11, ">200")
=COUNTIFS($A$2:$A$11, $F$1, $B$2:$B$11, ">"&$F$2)
Wixii macluumaad dheeraad ah oo ku saabsan isticmaalka ampersand ee qaacidooyinka COUNTIF iyo COUNTIFS , fadlan eeg Excel COUNTIF - su'aalaha inta badan la isweydiiyo.
Sida loo isticmaalo COUNTIFS oo leh xarfo calaamadeysan
Habka COUNTIFS ee Excel, waxaad isticmaali kartaa xarfaha soo socda:
>- > <10 Calaamad su'aal (?) - waa mid u dhiganta hal xaraf, isticmaal si aad u tiriso unugyada bilaabaya iyo/ama ku dhamaanaya jilayaasha qaarkood taxane kasta oo jilayaal ah, waxaad u isticmaashaa si aad u tiriso unugyo ka kooban kelmad gaar ah ama xarfo oo qayb ka ah waxa unuga ku jira.
Talo. Haddii aad rabto inaad ku tiriso unugyo leh su'aal dhab ahcalaamadi ama calaamad, ku qor tilde (~) ka hor calaamad ama calaamad su'aal.
Hadda aan aragno sida aad u isticmaali karto khariidadaha COUNTIFS ee nolosha dhabta ah ee Excel. Ka soo qaad, inaad haysatid liis mashruucyo ku jira tiirka A. Waxaad jeceshahay inaad ogaato inta mashruuc ee horeba qof loo qoondeeyay, tusaale ahaan magac ku hay tiirka B xaalad labaad - Dhammaadka Taariikhda ee tiirka D waa in sidoo kale la dejiyaa.
Waa kan qaacidada ka shaqeysa daawaynta:
>>=COUNTIFS(B2: B10,"*",D2:D10,""&""))
Fadlan ogow,ma isticmaali kartid xarfaha calaamadaynta sharuudaha 2aad sababtoo ah waxaad haysataa taariikho halkii aad ka heli lahayd qiimaha qoraalka ee tiirka D. Taasi waa sababta, aad isticmaasho shuruudaha helay aan banaanayn unugyo: ""&""
COUNTIFS iyo COUNTIF oo leh shuruudo badan oo taariikho ah
Qaciidooyinka COUNTIFS iyo COUNTIF ee aad timirta u isticmaashid waxa ay aad ugu shabahaan qaacidooyinka sare ee nambarada
>Tusaale 1. Tiri taariikhaha wakhti cayimanSi loo tiriyo taariikhaha ku dhaca taariikh cayiman, waxa kale oo aad isticmaali kartaa mid ka mid ah caanaha COUNTIFS oo leh laba shuruudood ama isku dhafan oo ah laba hawlood oo COUNTIF ah.
Tusaale ahaan, qaacidooyinka soo socdaa waxay tiriyaan tirada taariikhaha unugyada C2 illaa C10 ee dhacaya inta u dhaxaysa 1-Jun-2014 iyo 7-Jun-2014, oo ay ku jiraan:
> =COUNTIFS(C2:C9, ">=6/1/2014", C2:C9, "<=6/7/2014")
=COUNTIF(C2:C9, ">=6/1/2014") - COUNTIF(C2:C9, ">6/7/2014")
Tusaale 2. Tiri taariikhaha lehxaalado badan
Si la mid ah, waxaad isticmaali kartaa qaacidada COUNTIFS si aad u tiriso tirada taariikhaha ee tiirar kala duwan oo buuxiya 2 ama shuruudo ka badan. Tusaale ahaan, qaacidada hoose waxay ogaan doontaa inta alaab ee la iibsaday 20-kii Maajo ka dib oo la keenay Juun 1deeda ka dib:
=COUNTIFS(C2:C9, ">5/1/2014", D2:D9, ">6/7/2014")
> 29> 17>Tusaale 3. Tiri taariikho leh shuruudo badan oo ku salaysan taariikhda hadda
Waxaad isticmaali kartaa shaqada Excel MAANTA() oo ay weheliso COUNTIF si aad u tiriso taariikhaha ku salaysan taariikhda hadda.
Tusaale ahaan, qaacidada COUNTIF ee soo socota laba nooc iyo laba shuruudood ayaa kuu sheegi doona inta alaab ee hore loo soo iibsaday laakiin aan weli la keenin
=COUNTIFS(C2:C9, ""&TODAY())
Qaabkani wuxuu u oggolaanayaa noocyo badan oo suurtagal ah. Tusaale ahaan, waxaad dib u habeyn kartaa si aad u tiriso inta alaab ee la iibsaday in ka badan toddobaad ka hor oo aan weli la keenin:
=COUNTIFS(C2:C9, ""&TODAY())