Extract hourly data separately from excel sheet

WBOY
Release: 2024-08-26 17:38:37
Original
893 people have browsed it

Extract hour values ​​in Excel When working with Excel table data, you may need to extract hour values ​​from time. In this guide, I will detail how to extract hours individually using Excel’s built-in functions. Whether you need to get the hour from a timestamp or extract the hour from a datetime value, this article will provide easy-to-follow step-by-step instructions. Read on to learn how to extract hourly values ​​from Excel data quickly and easily.

1. Open an Excel table, that is, the file that needs to extract the hours in time.

Extract hourly data separately from excel sheet

2. Then click on the blank cell next to it, because the hours we extracted cannot be placed in the cell with existing data.

Extract hourly data separately from excel sheet

3. Enter [=HOUR (data location)]. For example, to find the hours of data where B2 is located in the picture, enter the function [=HOUR (B2)].

Extract hourly data separately from excel sheet

4. Then press Enter to get the hours of time in cell B2. Click C2, which is the cell where the hours are extracted, and pull the [Fill key] in the lower right corner.

Extract hourly data separately from excel sheet

5. Hold down the fill key and pull down, and the formula will be automatically applied to extract the hours of other times.

Extract hourly data separately from excel sheet

6. If you need to extract the minutes within the time, you can use the function [=MINUTE (location of the data)], such as [=MINUTE (B2)], and then pull down to fill in the value.

Extract hourly data separately from excel sheet

7. If you need to extract the seconds within the time, use the function [=SECOND (data location)], such as [=SECOND (B2)], and then pull down to fill in the data.

Extract hourly data separately from excel sheet
Extract hourly data separately from excel sheet

2. Then click on the blank cell next to it, because the hours we extracted cannot be placed in the cell with existing data.

Extract hourly data separately from excel sheet

3. Enter [=HOUR (data location)]. For example, to find the hours of data where B2 is located in the picture, enter the function [=HOUR (B2)].

Extract hourly data separately from excel sheet

4. Then press Enter to get the hours of time in cell B2. Click C2, which is the cell where the hours are extracted, and pull the [Fill key] in the lower right corner.

Extract hourly data separately from excel sheet

5. Hold down the fill key and pull down, and the formula will be automatically applied to extract the hours of other times.

Extract hourly data separately from excel sheet

6. If you need to extract the minutes within the time, you can use the function [=MINUTE (location of the data)], such as [=MINUTE (B2)], and then pull down to fill in the value.

Extract hourly data separately from excel sheet

7. If you need to extract the seconds within the time, use the function [=SECOND (data location)], such as [=SECOND (B2)], and then pull down to fill in the data.

Extract hourly data separately from excel sheet

The above is the detailed content of Extract hourly data separately from excel sheet. For more information, please follow other related articles on the PHP Chinese website!

source:xpwin7.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!