Dashboard Mode - YEAR, MONTH, DAY extraction
Dashboard Goal
Understand how to extract the year, month, and day from dates in a spreadsheet to analyze sales data by these time parts.
Understand how to extract the year, month, and day from dates in a spreadsheet to analyze sales data by these time parts.
| Date | Sales |
|---|---|
| 2024-01-15 | 150 |
| 2024-02-20 | 200 |
| 2023-12-05 | 180 |
| 2024-01-30 | 220 |
| 2023-11-25 | 170 |
| 2024-02-10 | 210 |
=YEAR(A2). Shows the year for each sale.=MONTH(A2). Shows the month number (1-12).=DAY(A2). Shows the day of the month.=SUMIF(C$2:C$7, E2, B$2:B$7) where column C has the extracted years and column E has unique years.=SUMIF(D$2:D$7, G2, B$2:B$7) where column D has the extracted months and column G has unique months.+----------------------+---------------------+ | Data Table | Extracted Columns | | (Date, Sales) | Year | Month | Day | +----------------------+---------------------+ | | | +----------------------+---------------------+ | Total Sales by Year | Total Sales by Month | +----------------------+---------------------+
Filtering the data table by date or year updates the extracted columns and the total sales summaries automatically. Selecting a specific year or month filters the sales totals to that period.
If you add a filter to show only sales from 2024, which components update?
YEAR function do in Google Sheets when applied to a date like 2024-06-15?2023-12-25, what will the formula =DAY(A1) return?=MONTH(A1 to extract the month from a date in cell A1, but it shows an error. What is the problem?2024-01-05. You want to create a formula that returns the date in the format "Day: 5, Month: 1, Year: 2024". Which formula will do this correctly?Pass the test and this pattern moves unknown