A date has three parts, and Excel can read each one. YEAR, MONTH and DAY extract them, and DATE puts them back together. With these four functions you can find the first day of a month, the last day of the previous month, or any date you need.
The following exercise shows you how to break a date into its parts and how to rebuild new dates.
What you will practice in this exercise
You work on a table of 10 invoices. You answer 6 questions, one formula per question:
- Extract the year of a date (YEAR)
- Extract the month (MONTH)
- Extract the day (DAY)
- Rebuild the first day of the month (DATE)
- Find the last day of the previous month (DATE with day 0)
- Add 90 days to a date (addition)
Practice with exercises
YEAR/MONTH/DAY — Break down a date
Break any date into year, month and day, then rebuild it.
Related articles
All the exercises in this series are based on real cases found on Excel forums. Each one answers a question that Excel users really ask.