Bird
Raised Fist0
Google Sheetsspreadsheet~10 mins

EDATE and EOMONTH in Google Sheets - Interactive Code Practice

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the formula to add 3 months to the date in cell A1 using EDATE.

Google Sheets
=EDATE(A1, [1])
Drag options to blanks, or click blank then click option'
A6
B1
C3
D-3
Attempts:
3 left
💡 Hint
Common Mistakes
Using a negative number to add months.
Using 1 instead of 3 for months.
2fill in blank
medium

Complete the formula to find the last day of the month 2 months after the date in B2 using EOMONTH.

Google Sheets
=EOMONTH(B2, [1])
Drag options to blanks, or click blank then click option'
A2
B1
C-2
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Using 0 which returns the last day of the current month.
Using a negative number which moves backward.
3fill in blank
hard

Fix the error in the formula to subtract 1 month from the date in C3 using EDATE.

Google Sheets
=EDATE(C3, [1])
Drag options to blanks, or click blank then click option'
A-1
B1
C0
D2
Attempts:
3 left
💡 Hint
Common Mistakes
Using positive 1 which adds a month instead of subtracting.
Using 0 which returns the same date.
4fill in blank
hard

Fill both blanks to create a formula that finds the last day of the month 4 months before the date in D4.

Google Sheets
=EOMONTH(D4, [1]) + [2]
Drag options to blanks, or click blank then click option'
A-4
B0
C1
D-1
Attempts:
3 left
💡 Hint
Common Mistakes
Adding 1 or -1 which changes the date incorrectly.
Using positive 4 which moves forward instead of backward.
5fill in blank
hard

Fill all three blanks to create a formula that adds 6 months to E5, then finds the last day of that month, and finally adds 2 days.

Google Sheets
=EOMONTH(EDATE(E5, [1]), [2]) + [3]
Drag options to blanks, or click blank then click option'
A6
B0
C2
D-6
Attempts:
3 left
💡 Hint
Common Mistakes
Using negative months in EDATE which subtracts instead of adds.
Using non-zero offset in EOMONTH which changes the month.
Adding wrong number of days.

Practice

(1/5)
1. What does the EDATE function do in Google Sheets?
easy
A. Returns a date a specified number of months before or after a start date
B. Returns the last day of the current month
C. Calculates the number of days between two dates
D. Returns the day of the week 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 start date.
  2. Step 2: Compare with other date functions

    Unlike functions that return days or weekdays, EDATE specifically works with months to find a new date.
  3. Final Answer:

    Returns a date a specified number of months before or after a start date -> Option A
  4. Quick Check:

    EDATE = date ± months [OK]
Hint: EDATE shifts dates by months, not days [OK]
Common Mistakes:
  • Confusing EDATE with DAY or WEEKDAY functions
  • Thinking EDATE returns end of month
  • Using EDATE to add days instead of months
2. Which of the following is the correct syntax for the EOMONTH function?
easy
A. EOMONTH(date, days)
B. EOMONTH(months, start_date)
C. EOMONTH(start_date, months)
D. EOMONTH(start_date)

Solution

  1. Step 1: Recall EOMONTH syntax

    EOMONTH requires two arguments: the start date and the number of months to move forward or backward.
  2. Step 2: Check argument order and count

    The first argument must be the start date, the second is the months offset. The other options have wrong order or missing arguments.
  3. Final Answer:

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

    EOMONTH(date, months) correct syntax [OK]
Hint: Start date first, months second in EOMONTH [OK]
Common Mistakes:
  • Swapping the order of arguments
  • Omitting the months argument
  • Using days instead of months
3. Given cell A1 contains the date 2024-01-15, what is the result of =EDATE(A1, 3)?
medium
A. 2024-04-30
B. 2024-04-15
C. 2024-03-31
D. 2024-01-18

Solution

  1. Step 1: Understand EDATE with positive months

    EDATE adds the number of months to the start date, keeping the day number if possible.
  2. Step 2: Calculate 3 months after January 15, 2024

    Adding 3 months to January 15, 2024 results in April 15, 2024.
  3. Final Answer:

    2024-04-15 -> Option B
  4. Quick Check:

    EDATE(2024-01-15, 3) = 2024-04-15 [OK]
Hint: EDATE keeps day, shifts month by given number [OK]
Common Mistakes:
  • Confusing EDATE with EOMONTH output
  • Adding days instead of months
  • Assuming end of month date
4. You wrote =EOMONTH(A1, 1) but it returns an error. Cell A1 contains the text "March 10, 2024" (not a date). What is the fix?
medium
A. Convert A1 to a valid date format before using EOMONTH
B. Change formula to =EOMONTH("March 10, 2024", 1)
C. Replace EOMONTH with EDATE
D. Use =EOMONTH(A1, "1") with months as text

Solution

  1. Step 1: Identify cause of error

    EOMONTH requires a valid date value, but A1 contains text, not a date.
  2. Step 2: Fix by converting text to date

    Convert or re-enter A1 as a proper date so EOMONTH can process it correctly.
  3. Final Answer:

    Convert A1 to a valid date format before using EOMONTH -> Option A
  4. Quick Check:

    EOMONTH needs date input, not text [OK]
Hint: Ensure date cells are real dates, not text [OK]
Common Mistakes:
  • Passing text strings instead of dates
  • Using quotes around month number
  • Switching to wrong function without fixing input
5. You want to find the last day of the month 2 months before the date in cell B2 (which is 2024-05-20). Which formula gives the correct result?
hard
A. =EDATE(B2, 2)
B. =EDATE(B2, -2)
C. =EOMONTH(B2, 2)
D. =EOMONTH(B2, -2)

Solution

  1. Step 1: Understand the requirement

    You want the last day of the month, 2 months before May 20, 2024.
  2. Step 2: Choose correct function and argument

    EOMONTH returns the last day of a month offset by months. Negative 2 moves back 2 months from May 2024 to March 2024.
  3. Step 3: Verify other options

    EDATE returns the same day number, not the last day. Positive 2 moves forward, not backward.
  4. Final Answer:

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

    EOMONTH with negative months finds past month end [OK]
Hint: Use EOMONTH with negative months for past month ends [OK]
Common Mistakes:
  • Using EDATE instead of EOMONTH for month-end
  • Using positive months to go backward
  • 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