Avatar of Euro5
Euro5
Flag for United States of America

asked on 

Excel formula for dates

I am using this formula today and the referenced date in I2 is 4/30/21, so the formula should say 2, but it says FALSE. Can anyone help?

=IF(I2="","",IF(AND(I2=TODAY()-1,I2<=TODAY()-7),4,IF(AND(I2>=TODAY()-8,I2<=TODAY()-14),3,IF(AND(I2>=TODAY()-15,I2<=TODAY()-21),2,IF(AND(I2>=TODAY()-22,I2<=TODAY()-28),1)))))
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Rob Henson

8/22/2022 - Mon