反馈已提交
网络繁忙
Users sometimes need to determine whether a time field is within a specified time period, for example, whether "Invoice Time" is between "Account Entry Time" and "Shipment Time", as shown in the following figure:
Use the statement IF, AND and DATEDIF.
Calculate the time difference between "Shipment Time" and "Account Entry Time", "Invoice time" and "Account Entry Time", "Shipment Time" and "Invoice Time" respectively.
Using if judgment, if the time difference between "Shipment Time" and "Account Entry Time" is greater than the other two time differences at the same time, the "Invoice Time" is between "Account Entry Time" and "Shipment Time".
Example data:Time-Judgment.xlsx
Upload this Excel dataset to FineBI, as shown in the following figure:
Add a dataset, and select an Excel dataset, and check all fields, as shown in the following image:
Click on the button to add "New column", as shown in the following figure:
Name the new column as "Judging Results", enter the formula:
IF(AND(DATEDIF(${Account Entry Time},${Shipment Time},"D")>(DATEDIF(${Invoice Time},${Shipment Time},"D")),DATEDIF(${Account Entry Time},${Shipment Time},"D")>DATEDIF(${Invoice Time},${Account Entry Time},"D")),"Yes","No")
then click OK, as shown in the following figure:
Note: the functions and fields in the formula box need to be selected by clicking the selection area on the left, and cannot be entered manually.
Formula explanation:
See Section 1.1 of this document for details.
售前咨询电话
400-811-8890转1
在线技术支持
在线QQ:800049425
热线电话:400-811-8890转2
总裁办24H投诉
热线电话:173-1278-1526
文 档反 馈
鼠标选中内容,快速反馈问题
鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。
不再提示
10s后关闭