Bird
Raised Fist0
Excelspreadsheet~15 mins

DATE function construction in Excel - Real Business Scenario

Choose your learning style10 modes available
Scenario Mode
👤 Your Role: You are a sales analyst at a retail company.
📋 Request: Your manager wants a report showing the exact date of each sale based on separate year, month, and day columns.
📊 Data: You have a table with sales data including separate columns for Year, Month, and Day, but no combined date column.
🎯 Deliverable: Create a new column that combines Year, Month, and Day into a proper date using the DATE function.
Progress0 / 4 steps
Sample Data
Sale IDYearMonthDayAmount
1012024115250
102202425300
1032024320150
10420231231400
10520231110100
106202441350
1072024525275
10820231015225
1
Step 1: Insert a new column next to the Day column and label it 'Sale Date'.
Expected Result
A new empty column named 'Sale Date' appears next to the Day column.
2
Step 2: In the first row of the 'Sale Date' column (assuming row 2), enter the formula to combine Year, Month, and Day into a date.
=DATE(B2,C2,D2)
Expected Result
The formula returns 15-Jan-2024 as a date value.
3
Step 3: Copy the formula down the entire 'Sale Date' column for all sales rows.
Drag the fill handle from the first formula cell down to the last row.
Expected Result
Each row shows the correct date combining Year, Month, and Day, e.g., 5-Feb-2024, 20-Mar-2024, 31-Dec-2023, etc.
4
Step 4: Format the 'Sale Date' column to display dates in a readable format like 'dd-mmm-yyyy'.
Select the 'Sale Date' column, right-click, choose Format Cells > Date > select '15-Jan-2024' style.
Expected Result
Dates appear as 15-Jan-2024, 05-Feb-2024, 20-Mar-2024, etc.
Final Result
Sale ID | Year | Month | Day | Amount | Sale Date
-------------------------------------------------
101     | 2024 | 1     | 15  | 250    | 15-Jan-2024
102     | 2024 | 2     | 5   | 300    | 05-Feb-2024
103     | 2024 | 3     | 20  | 150    | 20-Mar-2024
104     | 2023 | 12    | 31  | 400    | 31-Dec-2023
105     | 2023 | 11    | 10  | 100    | 10-Nov-2023
106     | 2024 | 4     | 1   | 350    | 01-Apr-2024
107     | 2024 | 5     | 25  | 275    | 25-May-2024
108     | 2023 | 10    | 15  | 225    | 15-Oct-2023
✓The DATE function correctly combines separate year, month, and day values into valid dates.
✓This allows sorting and filtering sales by exact date easily.
✓Formatting the date column improves readability for reports.
Bonus Challenge

Create a new column that shows the weekday name (e.g., Monday, Tuesday) for each sale date.

Show Hint
Use the TEXT function with the formula =TEXT(F2, "dddd") assuming the Sale Date is in column F.

Practice

(1/5)
1. What does the Excel function =DATE(2024, 5, 10) return?
easy
A. Error because of wrong syntax
B. October 5, 2024
C. 2024-05-10 as text
D. May 10, 2024

Solution

  1. Step 1: Understand the DATE function parameters

    The DATE function takes year, month, and day in that order: DATE(year, month, day).
  2. Step 2: Interpret the given values

    Year is 2024, month is 5 (May), and day is 10, so the date is May 10, 2024.
  3. Final Answer:

    May 10, 2024 -> Option D
  4. Quick Check:

    DATE(2024,5,10) = May 10, 2024 [OK]
Hint: Remember DATE(year, month, day) builds a real date [OK]
Common Mistakes:
  • Confusing month and day order
  • Expecting text output instead of date
  • Thinking DATE returns an error for normal inputs
2. Which of these is the correct syntax to create a date for December 25, 2023 in Excel?
easy
A. =DATE(2023, 25, 12)
B. =DATE(2023, 12, 25)
C. =DATE(12, 25, 2023)
D. =DATE(25, 12, 2023)

Solution

  1. Step 1: Recall DATE function parameter order

    DATE requires year, then month, then day in that order.
  2. Step 2: Match parameters to December 25, 2023

    Year = 2023, month = 12 (December), day = 25, so syntax is DATE(2023, 12, 25).
  3. Final Answer:

    =DATE(2023, 12, 25) -> Option B
  4. Quick Check:

    Correct parameter order = =DATE(2023, 12, 25) [OK]
Hint: DATE is always DATE(year, month, day) [OK]
Common Mistakes:
  • Swapping month and day positions
  • Using day as month or vice versa
  • Putting year last
3. What is the result of =DATE(2024, 14, 5) in Excel?
medium
A. December 5, 2024
B. Error because month 14 is invalid
C. February 5, 2025
D. January 5, 2024

Solution

  1. Step 1: Understand how DATE handles months > 12

    Excel adds extra months to the year. Month 14 means 12 months + 2 months, so it moves 1 year ahead plus 2 months.
  2. Step 2: Calculate the adjusted date

    Starting from January 2024, adding 14 months moves to February 2025. Day remains 5.
  3. Final Answer:

    February 5, 2025 -> Option C
  4. Quick Check:

    DATE(2024,14,5) = Feb 5, 2025 [OK]
Hint: Months >12 add to year automatically [OK]
Common Mistakes:
  • Expecting an error for month > 12
  • Not adding extra months to year
  • Confusing month and day
4. You entered =DATE(2023, 2, 30) but Excel shows March 2, 2023. Why?
medium
A. Excel treats day 30 in February as March 2 automatically
B. Formula syntax is wrong, so Excel guesses the date
C. February always has 30 days in Excel
D. Excel shows an error, not March 2

Solution

  1. Step 1: Understand how DATE handles invalid days

    If the day number is too large for the month, Excel adds the extra days to the next month.
  2. Step 2: Calculate the adjusted date for February 30

    February 2023 has 28 days, so day 30 is 2 days after Feb 28, which is March 2, 2023.
  3. Final Answer:

    Excel treats day 30 in February as March 2 automatically -> Option A
  4. Quick Check:

    DATE(2023,2,30) = Mar 2, 2023 [OK]
Hint: DATE auto-adjusts days beyond month length [OK]
Common Mistakes:
  • Expecting error for invalid day
  • Thinking February has 30 days
  • Assuming wrong formula syntax
5. You want to calculate the date 45 days after January 20, 2024 by adding to the day parameter inside DATE. Which formula correctly does this?
hard
A. =DATE(2024, 1, 20 + 45)
B. =DATE(2024, 1 + 45, 20)
C. =DATE(2024, 1, 20) + 45
D. =DATE(2024, 1, 20) - 45

Solution

  1. Step 1: Understand how DATE handles day overflow

    Adding 45 to the day parameter in DATE will automatically adjust the month and year as needed.
  2. Step 2: Check each option

    =DATE(2024, 1, 20 + 45) adds 45 to day inside DATE, which works. =DATE(2024, 1 + 45, 20) adds 45 to month, which is incorrect. =DATE(2024, 1, 20) + 45 adds 45 to a date serial number, which works but is not using DATE construction. =DATE(2024, 1, 20) - 45 subtracts 45 days, which is wrong.
  3. Final Answer:

    =DATE(2024, 1, 20 + 45) -> Option A
  4. Quick Check:

    DATE(2024,1,65) = Mar 5, 2024 [OK]
Hint: Add days inside DATE day parameter to auto-adjust [OK]
Common Mistakes:
  • Adding days to month instead of day
  • Adding days outside DATE function
  • Subtracting days instead of adding
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard