跳到主要内容

如何按字母顺序分别对每一行进行排序?

假设您具有一系列数据,现在您想要按字母顺序对每个行进行单独排序,如下图所示,如何解决呢? 在本文中,我将介绍一些在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),然后按 输入 键。 看截图:
doc每行排序6

2.然后转到下一个单元格G2,输入此公式=小($ B2:$ D2,2) 并按下 输入 键。 看截图:
doc每行排序7

3.在单元格M2中,输入公式 =小($ B2:$ D2,3) 并按下 输入 键,现在第一行已从最小到最大排序。 看截图:
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 Tab 为 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