98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » Date formatting
Date formatting
Resolved · Low Priority · Version 2003
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
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Using the Quick Access Toolbar in Excel2010The Quick Access Toolbar is included in virtually every Office product, including Outlook 2010, Word 2010, Excel 2010, and PowerPoint 2010. |