Skip i'r prif gynnwys

Sut i wylio i ddychwelyd gwerth gwag neu benodol yn lle 0 neu Amherthnasol yn Excel?

Fel rheol, pan ddefnyddiwch y swyddogaeth vlookup i ddychwelyd y gwerth cyfatebol, os yw'ch cell sy'n cyfateb yn wag, bydd yn dychwelyd 0, ac os na cheir hyd i'ch gwerth paru, fe gewch wall gwall # Amherthnasol fel y dangosir isod y llun. Yn lle arddangos y gwerth 0 neu # Amherthnasol, sut allwch chi wneud iddo ddangos gwerth cell wag neu destun penodol arall?

Mae'r gell sy'n cyfateb yn wag: arddangosir 0 Ni cheir y gwerth paru: Arddangosir gwerth Amherthnasol

Vlookup i ddychwelyd gwerth gwag neu benodol yn lle 0 gyda fformwlâu

Vlookup i ddychwelyd gwerth gwag neu benodol yn lle Amherthnasol gyda fformwlâu

Vlookup i ddychwelyd gwerth gwag neu benodol yn lle 0 neu Amherthnasol gyda nodwedd bwerus


Vlookup i ddychwelyd gwerth gwag neu benodol yn lle 0 gyda fformwlâu

Rhowch y fformiwla hon mewn cell wag sydd ei hangen arnoch:

=IF(LEN(VLOOKUP(D2,A2:B10,2,0))=0,"",VLOOKUP(D2,A2:B10,2,0))

Ac yna pwyswch Rhowch allwedd, fe gewch gell wag yn lle'r 0, gweler y screenshot:

Nodiadau:

1. Yn y fformiwla uchod, D2 yw'r maen prawf rydych chi am ddychwelyd ei werth cymharol, A2: B10 yw'r ystod ddata rydych chi'n ei defnyddio, y rhif 2 yn nodi pa golofn y dychwelir y gwerth cyfatebol.

2. Os ydych chi am ddychwelyd testun penodol yn lle'r gwerth 0, gallwch gymhwyso'r fformiwla hon: = OS (LEN (VLOOKUP (D2, A2: B10,2,0)) = 0, "Testun penodol", VLOOKUP (D2, A2: B10,2,0)).


Vlookup i ddychwelyd gwerth gwag neu benodol yn lle gwerth gwall 0 neu Amherthnasol yn Excel

Kutools ar gyfer Excel's Amnewid 0 neu # Amherthnasol â Blank neu Werth Penodol mae cyfleustodau yn eich helpu i ddychwelyd ac arddangos y gell wag neu werth penodol os yw'r canlyniad vlookup yn werth 0 neu # Amherthnasol. Cliciwch i lawrlwytho Kutools ar gyfer Excel!

Kutools ar gyfer Excel: gyda mwy na 300 o ychwanegion Excel defnyddiol, am ddim i roi cynnig arnynt heb unrhyw gyfyngiad mewn 30 diwrnod. Dadlwythwch a threial am ddim Nawr!


Vlookup i ddychwelyd gwerth gwag neu benodol yn lle Amherthnasol gyda fformwlâu

I ddisodli'r gwall # Amherthnasol â chell wag neu werth arfer arall os na cheir hyd i'ch gwerth wedi'i chwilio, gallwch ddefnyddio'r fformiwla isod:

=IFERROR(VLOOKUP(D2,A2:B10,2,FALSE),"")

Ac yna, pwyswch Rhowch allwedd i gael y canlyniad sydd ei angen arnoch, gweler y screenshot:

Nodiadau:

1. Yn y fformiwla hon, D2 yw'r maen prawf rydych chi am ddychwelyd ei werth cymharol, A2: B10 s yr ystod ddata rydych chi'n ei defnyddio, y rhif 2 yn nodi pa golofn y dychwelir y gwerth cyfatebol.

2. Os ydych chi am ddychwelyd testun penodol yn lle'r gwerth # Amherthnasol, gallwch gymhwyso'r fformiwla hon: = IFERROR (VLOOKUP (D2, A2: B10,2, ANWIR), "Testun penodol").


Vlookup i ddychwelyd gwerth gwag neu benodol yn lle 0 neu Amherthnasol gyda nodwedd bwerus

Os oes gennych Kutools ar gyfer Excel, Gyda'i Amnewid 0 neu # Amherthnasol â Blank neu Werth Penodol nodwedd, gallwch ddatrys y dasg hon yn gyflym ac yn hawdd.

Awgrym:I gymhwyso hyn Amnewid 0 neu # Amherthnasol â Blank neu Werth Penodol nodwedd, yn gyntaf, dylech lawrlwytho'r Kutools ar gyfer Excel, ac yna cymhwyswch y nodwedd yn gyflym ac yn hawdd.

Ar ôl gosod Kutools ar gyfer Excel, gwnewch fel hyn:

1. Cliciwch Kutools > Super-edrych > Amnewid 0 neu # Amherthnasol â Blank neu Werth Penodol, gweler y screenshot:

2. Yn y Amnewid 0 neu # Amherthnasol â Blank neu Werth Penodol blwch deialog:

  • (1.) Nodwch y gwerth edrych a'r ystod allbwn yn ôl yr angen;
  • (2.) Dewiswch y canlyniad a ddychwelwyd yn ôl yr angen, gallwch ddewis Amnewid gwerth 0 neu # Amherthnasol gyda gwag opsiwn neu Amnewid gwerth 0 neu # Amherthnasol gyda gwerth penodol opsiwn;
  • (3.) Dewiswch yr ystod ddata a'r allwedd gyfatebol a'r golofn wedi'i dychwelyd.

3. Yna, cliciwch OK botwm, mae'r gwerth penodol a nodwyd gennych yng ngham 2 wedi'i arddangos yn lle'r gwerth gwall 0 neu # Amherthnasol, gweler y screenshot:

Cliciwch i Lawrlwytho Kutools ar gyfer Excel a threial am ddim Nawr!


Erthyglau mwy cymharol:

  • Gwerthoedd Vlookup ar draws taflenni gwaith lluosog
  • Yn rhagori, gallwn gymhwyso'r swyddogaeth vlookup yn hawdd i ddychwelyd y gwerthoedd paru mewn un tabl o daflen waith. Ond, a ydych erioed wedi ystyried sut i edrych ar werth ar draws sawl taflen waith? Gan dybio bod gen i'r tair taflen waith ganlynol gydag ystod o ddata, a nawr, rydw i eisiau cael rhan o'r gwerthoedd cyfatebol yn seiliedig ar y meini prawf o'r tair taflen waith hyn.
  • Vlookup A Dychwelyd Data Paru Rhwng Dau Werth
  • Yn Excel, gallwn gymhwyso'r swyddogaeth Vlookup arferol i gael y gwerth cyfatebol yn seiliedig ar ddata penodol. Ond, weithiau, rydyn ni am wylio a dychwelyd y gwerth paru rhwng dau werth, sut allech chi ddelio â'r dasg hon yn Excel?
  • Vlookup A Dychwelyd Gwerthoedd Lluosog O'r Rhestr Gostwng
  • Yn Excel, sut allech chi wylio a dychwelyd sawl gwerth cyfatebol o gwymplen, sy'n golygu pan fyddwch chi'n dewis un eitem o'r gwymplen, mae ei holl werthoedd cymharol yn cael eu harddangos ar unwaith fel y dangosir y screenshot canlynol. Yr erthygl hon, byddaf yn cyflwyno'r datrysiad gam wrth gam.
  • Vlookup A Dychwelwch Werthoedd Lluosog Heb Dyblygiadau
  • Weithiau, efallai yr hoffech chi wylio a dychwelyd gwerthoedd cyfatebol lluosog i mewn i un gell ar unwaith. Ond, os oes rhai gwerthoedd ailadroddus wedi'u poblogi i'r celloedd a ddychwelwyd, sut allech chi anwybyddu'r dyblygu a chadw'r gwerthoedd unigryw yn unig wrth ddychwelyd yr holl werthoedd paru fel y llun a ddangosir yn Excel?

Offer Cynhyrchiant Swyddfa Gorau

🤖 Kutools AI Aide: Chwyldro dadansoddi data yn seiliedig ar: Cyflawniad Deallus   |  Cynhyrchu Cod  |  Creu Fformiwlâu Personol  |  Dadansoddi Data a Chynhyrchu Siartiau  |  Invoke Swyddogaethau Kutools...
Nodweddion Poblogaidd: Darganfod, Amlygu neu Adnabod Dyblygiadau   |  Dileu Rhesi Gwag   |  Cyfuno Colofnau neu Gelloedd heb Colli Data   |   Rownd heb Fformiwla ...
Super-edrych: VLookup Meini Prawf Lluosog    VLookup Gwerth Lluosog  |   VLookup Ar Draws Taflenni Lluosog   |   Edrych Niwlog ....
Rhestr gwympo Uwch: Creu Rhestr Gollwng yn Gyflym   |  Rhestr Gollwng Dibynnol   |  Rhestr Gollwng Aml-ddewis ....
Rheolwr Colofn: Ychwanegu Nifer Penodol o Golofnau  |  Symud Colofnau  |  Toglo Statws Gwelededd Colofnau Cudd  |  Cymharwch Ystodau a Cholofnau ...
Nodweddion dan Sylw: Ffocws ar y Grid   |  Golwg Dylunio   |   Bar Fformiwla Mawr    Rheolwr Llyfr Gwaith a Thaflen   |  Llyfrgell Adnoddau (Testun Auto)   |  Dewiswr Dyddiad   |  Cyfuno Taflenni Gwaith   |  Amgryptio/Dadgryptio Celloedd    Anfon E-byst trwy Restr   |  Hidlo Super   |   Hidlo Arbennig (hidlo mewn print trwm/italig/strikethrough...) ...
15 Set Offer Gorau12 Testun offer (Ychwanegu Testun, Dileu Cymeriadau,...)   |   50 + Siart Mathau (Siart Gantt,...)   |   40+ Ymarferol Fformiwlâu (Cyfrifwch oedran yn seiliedig ar ben-blwydd,...)   |   19 mewnosod offer (Mewnosod Cod QR, Mewnosod Llun o'r Llwybr,...)   |   12 Trosi offer (Rhifau i Eiriau, Trosi arian cyfred,...)   |   7 Uno a Hollti offer (Rhesi Cyfuno Uwch, Celloedd Hollt,...)   |   ... a mwy

Supercharge Eich Sgiliau Excel gyda Kutools ar gyfer Excel, a Phrofiad Effeithlonrwydd Fel Erioed Erioed. Kutools ar gyfer Excel Yn Cynnig Dros 300 o Nodweddion Uwch i Hybu Cynhyrchiant ac Arbed Amser.  Cliciwch Yma i Gael Y Nodwedd Sydd Ei Angen Y Mwyaf...

Disgrifiad


Mae Office Tab yn dod â rhyngwyneb Tabbed i Office, ac yn Gwneud Eich Gwaith yn Haws o lawer

  • Galluogi golygu a darllen tabbed yn Word, Excel, PowerPoint, Cyhoeddwr, Mynediad, Visio a Phrosiect.
  • Agor a chreu dogfennau lluosog mewn tabiau newydd o'r un ffenestr, yn hytrach nag mewn ffenestri newydd.
  • Yn cynyddu eich cynhyrchiant 50%, ac yn lleihau cannoedd o gliciau llygoden i chi bob dydd!
Comments (27)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
can i amend formula =IF(VLOOKUP($C4,Sheet2!$F:$F,1,0),"1") to display result as "1" and #N/A as blank?
This comment was minimized by the moderator on the site
Hello, eggs
To splve your problem, please apply the below formula:

=IFNA(IF(LEN(INDEX($B$2:$B$19,MATCH(E2,$A$2:$A$19,0)))=0,"1",VLOOKUP(E2,IF({1,0},$A$2:$A$19,$B$2:$B$19),2,0)),"")


Please try, hope it can help you!
This comment was minimized by the moderator on the site
is it possible to get this formula to return result as 1 and #N/A as blank?
This comment was minimized by the moderator on the site
Hi, in my vlookup im getting zero and NA now i want to format the zero and NA to blank and also to have one formula that is going to cater all the cells instead of having 3difference formulas i want the formula i use to then know if its its NA OR Zero to automatic put a blank but still reveals' the exact answer
This comment was minimized by the moderator on the site
Hello, zodwa,
To return the blank results for both the 0 values and errors, you should apply the below formula:
=IFNA(IF(LEN(INDEX($B$2:$B$12,MATCH(D2,$A$2:$A$12,0)))=0,"",VLOOKUP(D2,IF({1,0},$A$2:$A$12,$B$2:$B$12),2,0)),"")


https://www.extendoffice.com/images/stories/comments/comment-skyyang/doc-vlookup-errors-1.png

Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
Very helpful, thanks
This comment was minimized by the moderator on the site
I think this is a good solution but is there a way around the problem that if I use it and then COUNTA() on the cells where the formula is created it counts those cells with "".
This comment was minimized by the moderator on the site
I am not a tech guru - I just want to add to my formula that if it does not find anything in the cell - it gives an accounting 0 that will be acknowledged in my total formula. =VLOOKUP(F4,Sponsorships1,2,FALSE)
This comment was minimized by the moderator on the site
for blank values the LEN function is converting true zero's from the lookup data to blank. Any ideas on how to bring true zeros across and only convert the blanks to blank?
This comment was minimized by the moderator on the site
Hi, Besty,
The above Len function just convert blanks to blank, and it keeps the real 0 when applying it. please try it again.
Or you can insert an attachment here to describe your problem.
Thank you!
This comment was minimized by the moderator on the site
Thank you, it worked!
This comment was minimized by the moderator on the site
Thanks sky yang - This is awesome!

I applied the formula you provided and I changed the cell references but now I'm getting #N/A instead of 0 or a negative symbol.
This comment was minimized by the moderator on the site
This is my formula. I can't get results to report a "-" instead of a zero. I don't want a zero I'd like accounting format for a zero. Please help.
=IF(ISNA(VLOOKUP($A13,'All Exp Posted'!$A$1:$B$100,2,FALSE)),"0",VLOOKUP($A13,'All Exp Posted'!$A$1:$B$100,2,FALSE))
This comment was minimized by the moderator on the site
all you need to do is set the cell setting to accounting and remove the " in the last part.

=IF(ISNA(VLOOKUP($A13,'All Exp Posted'!$A$1:$B$100,2,FALSE),0)

as you can see there is no quotation mark next to the zero, because adding the quotation marks sets the value as text.
This comment was minimized by the moderator on the site
Hi, laura,

If you want to get the result "- " instead of a zero, please apply the following formula:
=IF(LEN(VLOOKUP(E1,A2:B10,2,0))=0,"-",VLOOKUP(E1,A2:B10,2,0)).

Please change the cell references to your need.
Please try it, hode it can help you!

Thank you!
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations