


At work, we often need to perform statistical operations on data in Excel tables by time period in order to have a clearer understanding of data distribution. PHP editor Xiaoxin brings you the detailed operation process of statistical data by time period in Excel, including filtering, grouping, pivot tables and other methods to help you solve this problem.
First observe the existing data to see if the time is in a time format recognized by Excel. If it is left-aligned by default, it is likely to be in text format. Of course, set the cell format to [Normal] to see if the time is It becomes a decimal. If it becomes a decimal, it is in time format. If there is no change, it is in text format. As shown in the figure, this is the time in text format and needs to be processed first:
Select the column where the time is located, click] Data [Tab] Sort Columns [,
In the new dialog box that pops up, click directly] to complete [i.e. Yes (you can also set it step by step, but the system default is set to Normal in the third step, so you can click to complete it directly). The alignment has changed to left alignment, which is the time format recognized by the system, so that the following operations can be performed normally. Select any unit in the data area (the system will automatically select adjacent areas. If only part of the area is pivoted, be sure to select this part of the area), click ] to insert [, [Pivot Table],
Confirm whether the data area selection is correct, then click to place the pivot table in this worksheet, and select a cell to place the pivot table,
In the new interface on the right, drag the time to [Row Label] and the quantity to [Value].
At this time, select Data Pivot In any cell under the row label that has appeared in the table, click [Group selected content] in [Options],
In the pop-up [Group] dialog box, cancel Select the default [Month], select [Hour], the start time and end time will be automatically filled in by the system, or you can set it yourself according to your needs.
At this point, just use data pivot The table easily calculates the sum of the data in each hour, and the result is as shown in the figure:
The above is the detailed content of The operation process of statistical data by time period in Excel. For more information, please follow other related articles on the PHP Chinese website!

This tutorial explains the Excel SUMIF function in plain English. The main focus is on real-life formula examples with all kinds of criteria including text, numbers, dates, wildcards, blanks and non-blanks. Microsoft Excel has a handful o

In this article, you will learn how to build an Excel IF statement for different types of values as well as how to create multiple IF statements. IF is one of the most popular and useful functions in Excel. Generally, you use an IF statem

This tutorial shows how to sum a column in Excel 2010 - 2016. Try out 5 different ways to total columns: find the sum of the selected cells on the Status bar, use AutoSum in Excel to sum all or only filtered cells, employ the SUM function

In this tutorial you will learn what a PivotTable is, find a number of examples showing how to create and use Pivot Tables in all version of Excel 365 through Excel 2007. If you are working with large data sets in Excel, Pivot Table comes

This tutorial explains the difference between the SUMIF and SUMIFS functions in terms of their syntax and usage, and provides a number of formula examples to sum values with multiple AND / OR criteria in Excel 365, 2021, 2019, 2016, 2013,

Excel wildcards: a powerful tool for efficient search and filtering This article will dive into the power of wildcards in Microsoft Excel, including their application in search, formulas, and filters, and some details to note. Wildcards allow you to perform fuzzy matching, making it more flexible to find and process data. *Wildcards: asterisks () and question marks (?)** Excel mainly uses two wildcards: asterisk (*) and question mark (?). *Asterisk (): Any number of characters** The asterisk represents any number of characters, including zero characters. For example: *OK* Match the cell containing "OK", "OK&q

The tutorial shows how to create multiple IF statements in Excel with AND as well as OR logic. Also, you will learn how to use IF together with other Excel functions. In the first part of our Excel IF tutorial, we looked at how to constru

In this tutorial, you will lean a quick way to calculate percentages in Excel, find the basic percentage formula and a few more formulas for calculating percentage increase, percent of total and more. Calculating percentage is useful in m


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Chinese version
Chinese version, very easy to use

WebStorm Mac version
Useful JavaScript development tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver Mac version
Visual web development tools
