Skip i'r prif gynnwys

Sut i restru'r holl achosion cyfatebol o werth yn Excel?

Fel y dangosir y screenshot chwith, mae angen i chi ddod o hyd i a rhestru pob enghraifft gyfatebol o werth “Linda” yn y tabl. Sut i'w gyflawni? Rhowch gynnig ar y dulliau yn yr erthygl hon.

Rhestrwch bob enghraifft o werth sy'n cyfateb â fformiwla arae
Rhestrwch yn hawdd yr enghraifft gyfatebol gyntaf yn unig o werth gyda Kutools ar gyfer Excel

Mwy o sesiynau tiwtorial ar gyfer VLOOKUP ...


Rhestrwch bob enghraifft o werth sy'n cyfateb â fformiwla arae

Gyda'r fformiwla arae ganlynol, gallwch chi restru'n hawdd yr holl achosion cyfatebol o werth mewn tabl penodol yn Excel. Gwnewch fel a ganlyn.

1. Dewiswch gell wag i allbwn yr enghraifft gyfatebol gyntaf, rhowch y fformiwla isod i mewn iddi, ac yna pwyswch y Ctrl + Symud + Rhowch allweddi ar yr un pryd. 

=INDEX($B$2:$B$11, SMALL(IF($D$2=$A$2:$A$11, ROW($A$2:$A$11)-ROW($A$2)+1), ROW(1:1)))

Nodyn: Yn y fformiwla, B2: B11 yw'r amrediad y mae'r achosion cyfatebol yn ei leoli. A2: A11 yw'r amrediad sy'n cynnwys y gwerth penodol y byddwch chi'n rhestru pob achos yn seiliedig arno. Ac mae D2 yn cynnwys y gwerth penodol.

2. Daliwch i ddewis y gell ganlyniad, yna llusgwch y Llenwch Trin i lawr i gael yr achosion eraill sy'n cyfateb.


Rhestrwch yn hawdd yr enghraifft gyfatebol gyntaf yn unig o werth gyda Kutools ar gyfer Excel

Gallwch chi ddod o hyd i a rhestru'r enghraifft gyntaf o werth sy'n cyfateb i'r Chwiliwch am restr gwerth mewn swyddogaeth Kutools ar gyfer Excel heb gofio fformwlâu. Gwnewch fel a ganlyn.

Cyn gwneud cais Kutools ar gyfer Excel, os gwelwch yn dda ei lawrlwytho a'i osod yn gyntaf.

1. Dewiswch gell wag byddwch chi'n gosod yr enghraifft gyntaf wedi'i chyfateb, yna cliciwch Kutools > Cynorthwyydd Fformiwla > Cynorthwyydd Fformiwla

2. Yn y Cynorthwyydd Fformiwlâu blwch deialog, mae angen i chi:

2.1 Dod o hyd i a dewis Chwiliwch am restr gwerth mewn opsiwn yn y Dewiswch fformiwla blwch;
Awgrymiadau: Gallwch wirio'r Hidlo blwch, rhowch yr allweddair yn y blwch testun i hidlo'r fformiwla sydd ei hangen arnoch yn gyflym.
2.2 Yn y Tabl_array blwch, dewiswch yr ystod tabl sy'n cynnwys y golofn gwerth penodol a'r golofn achosion wedi'u paru;
2.3 Yn y Gwerth_edrych blwch, dewiswch y gell gyda'r gwerth penodol y byddwch chi'n rhestru'r lle cyntaf yn seiliedig arni;
2.4 Yn y Colofn blwch, dewiswch y golofn yn cynnwys yr enghraifft wedi'i chyfateb. Neu rhowch rif y golofn ynddo;
Awgrymiadau: Mae rhif y golofn yn seiliedig ar y nifer o golofnau a ddewiswyd, os dewiswch bedair colofn, a dyma'r 3edd golofn, mae angen i chi nodi rhif 3 yn y Colofn blwch.
2.5 cliciwch y OK botwm. 

Yna rhestrir yr enghraifft gyfatebol gyntaf o'r gwerth a roddir fel y dangosir isod.

  Os ydych chi am gael treial am ddim (30 diwrnod) o'r cyfleustodau hwn, cliciwch i'w lawrlwytho, ac yna ewch i gymhwyso'r llawdriniaeth yn ôl y camau uchod.


erthyglau cysylltiedig

Gwerthoedd Vlookup ar draws sawl taflen waith
Gallwch gymhwyso'r swyddogaeth vlookup i ddychwelyd y gwerthoedd paru mewn tabl o daflen waith. Fodd bynnag, os oes angen i chi edrych ar werth ar draws sawl taflen waith, sut allwch chi wneud? Mae'r erthygl hon yn darparu camau manwl i'ch helpu chi i ddatrys y broblem yn hawdd.

Vlookup a dychwelyd gwerthoedd wedi'u paru mewn sawl colofn
Fel rheol, dim ond o un golofn y gall cymhwyso'r swyddogaeth Vlookup ddychwelyd. Weithiau, efallai y bydd angen i chi dynnu gwerthoedd cyfatebol o sawl colofn yn seiliedig ar y meini prawf. Dyma'r ateb i chi.

Vlookup i ddychwelyd gwerthoedd lluosog mewn un cell
Fel rheol, wrth gymhwyso swyddogaeth VLOOKUP, os oes sawl gwerth sy'n cyfateb i'r meini prawf, dim ond canlyniad yr un cyntaf y gallwch ei gael. Os ydych chi am ddychwelyd yr holl ganlyniadau wedi'u paru a'u harddangos i gyd mewn un gell, sut allwch chi gyflawni?

Vlookup a dychwelyd rhes gyfan o werth cyfatebol
Fel rheol, dim ond canlyniad o golofn benodol yn yr un rhes y gall defnyddio'r swyddogaeth vlookup ei ddychwelyd. Mae'r erthygl hon yn mynd i ddangos i chi sut i ddychwelyd y rhes gyfan o ddata yn seiliedig ar feini prawf penodol.

Yn ôl Vlookup neu yn ôl trefn
Yn gyffredinol, mae swyddogaeth VLOOKUP yn chwilio gwerthoedd o'r chwith i'r dde yn y tabl arae, ac mae'n ei gwneud yn ofynnol i'r gwerth edrych aros yn ochr chwith y gwerth targed. Ond, weithiau efallai eich bod chi'n gwybod y gwerth targed ac eisiau darganfod y gwerth edrych i'r gwrthwyneb. Felly, mae angen i chi edrych yn ôl yn Excel. Mae sawl ffordd yn yr erthygl hon i ddelio â'r broblem hon yn hawdd!

Mwy o sesiynau tiwtorial ar gyfer VLOOKUP ...

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 (15)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Is there a way to make it totla up the values it find and just put it in the first box?
This comment was minimized by the moderator on the site
Hi Bramdon,

To total up all matched values, the following formula can help. Or you can take a look at this tutorial: vlookup and sum matches in rows or columns in Excel
=SUMPRODUCT((A2:A7=A10)*B2:F7)
https://www.extendoffice.com/images/stories/doc-excel/doc-vlookup-and-sum/doc-vlookup-sum-sumif4.png
This comment was minimized by the moderator on the site
Is there a way to stop this formula returning duplicate values

Thanks
Steven
This comment was minimized by the moderator on the site
Hi Steven Waddleton,
The following two formulas can do you a favor.
Array formula in E2:
=INDEX($B$2:$B$11,MATCH(0,COUNTIF($E$1:E1,$B$2:$B$11)+($A$2:$A$11<>$D$2),0)) + Ctrl + Shift + Enter
Formula in E2:
=LOOKUP(2, 1/((COUNTIF($F$1:F1,$B$2:$B$11)=0)*($D$2=$A$2:$A$11)), $B$2:$B$11)
In the formulas, E1 is the cell above the result cell.
https://www.extendoffice.com/images/stories/comments/comment-picture-zxm/instance-no-duplicates.png
This comment was minimized by the moderator on the site
WOW! Worked perfectly, thanks a ton! Awesome formula.
Rated 5 out of 5
This comment was minimized by the moderator on the site
Nice formula. In testing it I get #NUMBER! when I clear cells A9:B11. How to change the formula to prevent getting this error? I wonder, because I want to use this formula for a list of events on a certain date and on date 1 there are 40 events, on day 2 it are 10 events etc. I could create an indexed list for perhaps 100 rows, but it looks very strange when for date 2 the first 10 rows show events and the other 90 rows show #NUMBER!. It would be okay for me if it gave "-" as a result instead of #NUMBER!
This comment was minimized by the moderator on the site
Fantastic. Thank you so much. Very helpful for my work.
This comment was minimized by the moderator on the site
Amazing. The formula worked for me exactly the way I was looking for. Hats off. Thanks a ton
This comment was minimized by the moderator on the site
Question, I have a sheet laid out opposite of this where "Linda" would be the column header I would like to flag on and the value "90" or 89" I would like to return. Would I change the row function to a column function?
This comment was minimized by the moderator on the site
How would I use this formula but instead of filling down I could fill across but the formula would continue moving down as I fill across (ie. the formula changes from ROW(1:1) to ROW(2:2)
This comment was minimized by the moderator on the site
Hi Luke,The below array formula can do you a favor. Note: After entering the formula, please press the Ctrl + Shift + Enter key to apply it. And then drag its Fill Handle right across the cells you need. =INDEX($B$2:$B$11, SMALL(IF($D$2=$A$2:$A$11, ROW($A$2:$A$11)-ROW($A$2)+1), COLUMN(A1)))
This comment was minimized by the moderator on the site
A very useful and educational formula. I am matching against a set numeric value and it works a treat. How can I use >= rather than just = (i.e. IF($D$2>=$A$2:$A$11) to perform the match so it is looking for values greater than a set value (in $D$2). I assume as it doesn't work as one of the functions in the formula is matching against specific text rather than working with numbers?
This comment was minimized by the moderator on the site
This was super useful, thanks! I'm trying to take this one step further and be able to return all match instances of a certain value while having to search through more than a single-column array. To work through this using your example, I added a second column of test scores and modified your formula to look up a given test score and return the names that match that score. I got this to work with INDEX(SMALL()) and can pull all of the names from both test columns. I've also managed to return only names with that score on Test 2 using INDEX(MATCH(INDEX(MATCH))), however this can only find the first instance in the array. What I'm really trying to do is a combination of these: return all of the names with the given array, while narrowing the search to a specific column within the array. Do you have any tips for this?
This comment was minimized by the moderator on the site
Good day,
Would you please provide a screenshot of your spreadsheet showing what you are exactly trying to do? Thank you for your comment.
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