Related Posts
How much should I ask for for an Art Sup role?
Anyone joining Citi on 5th dec at Pune location?
What is your hours worked to hours billed ratio?
Hows wlb and projects of HCL Singapore?
Friday is here 🤩
Additional Posts in Excel Genius
Would anyone be willing to teach me vlookup?
New to Fishbowl?
unlock all discussions on Fishbowl.








Community Builder
I think this addresses your question. I tried to keep it simple, but if you're comfortable with more advanced formulas, you can streamline. But want to show you the logic.
Step 1 is convert each date into a weekday. here, 1-5 is M-F, 6 is Sat, 7 is Sun.
Step 2 then is a simple IFS statement. If 1through 5, then just copy the date. If 6, take the date and subtract one day, i.e. If Saturday, then make Friday. If 7, then subtract 2 days.
I like the yellow font on purple, looks sharp! In this case, you could also use SWITCH in place of IFS, but it’s really just personal preference. I think the SWITCH syntax is a little cleaner personally.
Also, ask chat gpt really specific questions like this. It has written fantastic customized code for me. And so far it has always gotten the code right too! Including vba code
=IF(WEEKDAY(A1 + 180) > 5, WORKDAY(A1 + 180, -1), A1 + 180)
This is assuming you dont want 180 workdays but 180 days. However if that day turns out to be a weekend, you want the preceding workday.
In which cases was your existing solution not working? Does one of the provided answers here solve your problem?