I want Wednesday as the weekof based on the date
for e.g. If cell A has date of 25th Nov, the weekof in cell B for that date should be 20th Nov
If cell A has date of 27th Nov, the weekof in cell B for that should be 27th Nov
If cell A has date of 26th Nov, the weekof in cell B for that should be 20th Nov
What would be the formula to get this value?
I tried this formula
=IF(ISDATE([Planned Date]2), IF(WEEKDAY([Planned Date]2) = 3, [Planned Date]2 - 6, [Planned Date]2 - WEEKDAY([Planned Date]2) + 4))
It works for all dates except for Monday
So, if cell A has value of 25th Nov, the weekof for that date is shown as 27th Nov, whereas it should take value of last week as weekof (20th Nov)
If cell A has value of 26th Nov, it is calculating correct data and the date is shown as 20th Nov