Forum Discussion

NickProp28's avatar
NickProp28
Icon for Post Partisan rankPost Partisan
6 years ago
Solved

Date difference and return TRUE/FALSE

Dear Community,    DATE A DATE B 27/6/2020 29/6/2020 1/7/2020 29/6/2020   I looking for a formula that can substract (DATEA - DATEB) and return false/true if its more than 7 days. ...
  • amitchandak's avatar
    6 years ago

    NickProp28 

    if(abs(datediff([Date A],[Date B],Day)) <=7, "Yes","NO")

  • Anonymous's avatar
    Anonymous
    6 years ago

    NickProp28 

    What is your formula? Should be like:

     

    Column = IF(DATEDIFF([Date A],[Date B],DAY)>7,TRUE(),FALSE())

     

    Paul Zheng _ Community Support Team
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
      

     

  • amitchandak's avatar
    amitchandak
    6 years ago

    NickProp28 , Something like this. Change as per need

    if((abs(datediff([Date A],[Date B],Day)) <=7) || (isblank([Date A]) ||isblank([Date B]) ), "Yes","NO")