Bird
Raised Fist0
Excelspreadsheet~10 mins

EDATE and EOMONTH in Excel - Cell-by-Cell Formula Trace

Choose your learning style10 modes available
Sample Data

Dates in column A and month offsets in column B for EDATE and EOMONTH functions.

CellValue
A12024-01-15
A22024-03-10
B11
B2-2
Formula Trace
=EDATE(A1, B1)
Step 1: A1
Step 2: B1
Step 3: EDATE("2024-01-15", 1)
Cell Reference Map
2024-01-15
↓
2024-03-10
EDATE uses the date in A1 and the month offset in B1.
Result
    A           B           C
1 2024-01-15    1     2024-02-15
2 2024-03-10   -2
The formula =EDATE(A1, B1) in cell C1 returns 2024-02-15, which is one month after the date in A1.
Sheet Trace Quiz - 3 Questions
Test your understanding
What date does =EDATE(A1, B1) return if A1 is 2024-01-15 and B1 is 1?
A2024-01-31
B2024-02-15
C2024-03-15
D2024-01-01
Key Result
EDATE(date, months) returns the date shifted by months; EOMONTH(date, months) returns the last day of the month shifted by months.

Practice

(1/5)
1. What does the EDATE function do in Excel?
easy
A. Returns the last day of the current month.
B. Returns a date that is a specified number of months before or after a given date.
C. Calculates the number of days between two dates.
D. Returns the first day of the month for a given date.

Solution

  1. Step 1: Understand the purpose of EDATE

    The EDATE function is designed to add or subtract whole months from a given date.
  2. Step 2: Compare with other date functions

    Unlike functions that return the first or last day of a month, EDATE returns the same day number in the new month or the last day if that day doesn't exist.
  3. Final Answer:

    Returns a date that is a specified number of months before or after a given date. -> Option B
  4. Quick Check:

    EDATE adds/subtracts months = A [OK]
Hint: EDATE shifts months keeping the day number [OK]
Common Mistakes:
  • Confusing EDATE with EOMONTH
  • Thinking it returns the last day of the month
  • Assuming it calculates days difference
2. Which of the following is the correct syntax for the EOMONTH function?
easy
A. EOMONTH(start_date, months)
B. EOMONTH(months, start_date)
C. EOMONTH(date)
D. EOMONTH(start_date)

Solution

  1. Step 1: Recall EOMONTH syntax

    EOMONTH requires two arguments: the start date and the number of months to add or subtract.
  2. Step 2: Validate argument order

    The first argument must be the start date, followed by the months offset.
  3. Final Answer:

    EOMONTH(start_date, months) -> Option A
  4. Quick Check:

    Correct syntax = D [OK]
Hint: Start date first, months second in EOMONTH [OK]
Common Mistakes:
  • Swapping the order of arguments
  • Providing only one argument
  • Using invalid argument types
3. If cell A1 contains the date 2023-01-31, what will =EDATE(A1, 1) return?
medium
A. 2023-02-28
B. 2023-02-31
C. 2023-03-02
D. 2023-01-31

Solution

  1. Step 1: Understand EDATE behavior with end-of-month dates

    EDATE tries to keep the same day number. Since February 2023 has only 28 days, and 31 doesn't exist, it returns the last day of February, 2023-02-28.
  2. Step 2: Confirm the calculation

    One month after January 31, 2023, adjusted to last valid day in February.
  3. Final Answer:

    2023-02-28 -> Option A
  4. Quick Check:

    EDATE adjusts to last valid day = 2023-02-28 [OK]
Hint: EDATE returns last valid day if day number missing [OK]
Common Mistakes:
  • Expecting day 31 in February
  • Confusing EDATE with EOMONTH
  • Ignoring fewer days in February
4. You wrote =EOMONTH(A1) to get the last day of the month for the date in A1, but it shows an error. What is the problem?
medium
A. EOMONTH cannot be used with cell references.
B. A1 does not contain a valid date.
C. EOMONTH requires two arguments; months argument is missing.
D. The formula should be written as =EOMONTH(A1, 0) to get the current month's end.

Solution

  1. Step 1: Check EOMONTH function requirements

    EOMONTH needs two arguments: a start date and a number of months to add or subtract.
  2. Step 2: Identify missing argument

    The formula =EOMONTH(A1) only has one argument, so Excel returns an error.
  3. Final Answer:

    EOMONTH requires two arguments; months argument is missing. -> Option C
  4. Quick Check:

    Missing months argument causes error [OK]
Hint: EOMONTH always needs months argument [OK]
Common Mistakes:
  • Omitting the months argument
  • Assuming one argument works
  • Using invalid date formats in A1
5. You want to find the last day of the month three months after the date in cell B2, which contains 2024-11-10. Which formula gives the correct result?
hard
A. =EDATE(B2, 3)
B. =EDATE(B2, -3)
C. =EOMONTH(B2, -3)
D. =EOMONTH(B2, 3)

Solution

  1. Step 1: Understand the goal

    You want the last day of the month three months after November 10, 2024, which is 2025-02-29.
  2. Step 2: Choose the correct function

    EOMONTH returns the last day of the month after adding months. EDATE returns the same day number, 2025-02-10.
  3. Step 3: Calculate the date

    EDATE(B2, 3) returns 2025-02-10; EOMONTH(B2, 3) returns 2025-02-29.
  4. Final Answer:

    =EOMONTH(B2, 3) -> Option D
  5. Quick Check:

    Last day after 3 months = EOMONTH(B2, 3) [OK]
Hint: Use EOMONTH for last day after months added [OK]
Common Mistakes:
  • Using EDATE instead of EOMONTH
  • Using negative months when positive needed
  • Confusing last day with same day number
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