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?