A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Close:
=A1+CHOOSE(WEEKDAY(A1),1,0,-1,-2,-3,0,-1)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am in need of a formula that will show a logic that if date in cell A1 is...
Trying to set up a spreadsheet for work dates but we only have particular matters set for Monday and Friday. So say the date populated is 07/13/2022 - I would need it to fall back to 07/11/2022. But if the date was already set as 07/11 for it to remain 07/11 since it's a Monday. Same thing for Friday dates as well (if the date populated is a Friday let it stay Friday)
I would imagine something like this would work but I'm not sure what numbers to input into the equation.
=A1+CHOOSE(WEEKDAY(A1),1,3,2,1,4,3,2)
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Close:
=A1+CHOOSE(WEEKDAY(A1),1,0,-1,-2,-3,0,-1)
Hello again! Quick update - how can I get this to avoid holidays? In the coming weeks, 09/05 is a holiday but the dates are falling on this date. Is there a way to make it fall back to the Friday prior if it's a holiday?
PERFECT! I am by no means any kind of expert in Excel lol I have no clue how the formula you gave was made, but it's perfect! Thank you so much!
How about
=A1-WEEKDAY(A1,3)+4*(WEEKDAY(A1,3)<=3)