Excel表格怎么单独提取时间中的小时?
时间:2022-03-19 13:49:45
Excel表格怎么单独提取时间中的小时?我们经常会在Excel表格中录入时间,而不少用户在使用的时候又需要单独提取小时,那么具体怎么操作呢?下面小编就带着大家一起看看吧!
操作方法
1、以Microsoft Excel为例,首先打开一个Excel表格,也就是需要提取时间中小时的文件;
![Excel表格怎么单独提取时间中的小时?](https://img.aspxhome.com/file/2023/7/a153257_0.png)
2、然后点击旁边的空白单元格,因为我们提取后的小时数无法放在已有数据的单元格内;
![Excel表格怎么单独提取时间中的小时?](https://img.aspxhome.com/file/2023/7/a153257_1.png)
3、输入【=HOUR(数据所在位置)】,例如求图中B2所在数据的小时数,输入函数【=HOUR(B2)】;
![Excel表格怎么单独提取时间中的小时?](https://img.aspxhome.com/file/2023/7/a153257_2.png)
4、接着回车就可以获得B2单元格内时间的小时数,单击C2,也就是提取小时数所在的单元格,拉动右下角的【填充键】;
![Excel表格怎么单独提取时间中的小时?](https://img.aspxhome.com/file/2023/7/a153257_3.png)
5、按住填充键往下拉动,就会自动套用该公式提取出其他时间的小时数;
![Excel表格怎么单独提取时间中的小时?](https://img.aspxhome.com/file/2023/7/a153257_4.png)
6、如果需要提取出时间内的分钟,可以使用函数【=MINUTE(数据所在位置)】,例如【=MINUTE(B2)】,得出数值后下拉填充;
![Excel表格怎么单独提取时间中的小时?](https://img.aspxhome.com/file/2023/7/a153257_5.png)
7、如果需要提取的是时间内的秒,使用函数【=SECOND(数据所在位置)】,例如【=SECOND(B2)】,得出数据后下拉填充即可。
![Excel表格怎么单独提取时间中的小时?](https://img.aspxhome.com/file/2023/7/a153257_6.png)
标签:Excel教程
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
word怎么显示标尺?
2023-06-29 23:06:02
![](https://img.aspxhome.com/file/2023/1/34421_0s.jpg)
word2007字符之间的间距怎么调整?
2022-09-05 05:23:26
![](https://img.aspxhome.com/file/2023/5/28965_0s.jpg)
Excel表格如何选择固定区域
2023-07-13 03:57:03
excel2003行列转换的教程
2022-04-04 18:48:43
word中怎么设置只有特定区域才可以输入文字?
2022-07-30 07:30:25
![](https://img.aspxhome.com/file/2023/7/24407_0s.png)
Win10音量图标不见了怎么办?Win10声音图标不见了处理方法
2023-12-14 16:53:34
![](https://img.aspxhome.com/file/2023/5/51845_0s.png)
三种方法快速将一个Word表格拆分为两个
2023-09-22 23:00:01
![](https://img.aspxhome.com/file/2023/2/34032_0s.jpg)
在Word2010中显示或隐藏“突出显示”标记的具体步骤
2023-06-26 18:59:56
![](https://img.aspxhome.com/file/2023/1/29981_0s.jpg)
Excel 2019如何实现多列数据排序图解教程
2022-12-24 02:31:20
![](https://img.aspxhome.com/file/2023/9/a141029_0s.jpg)
Office2007中Alt键的有趣功能
2023-09-05 12:19:17
![](https://img.aspxhome.com/file/2023/0/15770_0s.jpg)
Word 2010新功能:结构清晰的文档导航
2022-10-09 10:07:23
![](https://img.aspxhome.com/file/2023/6/21006_0s.jpg)
Win10专业版系统缺少蓝牙怎么办?
2023-11-16 08:37:21
![](https://img.aspxhome.com/file/2023/1/49641_0s.png)
Excel中进行将两个表格作差异对比的操作方法
2022-05-13 17:39:49
PDF文件怎么修改页面颜色?
2023-07-29 16:13:13
![](https://img.aspxhome.com/file/2023/4/15284_0s.jpg)
iOS 14 小组件时钟不准解决办法
2023-10-24 00:10:39
![](https://img.aspxhome.com/file/2023/5/a194475_0s.png)
excel如何从车牌号中提取省的简称 excel从车牌号中提取省的简称方法
2022-12-30 13:53:53
![](https://img.aspxhome.com/file/2023/2/39672_0s.jpg)
xlsx文件在Excel中无法打开是什么原因
2022-05-09 01:10:13
Word遇到问题需要关闭解决方法
2023-03-30 22:36:55
![](https://img.aspxhome.com/file/2023/6/22036_0s.jpg)
如何在word中插入分页符
2023-08-26 04:47:45
![](https://img.aspxhome.com/file/2023/4/33144_0s.jpg)
excel怎么快速求和?excel求和三种方法介绍
2023-07-24 12:20:57
![](https://img.aspxhome.com/file/2023/9/40999_0s.jpg)