当前位置:网站首页>Quickly filter data such as clock in time and date: Excel filter to find whether a certain time point is within a certain time period

Quickly filter data such as clock in time and date: Excel filter to find whether a certain time point is within a certain time period

2022-07-01 03:45:00 My little brother

You need to quickly filter clock in data , requirement : Clock in no later than 8:30 , Leave work no earlier than 5 Half past six ,
There are two ways : One is through SQL, One is through Excel Macro command complete :

One 、 First turn on the excel Import to database , What we use here is Navicat: Right click the table first , Select Import Wizard , Here is the import excel and csv All the documents can be :
 Insert picture description here
Keep clicking next , Start import :
 Insert picture description here
The table has been imported successfully , The table name can be modified here sign
 Insert picture description here
The time field in the table is f7, Insert picture description here
Delete the normal clock in time , The rest is the record of non-compliance : Carry out orders :
DELETE FROM sign WHERE sign.f7 NOT BETWEEN '08:30:00' AND '17:30:00'

Here's the picture
 Insert picture description here
 Insert picture description here
The rest is all non-conforming clock in time . Then click Export Wizard , Export it as excel that will do

Two 、 Due to the need for personnel operations , Try to be simple , Here is another simple operation :
1、 Filter clock in time :
 Insert picture description here

Select the cell in the last space of the first record , Enter the following formula :

=IF(AND(G4>“08:30:00”,G4<“17:30:00”),“ Non conformity ”,“ compliance ”)

Among variables G4 How to determine :G Is the name of the column where the time is located ,4 The number of lines starting for the first record : If there is any change , And so on :
 Insert picture description here
 Insert picture description here

After entering the formula , Select cells to display results :
 Insert picture description here

Drop down the cell to the last row , The results are all filled , Right click to quickly analyze when all is selected :

 Insert picture description here

Select the first text that contains : Fill non-conforming cells with color .
 Insert picture description here

2、 Filter the number of clocks :
This operation can only filter by person , Select all the clock in dates of one person at a time , Right click to quickly analyze , Select duplicate values .

 Insert picture description here

Only one punch in a day will be displayed :

 Insert picture description here

After the first person's operation , Then select all the punch dates of the second person to continue the same operation , And so on .

原网站

版权声明
本文为[My little brother]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/182/202207010320511809.html