Skip i'r prif gynnwys

Sut i wyrdroi swyddogaeth vlookup yn nhaflen Google?

Yn nhaflen Google, gallwn gymhwyso swyddogaeth Vlookup i ddarganfod a dychwelyd y gwerth paru cyntaf a chwith yn seiliedig ar faen prawf penodol. Ond, weithiau, mae angen i chi wyrdroi'r swyddogaeth Vlookup i gael y gwerth paru olaf neu'r gwerth o'r golofn chwith. Sut allech chi ddelio â'r swydd hon ar ddalen Google?

Gwrthdroi swyddogaeth Vlookup i ddod o hyd i'r gwerth paru olaf â'r fformiwla

Gwrthdroi swyddogaeth Vlookup i ddod o hyd i'r gwerth o'r golofn dde i'r chwith gyda fformiwla


Gwrthdroi swyddogaeth Vlookup i ddod o hyd i'r gwerth paru olaf â'r fformiwla

I wylio a dychwelyd y gwerth paru olaf yn seiliedig ar faen prawf, defnyddiwch y fformiwla ganlynol:

Rhowch y fformiwla hon: = MYNEGAI (A: B, MAX (hidlydd (ROW (A: A), A: A = D2)), 2) i mewn i gell wag lle rydych chi am ddychwelyd y canlyniad, ac yna pwyswch Rhowch allwedd, mae'r gwerth paru olaf yn cael ei arddangos ar unwaith, gweler y screenshot:

Nodyn: Yn y fformiwla uchod, A: B. yw'r ystod ddata yr ydych am edrych arni, A: A yw'r data colofn sy'n cynnwys y maen prawf rydych chi am ei wylio, a D2 yw'r maen prawf rydych chi am ddychwelyd y gwerth paru yn seiliedig arno, 2 yw'r rhif colofn rydych chi am ddychwelyd y gwerth ohono.


Gwrthdroi swyddogaeth Vlookup i ddod o hyd i'r gwerth o'r golofn dde i'r chwith gyda fformiwla

Weithiau, mae angen i chi wylio o'r dde i'r chwith, ni fydd y swyddogaeth gwylio arferol yn gweithio, dyma fformiwla syml a all eich helpu chi, gwnewch fel hyn:

Rhowch y fformiwla hon: =index(A1:A16,match(D2,B1:B16,0)) i mewn i gell wag lle rydych chi am roi'r canlyniad, ac yna pwyso Rhowch allwedd, dychwelir y gwerth paru o'r golofn chwith fel y dangosir y llun a ganlyn:

Nodyn: Yn y fformiwla uchod: A1: A16 ydy ystod y golofn yn cynnwys y gwerth paru rydych chi am ei ddychwelyd, D2 yw'r gell â maen prawf a B1: B16 yw'r ystod sy'n cynnwys y maen prawf rydych chi am edrych arno.

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 (8)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
How if we want to find the last non-empty matching value using this formula?
This comment was minimized by the moderator on the site
Hello, Ardi,To solve your problem, please apply the below formula:=ArrayFormula(MAX(IF($A$2:$A$13=D2,$B$2:$B$13,)))
Please try, hope it can help you!
This comment was minimized by the moderator on the site
For Reverse Vlookup function to find the last matching value with formula, is this possible between 2 sheets? Thank you
This comment was minimized by the moderator on the site
Hello, Rox,



To vlookup the last matching item between two sheets in Google sheets, please apply the following formula:

Note: Sheet3 is the sheet contains the original table data, and A2 is the cell in your current sheet that you want to get the result, please change them to your need.

=ArrayFormula(INDEX(Sheet3!A:B, MAX(filter(ROW(Sheet3!A:A), Sheet3!A:A=A2)),2))



Please try, hope it can help you!
This comment was minimized by the moderator on the site
bro it doesnt work...
This comment was minimized by the moderator on the site
Hello Georgius,Sorry to hear that. But I found an amazing formula which can really work. I noticed that only using Vlookup formula can't solve the problem. We need to combine the LOOKUP function with SORT function. 
Please see the two screenshots. In Sheet1, range B1:C8 is the original table data. In Sheet2, cell B2 (Apple) is the lookup value. Please copy the formula in a blank cell to get the result: =LOOKUP(B2, SORT(Sheet1!B1:B8), SORT(Sheet1!C1:C8,Sheet1!B1:B8,TRUE))It returns 88, the last matching value of B2 (Apple). Please have a try. Thanks!
Sincerely,Mandy
This comment was minimized by the moderator on the site
And is it possible to get the matching value before the last matching value? For ex., you have 200 matching values. Can you instantly get the 199th matching value? Thank you.
This comment was minimized by the moderator on the site
and is it possible to get the matching value before the last matching value? Ex. if you have 200 matching values. can you instantly get the 199th values? Thank you
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations