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() used here 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 | | | |
YEAR(A1) do if cell A1 contains the date 2024-06-15?2023-12-31, what will the formula =DAY(C3) return?=YEAR("2024-07-20") but it returns 1900 instead of 2024. What is the likely problem?YYYY-MM-DD as text using YEAR, MONTH, and DAY functions. Which formula is correct?Pass the test and this pattern moves unknown