Shaxda tusmada
Tababarku wuxuu muujinayaa sida loo qoro IF AMA bayaan gudaha Excel si loo hubiyo xaalado kala duwan "kan AMA in"
> HADDII waa mid ka mid ah shaqooyinka Excel ugu caansan oo faa'iido badan leh kaligiis. Marka lagu daro hawlaha macquulka ah sida IYO, AMA, iyo MAYA, HADDII shaqadu waxay leedahay qiimo badan sababtoo ah waxay u ogolaataa tijaabinta xaalado badan oo isku dhafan oo la rabo. Casharradan, waxaan diiradda saari doonaa isticmaalka IF-iyo-AMA qaacidada ee Excel.IF AMA statement in Excel
Si loo qiimeeyo laba ama in ka badan shuruudood oo soo celi mid. Natiijadu haddii shuruudaha mid ka mid ah uu yahay RUN, iyo natiijo kale haddii dhammaan shuruudaha ay yihiin BEEN, ku dheji AMA shaqeynta imtixaanka macquulka ah ee HADDII:
HADDII (AMA ( shardi1, shardi2<) 2>,...), value_if_true, value_if_false)Af-Ingiriisi cad, caqliga qaacidadu waxa loo samayn karaa sidan soo socota: Haddii unuggu yahay "kan" AMA "taas", qaado hal tallaabo, haddii kale, samee wax kale. .
Halkan waa tusaale ka mid ah HADDII AMA caanaha qaabka ugu fudud:
=IF(OR(B2="delivered", B2="paid"), "Closed", "Open")
Haddii aad rabto waxba soo celin haddii macquul ah Tijaabadu waxay qiimaysaa BEEN , ku dar xadhig madhan ("") doodda u dambaysa:
=IF(OR(B2="delivered", B2="paid"), "Closed", "")
Isla qaacido isku mid ah ayaa sidoo kale lagu qori karaa qaab cufan iyadoo la isticmaalayo habayn joogto ah. :
=IF(OR(B2={"delivered","paid"}), "Closed", "")
Haddii ay dhacdo tan ugu dambeysadoodda waa laga saaray, qaacidadu waxay soo bandhigaysaa BEEN ABUUR markii shuruudaha midkoodna la buuxin.
> Ogow. Fadlan fiiro gaar ah u yeelo in IF AMA qaacidada ku jirta Excel aysan u kala sooceynin xarfaha yar yar iyo kuwa waaweyn sababtoo ah shaqada OR waa xaalad-aan-jirin . Xaaladeena, "lagu dhiibay", "Lagu dhiibay", iyo "lagu dhiibay", dhamaantood waxa loo arkaa isku eray. Haddii aad jeclaan lahayd inaad kala saartid keeska qoraalka, ku duub dood kasta oo AMA ka mid ah shaqada EXACT sida ku cad tusaalahan.Excel HADDII AMA tusaalayaal qaacido
Hoos waxaad ka heli doontaa dhowr tusaale oo kale Isticmaalka Excel IF iyo AMA si wadajir ah ayaa ku siin doona fikrado badan oo ku saabsan nooca imtixaannada macquulka ah ee aad samayn karto. tirada AMA shuruudaha ku duugan qaacidada IF ilaa iyo inta ay waafaqsan tahay xaddidaadda guud ee Excel:- In Excel 2007 iyo wixii ka sareeya, ilaa 255 dood ayaa la oggol yahay, oo leh wadarta guud aan ka badnayn 8,192 xaraf.
- Excel 2003 iyo wixii ka hooseeya, waxaad isticmaali kartaa ilaa 30 doodood, dhererka guudna waa inuusan dhaafin 1,024 xaraf.
Tusaale ahaan, aan iska hubino tiirarka A, B iyo C ee unugyada bannaan, oo soo celi "aan dhammaystirnayn" haddii ugu yaraan mid ka mid ah 3 unuggu bannaan yahay. Hawsha waxaa lagu fulin karaa kuwan soo socda HADDII AMA shaqaynayso:
=IF(OR(A2="",B2="",),"Incomplete","")
Natiijaduna waxay u ekaan doontaa mid la mid ahtan:
> >Formula 2. Haddii unuggu yahay kan AMA kaas, markaas xisaabi
Raadinta qaacido samayn kara shay ka adag sidii loo soo celin lahaa horu-defined qoraal? Kaliya buul hawl kale ama isla'egta xisaabeed ee qiimaha_if_true iyo/ama qiimaha_if_false doodaha HADDII Qty.
waxaa lagu dhuftey Qiimaha Cutubka) oo aad rabto inaad dalbato qiimo dhimista 10% haddii shuruudahan midkood la buuxiyo:- >> gudaha B2 uu ka weyn yahay ama la mid yahay 10, ama
- Qiimaha Cutubka ee C2 wuu ka weyn yahay ama la mid yahay $5. >
=IF(OR(B2>=10, C2>=5), B2*C2*0.9, B2*C2)
Marka lagu daro, waxaad isticmaali kartaa Qaabka hoose si aad si cad ugu muujiso dalabaadka la dhimay:
=IF(OR(B2>=10, C2>=5),"Yes", "No")
Shaashada hoose waxay muujinaysaa labada qaacido ee ficilka ah:
>>>>Formula 3. Case -sensitive HADDII AMA formulaSida horeba loo sheegay, Excel OR function waa kiis-aan dareen lahayn dabeecad ahaan. Si kastaba ha ahaatee, xogtaadu waxay noqon kartaa kiis xasaasi ah oo markaa waxaad rabi lahayd inaad socodsiiso kiis xasaasi ah AMA imtixaanada . Xaaladdan oo kale, samee imtixaan kasta oo macquul ah gudaha shaqada EXACT oo buul hawlahaas geli AMA bayaan.
HADDII EXACT( unug," shuruud2")), value_if_true,value_if_false)Tusaalahan, aynu helno oo calaamadeyno aqoonsiga dalbashada "AA-1" iyo "BB-1":
=IF(OR(EXACT(A2, "AA-1"), EXACT(A2, "BB-1")), "x", "")
Natiijadu waxay tahay, laba dalbo oo keliya aqoonsiga halka xarfaha oo dhami waa caasimad waxaa lagu calaamadeeyay "x"; Aqoonsi la mid ah sida "aa-1" ama "Bb-1" lama calaamadin:
Formula 4. Nated HADDAY AMA statements in Excel
In xaaladaha marka aad rabto in aad tijaabiso dhawr qaybood oo AMA shuruudaha ah oo aad soo celiso qiyam kala duwan taas oo ku xidhan natiijooyinka imtixaanadaas, qor shakhsi HADDII qaacidada mid kasta oo ka mid ah shuruudaha "kan AMA in", oo buul kuwan haddi midba midka kale galo.
Si loo muujiyo fikradda, aynu eegno magacyada shayga tiirka A oo ku soo celi "Fruit" ee Apple ama Orange iyo "Khudaarta" ee Tamaandhada ama Qajaar :
> =IF(OR(A2="apple", A2="orange"), "Fruit", IF(OR(A2="tomato", A2="cucumber"), "Vegetable", ""))
>>> =IF(OR(A2="apple", A2="orange"), "Fruit", IF(OR(A2="tomato", A2="cucumber"), "Vegetable", ""))
>Wixii macluumaad dheeraad ah, fadlan eeg Nsted HADDII AMA/iyo shuruudo.Formula 5. HADDII IYO AMA bayaan
Si loo qiimeeyo isku-darka kala duwan ee xaaladaha kala duwan, waxaad samayn kartaa IYO sidoo kale AMA imtixaanno macquul ah oo ku jira hal qaacido.
>Tusaale ahaan, waxaanu soconaa si loo calaamadiyo safafka halka shayga ku jira tiirka A uu yahay Appleama Orangeiyo tirada tiirka B uu ka weyn yahay 10:> =IF(AND(OR(A2="apple",A2="orange"), B2>10), "x", "")
>> Wixii macluumaad dheeraad ah n, fadlan eeg Excel HADDII leh xaalado badan IYO/AMA Si aad si dhow ugu fiirsato qaacidooyinka looga hadlay casharkan gaaban, waa lagugu soo dhawaynayaasoo deji muunadayada Excel HADDII AMA Buuga shaqada. Waxaan kaaga mahadcelinayaa inaad akhriday waxaana rajeynayaa inaan kugu arko blog-keena toddobaadka soo socda!