31Intermediate

Excel date formula practice: EOMONTH, NETWORKDAYS and more

Excel stores dates as numbers, which is why you can subtract them. Practice working out shipping times, due dates, working days and monthly totals from a real shipping log.

11 exercises0/11
Start practicing →

Try it yourself

A live spreadsheet. Type a formula and press Enter to check it.

Exercise 1 of 11

How many days did order SO-1002 take to ship?

Write your formula in the green cell, G2.

shipping-log.xlsx
fx
1Order IDOrder dateShip dateAmount
2SO-1001Jan 5, 2026Jan 8, 2026$420.00Days
3SO-1002Jan 12, 2026Jan 20, 2026$1,180.00
4SO-1003Jan 27, 2026Feb 2, 2026$760.00
5SO-1004Feb 9, 2026Feb 10, 2026$2,350.00
6SO-1005Feb 16, 2026Feb 26, 2026$515.00
7SO-1006Mar 2, 2026Mar 5, 2026$1,990.00
8SO-1007Mar 23, 2026Apr 1, 2026$880.00
9
10

Click a cell to add it to your formula, drag to select a range, or click a column letter for the whole column.

All 11 dates & times exercises

  1. 1

    Days to ship

    Free

    How many days did order SO-1002 take to ship?

  2. 2

    Which month?

    Free

    Which month number was order SO-1004 placed in?

  3. 3

    Day of the week

    Premium

    On what day of the week was order SO-1004 placed? Return the day's name, like Friday.

  4. 4

    Invoice due date

    Premium

    Invoices are due on the last day of the month after the order. When is SO-1001 due?

  5. 5

    Add months

    Premium

    Order SO-1002 has a 3-month warranty that starts on its ship date. When does it end?

  6. 6

    Working days

    Premium

    How many working days (Monday to Friday) did SO-1005 take, counting both the order and ship dates?

  7. 7

    Calculate inside MAX

    Premium

    What was the longest shipping time of any order, in days? Use one formula.

  8. 8

    Total for one month

    Premium

    What was the total amount ordered in February 2026?

  9. 9

    Count dates in a month

    Premium

    How many orders shipped in January 2026?

  10. 10

    Whole months between dates

    Premium

    How many whole months passed between the order dates of SO-1001 and SO-1007?

  11. 11

    Which quarter?

    Premium

    Which quarter did order SO-1007 ship in? Return it like "Q1".

The dates & times functions, with examples

Every example runs on shipping-log.xlsx, the same sheet the exercises use, and the results are calculated from that data.

  • MONTH

    Returns the month of a date as a number from 1 to 12. YEAR and DAY work the same way.

    MONTH(serial_number)

    Example

    =MONTH(B2)returns1
  • EOMONTH

    Returns the last day of a month, a number of months before or after a date. 0 means the same month.

    EOMONTH(start_date, months)

    Example

    =EOMONTH(B2, 0)returnsJan 31, 2026
  • NETWORKDAYS

    Counts working days, Monday to Friday, between two dates, counting both the start and the end. You can add a list of holidays to skip.

    NETWORKDAYS(start_date, end_date, [holidays])

    Example

    =NETWORKDAYS(B3, C3)returns7
  • DATE

    Builds a date from a year, month and day. It handles overflow, so month 13 rolls into January of the next year.

    DATE(year, month, day)

    Example

    =DATE(YEAR(B2), MONTH(B2) + 1, 1)returnsFeb 1, 2026

Common mistakes

  1. 1

    Being surprised by a date that should be a number

    Excel stores dates as a count of days, so =C2-B2 gives the days between two dates. If the result shows up as a date like 1/3/1900, the cell just took a date format: change it to Number.

  2. 2

    Working with text that only looks like a date

    Imported dates often arrive as text, sitting on the left of the cell. They sort alphabetically, MAX and MIN skip them, and date conditions in SUMIFS don't match them. Convert them with DATEVALUE or Data → Text to Columns.

  3. 3

    Counting weekends in a deadline

    =C2-B2 counts every calendar day. For business days use NETWORKDAYS, or WORKDAY to add working days to a date. Remember that NETWORKDAYS includes both the start and end dates.