Preskoči na glavno vsebino

Kako hitro razvrstiti vrstice tako, da se ujemajo z drugim stolpcem v Excelu?

doc sort sort se ujema z drugim stolpcem 1
Če imate na listu dva seznama in oba imata enake vrednosti, vendar v drugačnem vrstnem redu, kako lahko en seznam razvrstite tako, da se ujema z drugim, kot je prikazano na spodnji sliki zaslona? V tem članku bom predstavil formulo, ki vam bo pomagala hitro rešiti v Excelu.
Razvrsti vrstice tako, da se ujemajo z drugim stolpcem

puščica modri desni mehurček Razvrsti vrstice tako, da se ujemajo z drugim stolpcem

Če želite vrstice razvrstiti po drugem stolpcu, vam lahko pomaga formula.

1. Izberite prazno celico poleg stolpca, ki ga želite uporabiti, na primer B1, in nato vnesite to formulo = UTEK (A1, C: C, FALSE)in povlecite ročico za samodejno izpolnjevanje navzdol, da uporabite to formulo. Oglejte si posnetek zaslona:
doc sort sort se ujema z drugim stolpcem 2

Nasvet: C: C je stolpec, na katerem želite poseči, A1 pa je prva celica stolpca, ki ga želite razvrstiti.

2. In nato se v celicah formule prikaže seznam števil. Izberite seznam, ki ga želite uporabiti, in seznam številk in kliknite datum > Razvrščanje. Oglejte si posnetek zaslona:
doc sort sort se ujema z drugim stolpcem 3

3. In v Razvrščanje v stolpcu izberite stolpec, ki vsebuje formule Stolpec spustnega seznama in izberite Vrednote in Najmanjša do največja Iz Razvrsti naprej in Naročilo spustni seznami posebej. Oglejte si posnetek zaslona:
doc sort sort se ujema z drugim stolpcem 4

4. klik OK. In stolpec A je razvrščen tako, da ustreza stolpcu C.
doc sort sort se ujema z drugim stolpcem 5

Nasvet: Stolpec s formulo lahko po razvrščanju izbrišete, če ga ne potrebujete več.


Hitro naključno razvrstite ali izberite celice / vrstice / stolpce iz izbora v Excelu

Kutools za Excelov nabor razvrščanja naključno lahko hitro razvrsti ali izbere podatke naključno po celicah ali stolpcih ali vrsticah. Kliknite za 30-dnevno brezplačno preskusno različico vseh funkcij!
doc razvrsti naključno
doc izberite naključno
 
 Kutools za Excel: z več kot 300 priročnimi dodatki za Excel lahko brezplačno preizkusite brez omejitev v 30 dneh.

Najboljša pisarniška orodja za produktivnost

Priljubljene funkcije: Poiščite, označite ali identificirajte dvojnike   |  Izbriši prazne vrstice   |  Združite stolpce ali celice brez izgube podatkov   |   Krog brez formule ...
Super iskanje: Več kriterijev VLookup    Multiple Value VLookup  |   VLookup na več listih   |   Nejasno iskanje ....
Napredni spustni seznam: Hitro ustvarite spustni seznam   |  Odvisni spustni seznam   |  Večkrat izberite spustni seznam ....
Upravitelj stolpcev: Dodajte določeno število stolpcev  |  Premakni stolpce  |  Preklop stanja vidnosti skritih stolpcev  |  Primerjaj obsege in stolpce ...
Predstavljene funkcije: Mrežni fokus   |  Pogled oblikovanja   |   Velika vrstica formule    Upravitelj delovnih zvezkov in listov   |  Knjižnica virov (Samodejno besedilo)   |  Izbirnik datuma   |  Združite delovne liste   |  Šifriranje/dešifriranje celic    Pošljite e-pošto po seznamu   |  Super filter   |   Poseben filter (filter krepko/ležeče/prečrtano ...) ...
15 najboljših kompletov orodij12 Besedilo Orodja (dodajanje besedila, Odstrani znake,...)   |   50 + Graf Vrste (Gantt Chart,...)   |   40+ Praktično Formule (Izračunajte starost glede na rojstni dan,...)   |   19 vstavljanje Orodja (Vstavite kodo QR, Vstavi sliko s poti,...)   |   12 Pretvorba Orodja (Številke v besede, Pretvorba valut,...)   |   7 Spoji in razdeli Orodja (Napredne kombinirane vrstice, Razdeljene celice,...)   |   ... in več

Napolnite svoje Excelove spretnosti s Kutools za Excel in izkusite učinkovitost kot še nikoli prej. Kutools za Excel ponuja več kot 300 naprednih funkcij za povečanje produktivnosti in prihranek časa.  Kliknite tukaj, če želite pridobiti funkcijo, ki jo najbolj potrebujete...

zavihek kte 201905


Kartica Office prinaša vmesnik z zavihki v Office in poenostavi vaše delo

  • Omogočite urejanje in branje z zavihki v Wordu, Excelu, PowerPointu, Publisher, Access, Visio in Project.
  • Odprite in ustvarite več dokumentov v novih zavihkih istega okna in ne v novih oknih.
  • Poveča vašo produktivnost za 50%in vsak dan zmanjša na stotine klikov miške za vas!

Comments (24)
Rated 3.5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Sorting data in rows to match respective column headers in excel.

A B C D E
---------
D
A C
C E
B D E
E
What I want it to look like:

A B C D E
---------
D
A C
C E
B D E
E
This comment was minimized by the moderator on the site
What it looks like:

A B C D E
---------
D
A C
C E
B D E
E
What I want it to look like:

A B C D E
---------
D
A C
C E
B D E
E

can we do this in Excel?
Rated 3.5 out of 5
This comment was minimized by the moderator on the site
Annn the formatting for that comment broke.

It would re-order it to:
0230
...........0231
...........0234
0236 0236
...........0240
0241
............0245
0250 0250
............0251

Is what I meant by insert empty cells as needed in each column
This comment was minimized by the moderator on the site
A lot of people are asking this question (on a 4 year old post) but I haven't found an answer.

I have 4 unique columns of time stamps from 4 sources. Not all the time stamps match up. I might have 0230, 0236, 0241, 0250 in one column and 0231, 0234, 0236, 0240, 0245, 0250, 0251 in another column. Is there away to have excel match the columns and insert empty cells as needed?
So instead of:
0230 0231
0236 0234
0241 0236 etc

It would re-order it to:
0230
0231
0234
0236 0236
0240
0241
0245
0250 0250
0251

I have about 13,000 rows I need to do this to across 4 columns so adding by hand or inserting rows is not feasible.
This comment was minimized by the moderator on the site
Hi, JOAT, you can use this formula:

=IFERROR(VLOOKUP(G1,$I$1:$I$8,1,FALSE)
See screenshot:
https://www.extendoffice.com/images/stories/comments/sun-comment/doc-lookup-formula-1.png
This comment was minimized by the moderator on the site
Hi, Great article!
I am wondering. If in the example above, column A does not have the value G2, this means that the sorting operation will be out of sync; 1,3,4,5,6,7,8. (missing a match for G2 on row index 2). Assuming that we want the rest of the data to line up, how can we resolve this without manually changing each line?
Is it possible to displace column A and use column B as a row index instead?
This comment was minimized by the moderator on the site
1 52 63 14 2 HOW CAN above two column data sort same data in one row
This comment was minimized by the moderator on the site
It doesn't help if the info is not exactly the same in both columns eg. column 1 has C,D,B, A and column 2 has B,D,C,A,G,R,T,H. When sorting column A to match column B, they won't match up. Any solution for this?
This comment was minimized by the moderator on the site
Sorry, the method only work while two columns have same numuber rows and same data but in different order.
This comment was minimized by the moderator on the site
Please share some way to sort if the info is not exactly the same in both columns eg. column 1 has C,D,B, A and column 2 has B,D,C,A,G,R,T,H.
This comment was minimized by the moderator on the site
Hey Sujith,

Did you find a solution because I have this exact problem. Please help
This comment was minimized by the moderator on the site
Daniella/Sujith,
How would the unique members of the resorted column be ordered? If they are numeric or alpha entries, then the ordering is simple; otherwise, it is less intuitive. May be easiest to isolate the 1-1 matching rows between the ref column and subject column, apply the ordering approach detailed above on that subset, then utilize a custom sort on the entire column as a final step. All of this is highly dependent on what type of data you have and ordering you expect to achieve.
-MH
This comment was minimized by the moderator on the site
Thanks a lot for this post.. made my work a lot easier :)
This comment was minimized by the moderator on the site
Anyone can help how to sort like below:

Column A is having and column B is having

1 1

1 2

2 1

2 2

But I need both column as


1

1

2

2
This comment was minimized by the moderator on the site
I do not understand your problem, can you give me more details?
This comment was minimized by the moderator on the site
This is what I am trying to accomplish but I can find no solutions:

I have one spreadsheet of AR for one customer, (downloaded from QB), which I have pared down to four columns: Invoice number, date, amount billed and status.
I have a second spreadsheet (downloaded from the customer) with six columns: Invoice number, date, amount, status, date paid and check number.

I need to merge/align the two spreadsheets so that the invoice numbers in both “A” columns match up with each other and all other data remains intact with that invoice number. So, I am envisioning, a row looking like this:
A1:invoice number, B1:date, C1:amount billed, D1:status (All pulled from spreadsheet 1), E1:invoice number, F1:date, G1:amount, H1:status, I1:date paid, J1:check number (All pulled from spreadsheet 2)

Of course, if there are no matches from the second spreadsheet to the invoice number in Column A, then Columns E thru J would be blank.

Thank you very much for any help with this issue.
This comment was minimized by the moderator on the site
Did you ever get an answer/solution for this? Exactly what I need.
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