Forum Discussion

  • RodDavis 

    The formula

    =IF(J6="blank",K6,0)=DAYS(J6,A6)

    compares IF(J6="blank",K6,0) with DAYS(J6,A6),

    If they are equal, the formula will return TRUE, otherwise it will return FALSE.

     

    Also: did you really want to check whether J6 contains the text blank? Or did you want to check whether J6 is empty?

    And: IF(J6="blank",K6,0) refers to K6 itself, so if J6 does contain blank, you'll create a circular reference.

     

    Can you explain what you wanted to accomplish?

    • RodDavis's avatar
      RodDavis
      Copper Contributor

      HansVogelaar 

      Thanks for your help
      I wanted the formula to check if J6 is empty then K6 and L6 would also be empty, then when a date was added to J6, K6 and L6 would then return the number of days and weeks respectively.
      Hope that makes sense?

      • RodDavis 

        In K2:

        =IF(J2="","",DAYS(J2,A2))

        In L2:

        =IF(J2="","",K2/7)

        Select K2 and L2, then fill down.

Share

Resources