Skip i'r prif gynnwys

 Sut i wylio a dychwelyd gwerth paru yn y rhestr wedi'i hidlo?

Gall swyddogaeth VLOOKUP eich helpu i ddod o hyd i'r gwerth paru cyntaf a'i ddychwelyd yn ddiofyn p'un a yw'n rhestr arferol neu'n rhestr wedi'i hidlo. Weithiau, 'ch jyst eisiau edrych a dychwelyd y gwerth gweladwy yn unig os oes rhestr wedi'i hidlo. Sut allech chi ddelio â'r dasg hon yn Excel?

Gwerth paru Vlookup a dychwelyd yn y rhestr wedi'i hidlo â fformwlâu Array


Gwerth paru Vlookup a dychwelyd yn y rhestr wedi'i hidlo â fformwlâu Array

Gall y fformwlâu arae canlynol eich helpu i ddod o hyd i'r gwerth paru a'i ddychwelyd mewn rhestr wedi'i hidlo, gwnewch fel hyn:

Rhowch y fformiwla hon:

=INDEX(B4:B19,MATCH(1,IF(SUBTOTAL(3,OFFSET(A4:A19,ROW(A4:A19)-ROW(A4),0,1))>0,IF(A4:A19=F2,1)),0)) i mewn i gell lle rydych chi am ddod o hyd i'r canlyniad, ac yna pwyso Ctrl + Shift + Enter allweddi gyda'i gilydd, a byddwch yn cael y gwerth cyfatebol yn ôl yr angen, gweler y screenshot:

Nodyn: Yn y fformiwla uchod:

F2: ydy'r gwerth edrych rydych chi am ddod o hyd i'w werth cyfatebol;

A4: A19: yw'r ystod ddata sy'n cynnwys y gwerth edrych;

B4: B19: yw'r data colofn sy'n cynnwys y gwerth canlyniad rydych chi am ei ddychwelyd.

Dyma fformiwla arae arall a all hefyd ffafrio chi, nodwch y fformiwla hon:

=VLOOKUP(F2,IF(SUBTOTAL(3,OFFSET(A4:A19,ROW(A4:A19)-ROW(A4),0,1))>0,A4:D19),4,0) i mewn i gell wag, ac yna pwyswch Ctrl + Shift + Enter allweddi gyda'i gilydd i gael y canlyniad cywir, gweler y screenshot:

Nodyn: Yn y fformiwla uchod:

F2: ydy'r gwerth edrych rydych chi am ddod o hyd i'w werth cyfatebol;

A4: A19: yw'r ystod ddata sy'n cynnwys y gwerth edrych;

A4: D19: yw'r ystod ddata rydych chi am ei defnyddio;

nifer 4: yw'r rhif colofn y mae eich gwerth cyfatebol yn ei ddychwelyd.

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 (7)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
=VLOOKUP(A2,IF(SUBTOTAL(3,OFFSET(Consolidate!D:E,@ROW(Consolidate!D:E)-ROW(Consolidate!D1),0,1))>0,Consolidate!D:E),2,0)
while using this formula through VBA, i am getting @ in front ROW
This comment was minimized by the moderator on the site
Precisely what I needed thank you so much!
Rated 5 out of 5
This comment was minimized by the moderator on the site
need to use the above for 2 worksheets to look up the filtered data from one worksheet and to use this to replace the data from another worksheet with filtered columns
This comment was minimized by the moderator on the site
Hello, Be,
If you want to lookup and return the matched value from another worksheet, please apply the below formula:
=INDEX(Sheet1!B2:B11,MATCH(1,IF(SUBTOTAL(3,OFFSET(Sheet1!A2:A11,ROW(Sheet1!A2:A11)-ROW(Sheet1!A2),0,1))>0,IF(Sheet1!A2:A11=F2,1)),0))

After pasting the formula, please press Ctrl + Shift + Enter keys together.

Note: In the above formula:
Sheet1: is the main worksheet contains the data you want to use;
B2:B11: is the column data which contains the result value you want to return;
A2:A11: is the data range which contains the lookup value;
F2: is the lookup value you want to find its corresponding value.
This comment was minimized by the moderator on the site
NEED HELP TO USE THE SAME FORMULA IN TWO DIFFERENT WORKBOOKS WITH FILTERED COLUMNS asap for a project to be submitted now, but am getting confused onto what to use for which field
This comment was minimized by the moderator on the site
this Vlookup function doesn't return with all results some values returned with #N/A
This comment was minimized by the moderator on the site
Hello Mohamed Kamal,Sorry to hear that. Please make sure the formula is entered with you pressing the Ctrl + Shift + Enter keys. If the solution can't solve your proplem, please send us the screenshot of the details. Thanks!Sincerely,Mandy
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations