Ross has attended:
Excel Intermediate course
Date formatting
How to creat a formula for yesterdays date that is a day during the week i.e. If Monday then the date must be the Friday before. If tues then the date must be Monday.
RE: Date formatting
Hi Ross
Thank you for your question.
The answer requires the use of the IF function and Weekday function. Weekday function returns 1-7 when given a date. So given that Monday returns 2 you can use the following:
=IF(WEEKDAY(C4)=2,C4-3,C4-1)
This formula assumes that the date is in C4, and that the dates will only be Monday to Friday dates.
If you are looking at more complex functions then perhaps you should consider the Excel Advanced course.
Let me know if you need further help.
Laura GB