跳到主要內容

如何按字母順序分別對每一行進行排序?

假設您具有一系列數據,現在您想要按字母順序對每個行進行單獨排序,如下圖所示,如何解決呢? 在本文中,我將介紹一些在Excel中快速處理此作業的方法和技巧。
doc每行排序1

使用排序功能按字母順序對每一行進行排序

使用公式按字母順序快速對每一行進行排序


箭頭藍色右氣泡 使用排序功能按字母順序對每一行進行排序

要按字母順序對每個行進行排序,可以應用“排序”功能,然後選擇“從左到右排序”選項,然後將它們一一排序。

1.選擇要按字母順序排序的第一行,然後單擊 數據 > 分類,並在彈出 排序警告 對話框,檢查 繼續 使用當前選擇選項,然後單擊 分類 按鈕。 看截圖:
doc每行排序2

2.然後在 分類 對話框中單擊 選項 打開 排序選項 對話框,然後檢查 從左到右排序。 看截圖:
doc每行排序3

3。 然後點擊 OK 回去 分類 對話框,然後在列表中選擇要首先排序的行號 下拉列表,然後指定 排序過往訂單 根據需要。 看截圖:
doc每行排序4

4。 點擊 OK。 您會發現所選的第一行已從最小到最大進行了排序。 看截圖:
doc每行排序5

5.重複上述1-4步,將其他行一一排序。 現在,每一行都按字母順序和單獨排序。


箭頭藍色右氣泡 使用公式按字母順序快速對每一行進行排序

如果有數百行需要單獨排序,則上述方法會浪費時間。 在這裡,我介紹了一些公式供您快速將每一行從最小到最大快速排序,反之亦然。

1.選擇要排序的行旁邊的空白單元格,例如F2,輸入此公式 =小($ B2:$ D2,1),然後按 Enter 鍵。 看截圖:
doc每行排序6

2.然後轉到下一個單元格G2,輸入此公式=小($ B2:$ D2,2) 並按下 Enter 鍵。 看截圖:
doc每行排序7

3.在單元格M2中,輸入公式 =小($ B2:$ D2,3) 並按下 Enter 鍵,現在第一行已從最小到最大排序。 看截圖:
doc每行排序8

小提示: 在上面的公式中,B2:D2是您要排序的行中的列單元格,而1表示第一個最小,第二個最小,第三個最小,您可以根據需要進行更改。

4.並選擇單元格F2:H2(公式單元格),然後將自動填充手柄拖到用於對相應列單元格進行排序所需的單元格上。 看截圖:
doc每行排序9

現在,每一行都已單獨排序,您可以復制公式單元格並將其粘貼為值,而不是根據需要粘貼到數據范圍中的原始值。
doc每行排序10

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
instead of using small function, you can use sort function.
ex. =SORT(C2:E2,1,1,TRUE)
and than you can drag and copy per row.
C2:E2 --> column to be sort
1 --> index
1 --> ascending
True --> sort by column
This comment was minimized by the moderator on the site
I cannot thank you enough for this. I've watched youtube videos, read posts, and none of them seemed to understand how I needed to sort each row individually and instantly without also rearranging the others. I gathered two years worth of numeral data for a personal project and it was a big mess! Tens of thousands of rows! I needed the numbers separate in individual cells (originally they weren't, but thats a whole other story!), and now I also needed them in order per row! First I tried simply going row by row, copying, deleting, retyping, pasting; but it was TEDIOUS. Then I tried transposing the tables, sorting-by-ascending column, one by one copying the column, and repasting into a blank chart, then transposing the new chart and copying all, and then pasting back into the original chart; but again - TEDIOUS. Now I will just create an adjacent chart using the formula, copy, paste, DONE!!!!!!!!!!! YAY!!!!!!!! :) THANK YOUUUU :)
This comment was minimized by the moderator on the site
AHA! - right! - I know WHAT i need to do - now I just need to learn how to write the blimming macro to: set up a do-while loop to trip down the rows until a blank entry is found (end of range):for each populated cell found; select first cell to be processed:Assign value of target cell to a variable: Insert temporary new first row>insert temp new column 'a': copy and paste value into cell A1; convert text to columns; select generated values; cut and paste special (transpose) into temp column A; sort column a in ascending order; insert a concatenation formula into the original cell to capture values in A1&A2&A3 etc; (probably using another loop to capture populated cell values) copy and paste special (values) into original cell; remove temp column: remove temp Row A: select next cell and repeat the loop. Sounds simple enough ...
This comment was minimized by the moderator on the site
Great - now then: How can I sort multiple rows of TEXT values alphabetically - (something akin to the 'Small' function that will work with text values? - The sorting each row individually method works - but since I have over 6 thousand rows - and zero boredom threshold - I'm hoping that someone has managed to put together a formula solution (ideally) of a maco tool?
This comment was minimized by the moderator on the site
Did you got the solution for particular issue, You are asking?
This comment was minimized by the moderator on the site
Says you're going to show us how to sort alphabetically then you only use numbers.
This comment was minimized by the moderator on the site
The first method Sort each row alphabetically one by one with Sort function can sort each row alphabetically, the second one only work for numbers, thank u for ur message.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations