Sample Data
This table shows dates in column A. Columns B, C, and D will extract the year, month, and day from each date.
| Cell | Value |
|---|---|
| A1 | Date |
| A2 | 2024-06-15 |
| A3 | 2023-12-01 |
| A4 | 2022-01-31 |
| B1 | Year |
| C1 | Month |
| D1 | Day |
This table shows dates in column A. Columns B, C, and D will extract the year, month, and day from each date.
| Cell | Value |
|---|---|
| A1 | Date |
| A2 | 2024-06-15 |
| A3 | 2023-12-01 |
| A4 | 2022-01-31 |
| B1 | Year |
| C1 | Month |
| D1 | Day |
=YEAR(A2)A B C D 1 | Date | Year | Month | Day | 2 | 2024-06-15 -> YEAR() | | | 3 | 2023-12-01 | | | 4 | 2022-01-31 | | |
A B C D 1 | Date | Year | Month | Day | 2 | 2024-06-15| 2024 | | | 3 | 2023-12-01| | | | 4 | 2022-01-31| | | |