跳到主要内容

如何在Excel中将整数(整数)与十进制分开?

要获取由整数(整数)部分和小数部分组成的数字列表,您可能需要将它们分为不同的列,如下图所示。

在本文中,我们将向您展示在Excel中分隔整数和小数的详细信息。

在Excel中将整数与十进制分开
使用 Kutools for Excel 将整数与小数分开


在Excel中将整数与十进制分开

要在Excel中将整数与十进制分开,请执行以下操作。

1.选择一个空白单元格,例如B2,输入此公式 = TRUNC(A2) 进入它,然后按 输入 键。

2.选择结果单元格,然后拖动 填充手柄 从指定单元格中获取所有整数。 看截图:

获取列表的整数后,您还可以按以下方式获取小数。

3.选择单元格C2,输入此公式 = A2-C2 进入它,然后按 输入 键。
Tips,如果您只想提取十进制数,请应用此公式 = A2-TRUNC(A2).

4.向下拖动填充手柄,以获取列表的其他十进制数字。 看截图:

然后将整数和小数从列表中分离出来。


使用 Kutools for Excel 的提取文本实用程序将整数与小数分开

如果您不想记住公式,这里我们介绍 提取文字 实用程序 Kutools for Excel。 使用此实用程序,您可以在Excel中轻松将整数与十进制分开。

申请前 Kutools for Excel首先下载并安装.

1.选择包含您要将整数与十进制分开的数字的范围,然后单击 库工具 > 文本 > 提取文字

2.在 提取文字 对话框中输入 *. 进入 文本 框,单击 地址 按钮将规则添加到 提取清单,最后点击 OK 按钮。

3.然后弹出一个对话框,选择用于查找分隔整数的单元格,然后单击 OK 按钮。

现在,所有整数立即与小数点分开。 看截图:

  如果您想免费试用(30天)此实用程序, 请点击下载,然后按照上述步骤进行操作。


使用 Kutools for 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 (7)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Thank you for guiding.
Rated 5 out of 5
This comment was minimized by the moderator on the site
"Tips, If you just want to extract the decimal number, please apply this formula =A2-TRUNC(A2)."

Thank you! I needed these.
This comment was minimized by the moderator on the site
Thanks for the post. It was useful to get me into the simple formulas I needed
This comment was minimized by the moderator on the site
Gracias. Me sirvió bastante. Que bueno que haya gente como ustedes 😢.
This comment was minimized by the moderator on the site
The section at the beginning is bad excel advice because it only works on positive numbers. INT works by rounding DOWN to the nearest integer. So if you had 1.3, and used INT on it, you'd get 1, which is what you want. But if you had -1.3 and used INT on it, you'd get -2, which is NOT what you want.

If you want to separate the integer from the decimal, should use TRUNC instead of INT. If you used TRUNC on 1.3 you'd get 1. And if you used TRUNC on -1.3, you'd get -1. Then you can do as per the original instructions and subtract the integer form the original number to get the separated decimal.
This comment was minimized by the moderator on the site
Hi Paterson,Thank you for your reminder and sharing. The post has been updated. Really appreciate.
This comment was minimized by the moderator on the site
Thank you for these instructions!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations