Need Flag or No Flag based on one or both of two columns being blank or within 7 days

08/23/18 Edited 12/09/19

Used this formula to get No Flag and Flag result based on the date/whether the cell was blank.

=IF(ISBLANK([Date1]2), 0, IF([Date1]2<= TODAY(7), 1, 0))

 

Now I need to get a Flag if the date in Date2 column OR Date3 column is within 7 days  and  No Flag if the Date2 column OR Date3 column are blank.

 

I think I got the blank cell part to work:

=IF(OR(ISBLANK([Date2]2), ISBLANK([Date3]2)), 0)

 

I'm not sure how to add in the next-7-days part to that formula.  Any ideas?

Comments

  • Mike WildayMike Wilday ✭✭✭✭✭

    This should do the trick for you. 

    =IF(OR(ISBLANK([Date2]2), ISBLANK([Date3]2)), 0, IF(OR([Date2]2<= TODAY(7), [Date3]2 <= Today(7)),1,0))

Sign In or Register to comment.