简体   繁体   English

Excel整数日期时间参考和用法

[英]Excel integer date-time reference and usage

I'm currently performing analysis on some data. 我目前正在对某些数据进行分析。 Basically, sorting different product by certain variables, all this in different time frames (product flow every 30 minutes). 基本上,是按一定的变量对不同的产品进行排序,所有这些操作均在不同的时间范围内(每30分钟进行一次产品流)。

My date and time column looks like this: 2.01701E+11 (201701262230). 我的日期和时间列如下所示:2.01701E + 11(201701262230)。

How do I refer to it? 我怎么指称它?

Thank you. 谢谢。


Thank you for the prompt answer, but I still don't quite get how to use it. 感谢您的迅速答复,但我仍然不太了解如何使用它。 I've tried but failed. 我已经尝试过但是失败了。

Basically imagine I have a column with products (A, B, C, D) and next to them a column with daytimevalues that start at 13 o'clock on a certain day (201701241300) and end at 11PM the same day (201701242300). 基本上可以想象我有一个包含产品(A,B,C,D)的列,在它们旁边有一个daytimevalue的列,该列的值从某天(201701241300)的13点开始,到当天的11PM(201701242300)结束。 The range changes each 30 minutes. 范围每30分钟更改一次。

I am trying to count all product A on the 24th of January at 13:00, and then at 13:30 and so forth: 我试图在1月24日13:00,然后在13:30,以此类推计算所有产品A:

the formula would go something like this: =COUNTIFS(Data[Product_type], "A", Data[day_hour], ??????????) 该公式将如下所示:= COUNTIFS(Data [Product_type],“ A”,Data [day_hour],??????????)

在此处输入图片说明 =DATEVALUE(TEXT(A1,"0000-00-00 00\\:00")) this fromula will get you the date. =DATEVALUE(TEXT(A1,"0000-00-00 00\\:00"))此公式将为您获取日期。 =TIMEVALUE(TEXT(A1,"0000-00-00 00\\:00")) this formula will give you the time. =TIMEVALUE(TEXT(A1,"0000-00-00 00\\:00"))此公式将为您提供时间。

A1 is the cell containing the input value A1是包含输入值的单元格

In the Image the column C and D contains the above mentioned formula... 在图像列C和D中包含上述公式...

=COUNTIFS($A$2:$A$10,F3,$C$2:$C$10,$G$1,$D$2:$D$10,(">=13:00:00"),$D$2:$D$10,("<14:00:00"))

you can use the above formula in cell G3 to get desired output...similarly you can use it to get other values as well. 您可以在G3单元格中使用上述公式来获得所需的输出...类似地,您也可以使用它来获取其他值。

enter image description here 在此处输入图片说明

You can see the situation here. 您可以在此处查看情况。 Basically I have the dates under that form. 基本上,我在该表格下有日期。 I need to count the countries by occurence in time, every have hour in a given day. 我需要按时间发生的国家(在一天中每个小时都有一个小时)进行计数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM