Shaxda tusmada
Tababarku wuxuu muujinayaa sida la isugu daro V > LOOKUP iyo HADDII si wada jir ah loogu wada shaqeeyo si loo ogaado haddii xaaladdu ku jirto Excel. Waxaad sidoo kale baran doontaa sida loo isticmaalo IF ISNA VLOOKUP qaacidooyinka si aad ugu beddelato khaladaadka #N/A qoraalkaaga, eber ama unugga maran.
waxay soo bandhigaan khibrado ka sii qiimo badan. Casharradani waxa ay tusinaysaa in aad si fiican u xasuusato hab-raacyada labada hawlood, haddii kale waxa laga yaabaa in aad rabto in aad aqoontaada ku caddayso adiga oo raacaya xidhiidhada sare.Vlookup with If statement: return True/ Been, Haa/Maya, iwm.
Mid ka mid ah xaaladaha ugu caansan marka la isku daro If iyo Vlookup wadajir waa inaad is barbardhigto qiimaha ay soo celisay Vlookup oo leh qiime muunad ah oo soo celi Haa / Maya ama Run/Been sida natiijada.
>Inta badan, qaacidada guud ee soo socota ayaa si fiican u shaqayn doonta:HADDII (VLOOKUP(...) = qiimaha, RUN, BEEN)oo lagu turjumay Ingiriis cad, qaacidadu waxay faraysaa Excel inuu soo celiyo Run haddii Vlookup run yahay (yacni la mid ah qiimaha la cayimay). Haddii Vlookup been yahay (oo aan la mid ahayn qiimaha la cayimay), qaacidadu waxay soo celinaysaa Been .
Tusaale 1. Raadi qiimo gaar ah
Aynu nidhaahno, waxa aad haysaa liis shay ah oo ku jira tiirka A iyo tirada tiirka B. Waxaad isticmaaleyaashaada u samaynaysaa dashboard-ka waxaadna u baahan tahay qaacidotaas oo hubin doonta tirada shay ku jira E1 oo ogaysii isticmaalaha in shaygu kayd yahay ama la iibiyay.
Waxaad tirada ku soo jiidaysaa Vlookup caadi ah oo leh qaacido u dhigma oo sax ah sida tan:
0> =VLOOKUP(E1,$A$2:$B$10,2,FALSE)
Kadib, qor HADDII bayaan isbarbar dhigaya natiijada Vlookup iyo eber, oo soo celi "Maya" haddii ay la mid tahay 0, "Haa" haddii kale:
> =IF(VLOOKUP(E1,$A$2:$B$10,2,FALSE)=0,"No","Yes")
=IF(VLOOKUP(E1,$A$2:$B$10,2)=0,"Sold out","In stock")
=IF(VLOOKUP(E1,$A$2:$B$10,2)="sample text",TRUE,FALSE)
Tusaale 2. Is barbar dhig natiijada Vlookup unug kale
Tusaale kale oo caadi ah Vlookup leh Haddii xaalada Excel ay isbarbar dhigayso wax soo saarka Vlookup iyo qiimaha unug kale. Tusaale ahaan, waxaan hubin karnaa inay ka weyn tahay ama la mid tahay tirada ku jirta unugga G2:
=IF(VLOOKUP(E1,$A$2:$B$10,2)>=G2,"Yes!","No")
Oo halkan waa If formula oo leh Vlookup ficil ahaan:
13>
Si la mid ah, waxaad isticmaali kartaa hawl wadeen kasta oo macquul ah oo ay la socdaan tixraac unug gudaha Excel kaaga Haddii Vlookup formula
Tusaale 3. Vlookup wuxuu ku qiimeeyaa liis gaaban
Si aad u barbar dhigto unug kasta oo ku jira tiirka bartilmaameedka iyo liis kale oo soo celi Run ama Haa haddii u dhigma la helo, Been ama Maya. 2> haddii kale, isticmaal kan guud HADDII ISNA VLOOKUP qaacidada:
HADDII (ISNA)VLOOKUP(…)),"Maya""Haa")Hadii Vlookup ay keento qaladka #N/A, qaacidada ayaa soo celinaysa "Maya", taasoo la micno ah in qiimaha raadinta aan laga helin liiska raadinta. Haddii ciyaarta la helo, "Haa" waa la soo celinayaa. Tusaale ahaan:
=IF(ISNA(VLOOKUP(A2,$D$2:$D$4,1,FALSE)),"No","Yes")
>
Haddii macquulka ganacsigaagu u baahan yahay natiijooyin ka soo horjeeda, si fudud u beddel "Haa" iyo "Maya" si aad u beddesho caqliga qaacidada:
=IF(ISNA(VLOOKUP(A2,$D$2:$D$4,1,FALSE)),"Yes","No")
Excel Haddii qaacidada Vlookup ay sameyso xisaabaadyo kala duwan
Marka laga reebo muujinta fariimahaaga qoraalka ah, Haddii shaqada Vlookup ay samayn karto xisaabo kala duwan anagoo ka duulayna shuruudaha aad sheegtay.
Aniga oo tusaale inoogu sii dheeraanaya, aynu xisaabino komishanka iibiye gaar ah (F1) iyada oo ku xidhan waxtarkooda: 20% komishanka kuwa sameeyay $200 iyo in ka badan, 10% qof kasta oo kale. .
Taas, waxaad hubisaa in qiimaha ay soo celisay Vlookup uu ka weyn yahay ama la mid yahay 200, haddii ay tahayna, ku dhufo 20%, haddii kale 10%:
> =IF(VLOOKUP(F1,$A$2:$C$10,3,FALSE )>=200, VLOOKUP(F1,$A$2:$C$10,3,FALSE)*20%, VLOOKUP(F1,$A$2:$C$10,3,FALSE)*10%)
Halka A2:A10 ay ku jiraan magacyada iibiyaha iyo C2:C10 waa iib.
Hadii ISNA VLOOKUP ay qariso khaladaadka #N/A
> Haddii shaqada VLOOKUP aysan heli karin qiime cayiman, waxay tuuraysaa qalad #N/A ah. Si aad u qabsato khaladkaas oo aad ugu beddelato qoraalkaaga, ku dheji qaacidada Vlookup ee imtixaanka macquulka ah ee shaqada IF, sida tan:HADDII (ISNA(VLOOKUP(...))), "Lama helin", VLOOKUP(...) )Dabiici ahaan, waxaad ku qori kartaa qoraal kasta oo aad rabto halkii aad ka qori lahayd "Lama helin"
Magacyada hal tiir iyo qaddarka iibka ee tiir kale. Hawshaadu waa inaad jiiddo lambar u dhiganta magaca isticmaalaha uu galo F1. Haddii magaca aan la helin, soo bandhig fariin tilmaamaysa.Iyadoo magacyada ku jira A2: A10 iyo qaddarka C2: C10, hawsha waxaa lagu fulin karaa kuwan soo socda If Vlookup formula:
> =IF(ISNA(VLOOKUP(F1,$A$2:$C$10,3,FALSE)), "Not found", VLOOKUP(F1,$A$2:$C$10,3,FALSE))
Haddii magaca la helo, qaddar iib ah oo u dhigma ayaa la soo celinayaa:
Haddii aan la helin qiimihii raadinta, Lama helin. 2> fariintu waxay u muuqataa halkii qaladka #N/A:
>>>Sidee u shaqayso qaaciddada si aad u hubiso Vlookup khaladaadka #N/A Haddii khalad dhaco, ISNA waxay soo celinaysaa RUN, haddii kale BEEN. Qiimayaasha kor ku xusan waxay tagayaan imtixaanka macquulka ah ee shaqada IF, kaas oo sameeya mid ka mid ah kuwan soo socda:- >
- Haddii tijaabada macquulka ah ay tahay RUN (#N/A qalad), fariintaadu waa la soo bandhigayaa.<20
- Haddii imtixaanka macquulka ah uu yahay BEEN (qiimaha raadinta waa la helay), Vlookup wuxuu soo celiyaa ciyaarta si caadi ah.
IFNA VLOOKUP ee noocyada cusub ee Excel
Laga bilaabo Excel 2013, adiga waxay isticmaali kartaa shaqada IFNA halkii ay ka isticmaali lahayd IF ISNA si ay u qabato oo ay u xaliso khaladaadka #N/A:
IFNA(VLOOKUP(...), " Lama helin")Tusaale ahaan, qaacidada qaado qaabkan soo socda:
=IFNA(VLOOKUP(F1,$A$2:$C$10,3, FALSE), "Not found")
Miiska muunada, qaacidadu waxay u dhacaysaa sidan soo socota:
> =IF(ISNA(VLOOKUP(F2,$A$2:$C$10,3,FALSE)), 0, VLOOKUP(F2,$A$2:$C$10,3,FALSE))
>>> Noocyadii ugu dambeeyay ee Excel 2016 iyo 2013, waxaad isticmaali kartaa isku darka IFNA Vlookup mar kale: =IFNA(VLOOKUP(I2,$A$2:$C$10,3, FALSE), 0)
Excel Vlookup: haddii aan la helin soo celi unug banaan
>Tani waa kala duwanaansho kale ee "Vlookup if then" weedha: waxba ha soo celin marka qiimaha la raadinayo aan la helin. Si tan loo sameeyo, far qaacidadaada inay soo celiso xadhig madhan ("") halkii aad ka isticmaali lahayd #N/A qaladka:IF(ISNA(VLOOKUP(...)), "", VLOOKUP(...))Hoos waa dhowr tusaale oo qaacido ah oo dhamaystiran:
>Dhammaan noocyada Excel:> =IF(ISNA(VLOOKUP(F2,$A$2:$C$10,3,FALSE)), "", VLOOKUP(F2,$A$2:$C$10,3,FALSE))
> ee Excel 2016 iyo Excel 2013:> =IFNA(VLOOKUP(F2,$A$2:$C$10,3, FALSE), "")
0>>> Haddii ay la socoto Index Match - vlookup bidix oo leh Haddii xaalad>Khibrad u leh isticmaaleyaasha Excel waxay og yihiin in shaqada VLOOKUP aysan ahayn habka kaliya ee lagu sameeyo raadinta toosan ee Excel. Isku darka INDEX MATCH waxa kale oo loo isticmaali karaa ujeedadan oo waa ka sii xoog badan tahay oo la taaban karo. Akhbaarta wanaagsan ayaa ah in Index Match ay si wada jir ah ula shaqeyn karto IF si la mid ahVlookup.Tusaale ahaan, waxaad haysataa lambarro dalbo tiirka A iyo magacyada iibiyaha ee tiirka B. Waxaad raadinaysaa qaacido aad ku jiidato lambarka dalbashada iibiye gaar ah.
>Vlookup ma noqon karo loo isticmaalo kiiskan sababtoo ah kama baari karo midig ilaa bidix. Index Match waxa ay shaqayn doontaa dhib la'aan ilaa inta qiimaha raadinta laga helayo tiirka raadinta. Haddii kale, waxaa soo bixi doona cilad #N/A Si aad u bedesho qoraalka qaladka caadiga ah qoraalkaaga, Buulka Tusmada Isku dheelitirka gudaha HADDII ISNA: =IF(ISNA(INDEX(A2:A10, MATCH(F1, $B$2:$B$10, 0))), "Not found", INDEX(A2:A10, MATCH(F1, $B$2:$B$10, 0)))
In Excel 2016 iyo 2016, waxaad isticmaali kartaa IFNA halkii aad ka isticmaali lahayd IF ISNA si aad uga dhigto caanaha Compact:
=IFNA(INDEX(A2:A10, MATCH(F1, $B$2:$B$10, 0)), "Not found")
Tani waa sida aad u isticmaasho Vlookup iyo IF bayaan wadajir ah oo Excel ah. Si aad si dhow ugu fiirsato qaacidooyinka looga hadlay casharkan, waxaa lagugu soo dhawaynayaa inaad soo dejiso buuga shaqada ee tusaalaha ah ee hoose. Waxaan kaaga mahadcelinayaa inaad akhriday waxaana rajeynayaa inaan kugu arko blogkeena toddobaadka soo socda!
Ku celceli buugga shaqada ee soo dejinta
Excel IF Vlookup - tusaalooyin qaacido ah (.xlsx file)