Determining Whether a Date Field Is Within a Specified Period

  • Last update:  2023-09-28
  • Overview

    Preview

    You may need to determine whether a time field is within a specified period. For example, you may need to determine whether the Invoicing Time is between the Recording Time and the Delivery Time, as shown in the following figure.

    1.png

    Implementation Method

    You can use the IF function to meet this requirement.

    Procedures

    Sample data: Time Judgement Table.xlsx

    Creating an Analysis Subject

    Create an analysis subject and upload the sample data with all fields selected by default.

    3.png

    Determining Whether a Date Field Is Within a Specified Period

    Add a Formula Column named Judgement Result, enter the formula: IF(AND(Invoicing Time>Recording Time,Invoicing Time<Delivery Time),"Yes","No"), and click OK.

    4.png

    iconNote:
    Fields in the formula need to be selected from the left area and cannot be entered manually.

    Formula explanation:

    Formula
    Explanation

    AND(Invoicing Time>Recording Time,Invoicing Time<Delivery Time)

    Determines whether the Invoicing Time is between the Recording Time and the Delivery Time.

    IF(AND(Invoicing Time>Recording Time,Invoicing Time<Delivery Time),"Yes","No")

    Returns Yes if the condition is true, otherwise, returns No.

    Demonstration

    For the demonstration of the added formula column, see section "Preview".

    附件列表


    主题: Adding and Editing Data
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy