How to quickly sort rows to match another column in Excel?
Sort rows to match another column
To sort rows to match another column, here is a formula can help you.
1. Select a blank cell next to the column you want to resort, for instance B1, and then enter this formula =MATCH(A1,C:C,FALSE), and drag autofill handle down to apply this formula. See screenshot:
Tip: C:C is the column you want to resort based on, and A1 is the first cell of the column you want to sort.
2. And then a list of numbers are displaying in the formula cells. Select the list you want to resort and the numbers list, and click Data > Sort. See screenshot:
3. And in the Sort dialog, select the column which contains the formulas from Column drop down list, and select Values and Smallest to Largest from the Sort On and Order drop down lists separately. See screenshot:
4. Click OK. And the column A is sorted to match column C.
Tip: You can delete the formula column after sorting if you do not need it any more.
Quickly Sort or select cells/Rows/Columns randomly from a selection in Excel
|Kutools for Excel's Sort Range Randomly can quickly sort or select data randomly by cells or columns or rows. Click for full-featured 30 days free trial!|
|Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.|
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 3 months ago1 52 63 14 2HOW CAN above two column data sort same data in one row
- To post as a guest, your comment is unpublished.· 1 years agoIt 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?
- To post as a guest, your comment is unpublished.· 1 years agoSorry, the method only work while two columns have same numuber rows and same data but in different order.
- To post as a guest, your comment is unpublished.· 1 years agoPlease 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.
- To post as a guest, your comment is unpublished.· 7 months agoHey Sujith,
Did you find a solution because I have this exact problem. Please help
- To post as a guest, your comment is unpublished.· 2 years agoThanks a lot for this post.. made my work a lot easier :)
- To post as a guest, your comment is unpublished.· 2 years agoAnyone can help how to sort like below:
Column A is having and column B is having
But I need both column as
- To post as a guest, your comment is unpublished.· 2 years agoI do not understand your problem, can you give me more details?
- To post as a guest, your comment is unpublished.· 2 years agoThis 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.
- To post as a guest, your comment is unpublished.· 4 months agoDid you ever get an answer/solution for this? Exactly what I need.
- To post as a guest, your comment is unpublished.· 2 years agoExcel requests either 1(less than), 0(equal), or -1(greater than) for the [match type]. I am not entirely sure what FALSE would be.
Is there another way for doing this when the columns are not the same length and the data is not identical? (example A1,A3,B2,C4,A5,C9 compared vs. X1, B2, Q4, A1, D7, A3)
- To post as a guest, your comment is unpublished.· 2 years agoso, you want to sort A1,A3,B2,C4A5,C9 based on X1,B2,Q4,A1,D7,A3?
- To post as a guest, your comment is unpublished.· 2 years agohow do you do this with two columns that need to be matched to one. for example column a has number value, column b has letter value that is dependent on column a, and column c has the same numbers as column a, but out of order.
- To post as a guest, your comment is unpublished.· 2 years agoSo you want to reorder the column c based on column a and keep column c no change?
- To post as a guest, your comment is unpublished.· 3 years agoNic.. it helped me lot.. Thank you
- To post as a guest, your comment is unpublished.· 5 months agoYou could just use a sort without the formula though. Its not needed