Why is my Friday considered as next week?

Hello Smartsheet Community,

I'm currently setting up few formulas for Admin Dashboard. So I would a certain date period be counted as This Week or Next Week.

This Week:

=IF(WEEKDAY([Start Date]@row) = 1, IF(AND(YEAR(TODAY()) = YEAR([Start Date]@row), WEEKNUMBER(TODAY()) = WEEKNUMBER([Start Date]@row + 1)), "Current Week"), IF(WEEKDAY([End Date]@row) > 1, IF(AND(YEAR(TODAY()) = YEAR([End Date]@row), WEEKNUMBER(TODAY()) = WEEKNUMBER([End Date]@row)), "Current Week")))

Next Week:

=IF(WEEKDAY([Start Date]@row) = 1, IF(AND(YEAR(TODAY()) = YEAR([Start Date]@row), WEEKNUMBER(TODAY()) = WEEKNUMBER([Start Date]@row)), "Next Week"), IF(WEEKDAY([End Date]@row) > 1, IF(AND(YEAR(TODAY()) = YEAR([End Date]@row), WEEKNUMBER(TODAY()) + 1 = WEEKNUMBER([End Date]@row)), "Next Week")))

My Today() is 23/5/2024

Everything works well, but when I tried 24/5/2024 - 28/05/2024, it considered that as Next Week instead.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!