跳到主要内容

如何在Excel中自动为列编号?

您是否曾经想过在Excel中对列进行编号? 本教程将讨论一些对列进行编号的方法。

通过公式= ROW()自动编号​​一列

通过公式= OFFSET()自动编号​​一列

通过自动填充句柄自动为列编号

通过插入序列号对列进行编号 Kutools for Excel


通过公式= ROW()自动编号​​一列

如果要根据行号对列进行编号,可以键入此公式 = ROW() 进入细胞并按 输入 键,然后将自动填充手柄拖到您需要编号的单元格上。

文档编号列 1


通过公式= OFFSET(A2,-1,0)+1自动为一列编号

如果要自动为列单元格编号而不是基于行号,则可以键入以下公式 =偏移(A2,-1,0)+1 进入要从2开始数字序列的单元格A1,然后按 输入 键,然后将自动填充手柄拖到所需的单元格中。

文档编号列 2

请注意:

1.使用上面的公式自动为一列编号,A2是当前单元格的地址,并且该单元格上方的单元格必须为空白或0。例如,如果要将此公式输入到单元格K5中,则应将该公式修改为 =偏移(K5,-1,0)+1,并且单元格K4必须为空白或0。

2.如果您从数字序列中删除一个数字,则以下数字将从1重新开始。

文档编号列 3


在Excel中插入序号

如果要在Excel中插入自定义的序号,例如KTE-0001-Jone,KTE-0002-Jone,KTE-0003-Jone ...,则在Excel中拖动鼠标时将不会正常填充序列字符串。 现在,随着 插入序列号 实用程序 Kutools for Excel,您可以创建任何自定义序列号并快速插入它们。  点击下载 30 天免费试用.

文档编号列 1

通过自动填充功能自动为列编号

在Excel中,自动填充功能还可以帮助您为列编号。

在要开始编号的单元格中键入1,然后将单元格右下角的自动填充手柄拖到要编号的单元格上,然后单击填充选项以展开选项,然后检查 填充系列,然后对单元格进行编号。 查看截图。

文档编号列 4

备注:如果删除一个数字系列中的一个数字,则保留其他数字。
文档编号列 5


通过插入序列号插入列号 Kutools for Excel

如果您要插入自定义序列号来为列编号,则可以尝试 插入序列号 的工具 Kutools for Excel.

Kutools for Excel, 与超过 300 方便的功能,使您的工作更加轻松。 

免费安装 Kutools for Excel,请执行以下操作:

1。 点击 库工具 > 插页 > 插入序列号.
文档编号列 6

2。 点击 全新 按钮以展开对话框,然后根据需要设置自定义顺序,可以指定前缀和后缀,也可以定义所需的位数。 看截图:
文档编号列 7 文档编号列 8

3。 点击 地址 要创建此序列,然后选择要插入数字的列范围,请单击 填充范围 将数字填充到单元格中。
文档编号列 9

提示:

1.在 插入序列号 对话框,它将标记最后插入的序列号 上一页 列表,如果您下次插入此序列号,则第一个序列号将标记在“下一个”列表中。

2。 你可以点击 全新 按钮可创建更多序号。

3。 你可以点击 重设 重置序列。

4。 同 插入序列号 工具,您还可以执行以下操作:

快速在一系列单元格中创建并插入重复的序号

在合并的单元格中快速创建并插入序号


相关文章:

  • 如何从Excel中的文本字符串中删除数字?
    例如,文本字符串中混合了许多数字,而您想从文本字符串中删除这些数字。 如何完成? 本文将介绍一些技巧,可以轻松地从Excel中的文本字符串单元格中删除数字。

  • 如何在Excel中识别缺失的数字序列?
    假设您有很长的序列号列表来标记项目,例如银行对帐单中的支票号,通常我们会滚动浏览并手动找到丢失的序列号。 但是,这里有一些棘手的方法来处理它。

最佳办公生产力工具

🤖 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 (21)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Drag and fill isn't doing anything. When I put in formula and hit enter, it puts a 0 there. No numbers anywhere else. It's faster to renumber it manually than trying to get this to work.
This comment was minimized by the moderator on the site
Sziasztok
Szeretném megkérdezni excellben van egy sorszámozott oszlopom, kiveszek egy nevet és a sorszámot újra kell 1 essel kezdenem
ha lehúzom a kis sarokban akkor nem számozza át újra
marad a 2 től 2 3 4 5 6 stb
tehát át kell számoznia 1 től de nem teszi meg
pl 2 osztályosok vannak 21 en, kivettem egy tanulót és a sorszámot át kellene írnia ha lehúzom a kis kockába de nem teszi meg utánuk rögtön jön a 3 osztályosok névsora 1 essel kezdődő sorszámmal
tehát nem sorszámoz ha kiveszek egy tanulót...
hogy tudom ezt megoldani mert sokszor van ilyen
köszönöm szépen
This comment was minimized by the moderator on the site
Hi, I do not understand your question. Could you upload a file or a picture to describe your question in details?
This comment was minimized by the moderator on the site
Надеюсь, это поможет, по крайней мере в умных таблицах работает отлично.
Требуется: начать нумерацию с A2. Тогда в этой ячейке следует ввести:
=СТРОКА()-СТРОКА($A$1)
Если нужно начать с Q26: =СТРОКА()-СТРОКА($Q$25) [Главное, чтобы ссылка на строку была зафиксированной, фиксация столбца не обязательна.]
Если нужен формат 01, 02 ... 10, 11 (две цифры до 10), тогда формула примет следующий вид:
=ТЕКСТ(СТРОКА()-СТРОКА($A$1);"00")
Нужно больше нулей - меняем в формуле "00" на столько, сколько душе угодно.
This comment was minimized by the moderator on the site
Ещё вариант, чтобы не быть зависимым от верхней ячейки. Требуется то же самое, начать нумерацию с A2.
=СТРОКА()-СТРОКА(СМЕЩ($A$2;-1;0))
Отличие от предыдущей формулы состоит в одном - разное поведение в случае, если необходимо вставить новую строку над первой пронумерованной строкой.
This comment was minimized by the moderator on the site
hoe kan ik als ik bv bij a1 50 invul die 50 ergens bij op laten tellen en a1 dan weer naar 0 laten gaan?
Rated 5 out of 5
This comment was minimized by the moderator on the site
Hi, please how to number rows with a letter prefix, without dragging and how to do it so that the numbers remain the same even after moving to another row? To make them static values. Example:

AHJS1000

AHJS1001

AHJS1002
...

thanks
This comment was minimized by the moderator on the site
I'm confused regarding offset.

I am trying to autofill from Cell A3 however, there is a title in Cell A2 describing what the numbers below represent.

How do I use the autofill Offset formula, if the above Cell is not blank? Thanks
This comment was minimized by the moderator on the site
Hi, if the above cell is not blank, you can type the start number in the cell, suppoing, you want to fill numbers in D2:D8, and D1 contains header, you can type 1 into D2 firstly, then type formula =OFFSET(D3,-1,0)+1 into D3, and drag fill handle down to D8. See screenshot:
This comment was minimized by the moderator on the site
Is it possible to only auto fill to a certain number, without dragging to that number? Basically the total number is a variant,defined by a count function.
This comment was minimized by the moderator on the site
Hi, zoe, you want to auto fill numbers without dragging, right? If so, this tutorial will help you https://www.extendoffice.com/documents/excel/4448-fill-to-specific-row-without-dragging.html
This comment was minimized by the moderator on the site
I've deleted some rows in excel now my far left column numbering is eg 1,2,3,45,46,47 how do I get back to sequential numbering?
This comment was minimized by the moderator on the site
If you have deleted rows, then you just need to renumber the sequential numbering, you can type the begining number 1 in first cell, then drag fill handle down to fill seriers.
This comment was minimized by the moderator on the site
When I insert a row, the first column should have the sl.no above+1 and the rows below should be automatically numbered. This should happen without I needing to drag the formula
What is the solution for such case?
This comment was minimized by the moderator on the site
TRY THIS...


I AM GIVING FORMULA STARTING FROM A2 AS I CONSIDER THAT A1 CONTAINS THE TITLE "S.NO."


IN A2....... =IF(B2>0,1,"")

IN A3........=IF(B3>0,MAX($A$2:A2)+1,"")


THAN DRAG THE FORMULA FROM A3 TO DOWNSIDE. NOW THIS FORMULA WILL WORK WHEN YOU ENTER SOME TEXT IN B2,B3,.........,IT WILL ENTER SERIAL NO. AUTOMATICALLY.
This comment was minimized by the moderator on the site
improving the formula from the comment above (from Pkm)

try entry the formula below in A2 and then drag from A2 to downside and it will enter serial number automatically when you enter text in any cell in B column.
=IFERROR(IF(AND($A1="";$B2<>"");MAX(A1:$A$2)+1;IFS(AND($B2<>"";ISNUMBER($A1));MAX($A1:$A$2)+1;AND($B2<>"";ISTEXT($A1));1));"")

This comment was minimized by the moderator on the site
Sorry my hands are tied.
This comment was minimized by the moderator on the site
I want an auto-numbering that even if I delete a row in the middle, the numbers below will automatically adjust
This comment was minimized by the moderator on the site
=row() can work.
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