Module 9 · Dates and Times · Build and split dates

Wei Chen owns Spark & Shine Cleaning

Wei has an old notebook with bookings. He wrote the year, the month and the day in three columns. That is format number two. Excel needs one real date. The new booking app goes the other way. It sends full dates, and Wei wants the parts.

Loading the spreadsheet…

Module 9 · Dates and Times

Build and split dates

Wei Chen, owns Spark & Shine Cleaning
Wei Chen owns Spark & Shine Cleaning

Wei has an old notebook with bookings. He wrote the year, the month and the day in three columns. That is format number two. Excel needs one real date. The new booking app goes the other way. It sends full dates, and Wei wants the parts.

Steps

  1. Build a date with DATE

    DATE makes a real date from three numbers: the year, the month and the day.

    How to do it

    1. Select the cell for the result.
    2. Type =DATE(
    3. Type the cells for the year, the month and the day, with commas. Type a closing bracket.
    4. Press Enter.
    5. If the day is too big for the month, DATE goes on into the next month.

    =DATE(C5,D5,E5)

    Task: Build the date for Pine Hotel. Put the result in cell F7.

  2. Take a date apart

    YEAR, MONTH and DAY give back one part of a date as a number.

    How to do it

    1. Click cell I5.
    2. Type =MONTH( and the cell with the date. Type a closing bracket.
    3. Press Enter.
    4. DAY(H5) gives the day. YEAR(H5) gives the year.

    =MONTH(H5)

    Task: Get the day of the visit in H7. Put the result in cell J7.