Date and Time Functions

Spreadsheets store every date as a day number and every time as a fraction of a day. This material shows how that works and how to use it: enter dates that are recognized, take dates apart with YEAR, MONTH, DAY and WEEKDAY, and number weeks in the US-style and ISO systems. You move dates by months with EDATE and EOMONTH, calculate ages and lengths of service, and count working days and find deadlines with NETWORKDAYS and WORKDAY, including holidays and custom weekends. You also calculate hours worked, overtime and pay from time sheets, and build weekly and monthly totals with date conditions.

IntermediateLesson 5 of 7 in Spreadsheet Formulas and Functions Course

What you will learn

  1. Explain why every date and time in a spreadsheet is a number, enter dates and times so they are recognized, and use the current date and time in formulas.
    • Treat dates as serial numbers
      Explain the serial number behind every date, enter dates the spreadsheet recognizes, and find the number of days between two dates.
    • Work with times as fractions of a day
      Read a time as a fraction of a day, build times and take them apart, and convert between time values, hours and minutes.
    • Use TODAY and NOW for the current date and time
      Insert the current date or date and time with TODAY and NOW, know when they update, and use them to count days until or since an event.
  2. Extract the year, month, day and weekday from a date, number the weeks of the year in the two common systems, and rebuild related dates from their parts.
    • Extract year, month and day and rebuild dates
      Pull the year, month and day out of a date with YEAR, MONTH and DAY, and combine them with DATE to build related dates such as the first of the month.
    • Find the day of the week with WEEKDAY
      Return the day of the week as a number with WEEKDAY, choose the right numbering, and use it to flag weekends and find the start of a week.
    • Number weeks with WEEKNUM and ISOWEEKNUM
      Number the weeks of the year in the US-style and ISO systems, explain why they differ around the new year, and label ISO weeks with the right year.
  3. Move dates by whole months, find the ends of months and quarters, and measure ages and lengths of service in completed years and months.
    • Move a date by whole months with EDATE
      Find the same day a number of months earlier or later with EDATE, and handle month ends and schedules correctly.
    • Find month and quarter ends with EOMONTH
      Return the last day of a month with EOMONTH, and use it for first days, days in a month, payment terms and quarter ends.
    • Calculate ages and lengths of service
      Measure ages, lengths of service and other elapsed periods in completed years, months and days with DATEDIF.
  4. Count the working days between two dates and find deadlines a number of working days away, with holiday lists and with weekends that match how people actually work.
    • Count working days with NETWORKDAYS
      Count the working days in a period with NETWORKDAYS, include a holiday list, and read the result correctly.
    • Find deadlines with WORKDAY
      Find the date a number of working days before or after a start date with WORKDAY, and avoid off-by-one errors.
    • Set custom weekends with NETWORKDAYS.INTL and WORKDAY.INTL
      Count and schedule working days for any weekend pattern, such as a Friday–Saturday weekend or a part-time week, with the .INTL functions.
  5. Calculate durations between times, including breaks and night shifts, and turn time sheets into decimal hours, overtime and pay.
    • Calculate durations between times
      Subtract times to get durations, show totals of more than 24 hours, and handle breaks and shifts that cross midnight.
    • Turn hours worked into pay and overtime
      Convert time sheets into decimal hours, apply rounding rules, split regular and overtime hours, and calculate pay.
  6. Group dated records into months, quarters and weeks, and total or count them per period with date criteria.
    • Group dates into months, quarters and weeks
      Add a helper column that gives each date its month, quarter or week, using keys that sort and calculate correctly.
    • Total and count by period with date criteria
      Total, count and average values for each month or week with SUMIFS and COUNTIFS on date ranges, and lay out a period summary table.

Date and Time Functions study guide

6 chapters

1

Understand how spreadsheets store dates and times

Dates and times look different on a sheet, but both are numbers underneath. Understanding those numbers makes it much easier to explain a strange result, choose a useful format, and convert a time into hours. You will work with day numbers and fractions, check whether an entry is a real date, and distinguish a changing current-date formula from a fixed record of an event.

1.1 Treat dates as serial numbers

A serial number is the day number stored behind a date. In Excel's usual 1900 system, January 1, 1900 is 1 and January 1, 2026 is 46023. A date format turns the number into a calendar display. The number is what formulas calculate with.

Check the value behind the display

October 28, 2026 has serial number 46323. Change its format to General and you see 46323; change it back to a date format and you see the date again. Neither action changes the value. A calculation returning 18 may appear as "1/18/1900" if its result cell has a date format. Give a day count a Number or General format.

A date-looking entry may also be text. =ISNUMBER(A2) is TRUE for a real spreadsheet date and FALSE for text. Default alignment can offer a clue, since numbers usually align right and text left, but a manually chosen alignment can hide that clue. Applying a date format to text does not convert it.

Calculate days

Put March 15, 2026 in A2 and April 2, 2026 in B2. =B2-A2 returns 18 elapsed days. =DAYS(B2,A2) does the same job; its end date comes first. Adding 30 to A2 moves 30 calendar days forward.

An inclusive count asks how many calendar dates are covered, including both ends. July 13 through July 24, 2026 covers =B2-A2+1, or 12 days. The extra 1 belongs to the counting rule, not to every date subtraction.

Enter dates without mixing up month and day

Use =DATE(2026,10,28) inside a formula. The arguments identify the year, month, and day explicitly. Use four-digit years: =DATE(26,10,28) means October 28, 1926 in Excel.

Typed dates depend on regional settings. The text "03/04/2026" can mean March 4 or April 3. DATEVALUE converts text that the spreadsheet recognizes: =DATEVALUE("2026-10-28") returns 46323 when that text is recognized. ISO year-month-day order is the clearest text order, but DATE avoids text interpretation entirely. Some regional settings require semicolons between arguments or localized Excel function names.

Recognize a date-system mismatch

Excel's older 1904 system assigns the same date a serial number 1,462 lower. Excel normally converts pasted dates between systems. If conversion is disabled, or dates move without it, dates shift by four years and one day. A copied chart can expose this problem.

Google Sheets counts from December 30, 1899. Its serials match Excel's from March 1, 1900 onward. Excel preserves a historical compatibility error: serial 60 represents the nonexistent February 29, 1900. Its standard 1900 system supports January 1, 1900 through December 31, 9999; earlier typed dates remain text. Google Sheets also supports dates before 1900; dates before its December 30, 1899 starting point have negative serials.

Key Takeaways

  • A date format changes how a serial number looks, not the number itself.
  • Use DATE with a four-digit year for fixed dates in formulas.
  • Subtract dates for elapsed days; add 1 when both endpoints count.
  • Check text dates with ISNUMBER before relying on date calculations.
  • Dates moved between date systems need conversion to preserve their meaning.

1.2 Work with times as fractions of a day

A clock time is stored as a fraction of a day. One day is 1, so 6:00 AM is 0.25, noon is 0.5, and 6:00 PM is 0.75. This makes subtraction and conversion possible without a separate kind of arithmetic.

Read a date and time together

October 28, 2026 at 6:00 PM is 46323.75: 46323 identifies the day, and 0.75 identifies the time within it. For a modern date-time in A2, =INT(A2) gives the date alone. =MOD(A2,1) gives the time fraction alone. Format each result for the part it represents.

Typing "8:30" enters 8:30 AM, stored as about 0.354167. "8:30 PM" and "20:30" both enter about 0.854167. The formats h:mm AM/PM and hh:mm display that same evening value differently. Changing from a 12-hour display to a 24-hour display does not add 12 hours.

Build and inspect a clock time

TIME(hour,minute,second) combines three numbers. =TIME(8,30,0) builds 8:30 AM. HOUR, MINUTE, and SECOND reverse that process: for 8:47:30 AM, they return 8, 47, and 30.

These functions describe the clock within one day. =TIME(25,0,0) rolls past midnight and returns 1:00 AM. It does not store 25 elapsed hours. For a 25-hour duration, enter =25/24 or type "25:00" and display it with [h]:mm. Likewise, HOUR applied to 26:30 returns 2, the hour after the complete day has been removed.

Convert the unit before using the result

A day has 24 hours and 1,440 minutes. Use these relationships:

ConversionFormula
Time value to total hours=A2*24
Time value to total minutes=A2*1440
Decimal hours to a time value=A2/24
Minutes to a time value=A2/1440

For 7:45, the minute part is 45/60 of an hour, so the total is 7.75 hours. The stored time value is 7.75/24. Multiplying it by 24 returns 7.75. Conversely, =90/1440 produces a time value that displays as 1:30.

Give decimal hours a Number or General format. If 7.75 is formatted as an ordinary clock time, the spreadsheet treats it as 7.75 days and displays the remaining 0.75 day as "18:00". The conversion can be correct while the display is misleading.

Keep decimal hours separate from minutes

The entry "7.30" is the number 7.3. In a decimal-hours column it means 7 hours plus 0.3 of an hour, or 18 minutes. Seven and a half hours is 7.5 in decimal hours or 7:30 as a time value. Label the columns "Duration" and "Decimal hours" so the expected entry is clear.

Key Takeaways

  • Clock times are fractions of a 24-hour day.
  • Multiply a time value by 24 for hours or 1440 for minutes.
  • TIME and HOUR describe a clock within one day, not total elapsed hours.
  • Format decimal hours as numbers; use [h]:mm for long durations.

1.3 Use TODAY and NOW for the current date and time

TODAY() returns the current date as a whole day number. NOW() returns the current date and time, including the fraction of the day. Both have empty parentheses because they take no arguments.

Understand when the value changes

These functions are volatile: their results update when the spreadsheet recalculates. They do not run as a continuously ticking clock. Excel normally recalculates when a workbook opens or relevant changes occur; manual calculation settings can delay an update. In Google Sheets, File > Settings > Calculation controls how formulas recalculate.

For a report, put the chosen date in one labeled cell. That cell can contain =TODAY() for a live report or a fixed date for a saved reporting day. Refer to it in the rest of the sheet. Changing one report-date cell then lets you check the whole report against another day.

Count down to a date

With a due date in C2, =C2-TODAY() returns calendar days remaining. On October 28, 2026, the result for December 31, 2026 is 64. A negative result means the due date has passed. Reverse the subtraction for days since a starting date: =TODAY()-B2. Display both as numbers.

An overdue flag can use =IF(TODAY()>C2,"Overdue","Open"). The strict greater-than sign means the date in C2 remains open all through its due day. If you need a count that stops at zero for future dates, use =MAX(0,TODAY()-C2).

Match the comparison to the deadline

A plain due date represents midnight at the beginning of that date. At 3:00 PM on the due day, =NOW()>C2 is already TRUE. For a rule that allows the whole due day, compare TODAY() with the plain date. For a deadline that specifies an exact time, retain the time in the deadline value and compare it with NOW().

The time alone is =NOW()-TODAY() or =MOD(NOW(),1). Apply a time format to the result. A date-only display on a cell containing NOW() hides the time fraction but does not remove it from comparisons.

Record an event with a fixed value

A received-date column must keep the date each item arrived. Filling it with =TODAY() makes old rows change to the new current date after recalculation. Enter a fixed date or paste a calculated result as a value to preserve the event.

Excel shortcuts enter fixed values. On Windows, Ctrl+; inserts the current date and Ctrl+Shift+; inserts the current time. On a Mac, Ctrl+; inserts the date and Command+; inserts the time. A fixed entry stays fixed when the workbook recalculates, while a current-date formula stays live.

Key Takeaways

  • TODAY() gives the current date; NOW() includes the time.
  • Both update on recalculation, so they cannot preserve an event timestamp.
  • Use TODAY() for a whole-day due date and NOW() for a timed deadline.
  • A single report-date cell makes date-based reports easier to test.
2

Take dates apart and build new ones

A date can supply several useful pieces of information: a year, a month, a day number, a weekday, and a reporting week. Each answers a different question. You will extract those parts, build related dates, and choose the numbering rules that make the results meaningful. Week numbers need particular care around New Year, when an ISO week can belong to a different year from the date itself.

2.1 Extract year, month and day and rebuild dates

YEAR, MONTH, and DAY take a date apart into ordinary numbers. For October 28, 2026, they return 2026, 10, and 28. Any time attached to the date is ignored. You can inspect these parts or pass them to DATE to build a related date.

Extract a part and format it as a number

With the date in A2, enter =YEAR(A2), =MONTH(A2), or =DAY(A2). The output is no longer a full date. A result such as 2026 needs General or Number formatting; a date format would display serial 2026 as July 18, 1905.

To rebuild the first day of the same month, keep the year and month but replace the day: =DATE(YEAR(A2),MONTH(A2),1). For the October date, the result is October 1, 2026. Replacing the year with YEAR(A2)+1 builds the corresponding date in the following year, subject to DATE's rollover rules.

Learn what DATE does with overflow

DATE accepts month and day numbers outside their usual range and carries them into neighboring months or years. =DATE(2026,14,1) becomes February 1, 2027. Day 0 means the day before the first: =DATE(2026,3,0) becomes February 28, 2026.

This feature is useful for boundaries, but it changes a naive month-shift formula. =DATE(2026,2,31) asks for the 31st day starting in February. Since February has only 28 days, the result is March 3, 2026. To move January 31 forward one month and keep the result in February, use EDATE, which returns February 28.

Build reporting parts

A calendar quarter contains three months. =ROUNDUP(MONTH(A2)/3,0) returns 1 through 4: August gives 3 and October gives 4. Dividing the month by 3 identifies the quarter boundary, and rounding up assigns intermediate months to that quarter.

For a fiscal year beginning July 1 and named for its ending year, use =YEAR(EDATE(A2,6)). Moving August 14, 2026 forward six months places it in 2027, the fiscal-year label. The six-month shift reflects this particular July-start rule.

MONTH(A2) alone cannot distinguish October 2025 from October 2026. Both are 10. A date key such as the first of the month keeps the year available for sorting and grouping.

Choose a label or a date value

=TEXT(A2,"mmmm") returns "October", "mmm" returns "Oct", and "yyyy-mm" returns "2026-10". TEXT produces a label, not a date serial. Keep the original date or a date key for later arithmetic; use a custom number format to change its appearance while retaining its value. Format codes follow the spreadsheet's language settings.

For a date-time, equality with a plain date succeeds only at midnight. =INT(A2)=DATE(2026,10,28) tests the calendar day while ignoring the time. Simply hiding the time with a date format leaves it in the comparison.

Key Takeaways

  • YEAR, MONTH, and DAY return numbers, so format their results as numbers.
  • DATE can rebuild a date from selected parts.
  • Out-of-range DATE arguments roll into neighboring months or years.
  • Keep both year and month when grouping records from several years.
  • TEXT creates labels; number formats preserve date values.
  • Use INT to compare the date part of a modern date-time.

2.2 Find the day of the week with WEEKDAY

WEEKDAY returns a number for the day of the week. The number has meaning only alongside its return type, which defines where the week starts and whether the numbering begins at 0 or 1.

Choose the numbering before interpreting it
Return typeMondaySundayNumbering
Omitted or 121Sunday 1 through Saturday 7
217Monday 1 through Sunday 7
306Monday 0 through Sunday 6

For Wednesday, October 28, 2026, =WEEKDAY(A2) returns 4. =WEEKDAY(A2,2) returns 3, and =WEEKDAY(A2,3) returns 2. These are three valid descriptions of the same date.

Types 11 through 17 also number days 1 through 7. Type 11 starts on Monday, type 12 on Tuesday, and the sequence continues through type 17, which starts on Sunday. An explicit return type makes the intended calendar easier to read in a formula.

Flag a Saturday–Sunday weekend

With Monday-first type 2, Saturday is 6 and Sunday is 7. The test =WEEKDAY(A2,2)>5 is TRUE on those two days. Removing the return type changes the rule: default numbering makes Friday 6, Saturday 7, and Sunday 1. The same greater-than test would then flag Friday and Saturday and miss Sunday.

For a name instead of a number, =TEXT(A2,"dddd") returns "Wednesday" and "ddd" returns "Wed". Applying the custom format dddd to the original date also displays the name, while preserving the date serial for calculations.

Find the start of a week

For Monday-first weeks, =INT(A2)-WEEKDAY(A2,2)+1 finds the Monday on or before A2. Wednesday has number 3, so subtracting 3 reaches Sunday and adding 1 reaches Monday. October 28, 2026 therefore maps to October 26.

For Sunday-first weeks, use =INT(A2)-WEEKDAY(A2)+1. The result for that Wednesday is October 25. INT removes any time before the subtraction; otherwise a Wednesday afternoon would map to a Monday afternoon, not the plain Monday date used as a grouping key.

Find the next named weekday

=A2+MOD(5-WEEKDAY(A2,2),7) finds Friday on or after a plain date. Friday is 5 in type 2. MOD turns the gap into a number from 0 through 6, so the formula stays on Friday when A2 is already Friday and moves forward six days when A2 is Saturday.

From October 28, 2026 it reaches October 30. From October 31 it reaches November 6. Replace 5 with another Monday-first weekday number to change the target. WEEKDAY helps describe or align a single date; NETWORKDAYS and WORKDAY handle counting or skipping working days over a period.

Key Takeaways

  • Read the return type before interpreting a WEEKDAY result.
  • WEEKDAY(A2,2)>5 identifies Saturday and Sunday.
  • A week-start formula subtracts the weekday offset from the plain date.
  • MOD can find the next occurrence of a weekday, including today.

2.3 Number weeks with WEEKNUM and ISOWEEKNUM

A week number depends on two choices: the first day of the week and the rule for week 1. Choosing Monday as the first day does not by itself create ISO weeks. A reporting key must follow both rules consistently.

Compare the two main systems
SystemFirst dayWeek 1
Default WEEKNUMSundayThe week containing January 1
WEEKNUM(A2,2)MondayThe week containing January 1
ISOWEEKNUM(A2)MondayThe week containing the first Thursday

ISO week 1 is also the week containing January 4. =WEEKNUM(A2,21) gives the ISO number too. WEEKNUM return types 2 and 11 through 16 change the starting weekday but retain the January 1 rule.

Under default WEEKNUM, Friday and Saturday, January 1–2, 2027 are week 1. Sunday, January 3 begins week 2. The first week can therefore be only part of a seven-day week within the calendar year.

Follow a week across New Year

ISO weeks always contain seven days. Friday, January 1, 2027 belongs to ISO week 53 of 2026 because its week's Thursday is December 31, 2026. Monday, December 29, 2025 belongs to ISO week 1 of 2026 because its Thursday is January 1, 2026.

The default WEEKNUM results for those dates are 1 and 53. In the middle of a year the systems may also disagree: June 15, 2027 gives default week 25 and ISO week 24. October 28, 2026 happens to give 44 in both systems. Agreement on one test date does not establish that two formulas use the same rule.

Put the ISO year in the key

ISOWEEKNUM returns only the week number. Pairing it with the ordinary calendar year can split one week into two groups around New Year. Find the ISO year from the Thursday of the same week:

=YEAR(A2-WEEKDAY(A2,2)+4)

Subtracting the Monday-first weekday number and adding 4 lands on Thursday. For January 1, 2027, YEAR of that Thursday is 2026. A complete label is:

=YEAR(A2-WEEKDAY(A2,2)+4)&"-W"&TEXT(ISOWEEKNUM(A2),"00")

It returns "2026-W53". The two-digit format keeps week 2 as "02", which lets year-week labels sort in time order. YEAR(A2) would create "2027-W53" for January 1, an incorrect label for that date.

Know when a year has an extra week

An ISO year has 52 or 53 weeks. It has 53 if January 1 is Thursday, or if it is a leap year beginning on Wednesday. The year 2026 begins on Thursday and has 53 ISO weeks. Default WEEKNUM always reaches 53 and can reach 54 in a leap year beginning on Saturday; December 31, 2028 is an example. Keep the week rule with the report's labels so a number such as 53 is interpreted correctly.

Key Takeaways

  • Default WEEKNUM uses Sunday starts and the week containing January 1.
  • ISO weeks start Monday; week 1 contains the first Thursday.
  • WEEKNUM(A2,2) is Monday-first but does not use the ISO week-1 rule.
  • Label ISO weeks with the ISO year, found from the week’s Thursday.
  • Pad week numbers to two digits in sortable text keys.
3

Calculate with months, years and ages

Calendar rules often name months or completed years instead of a fixed number of days. A renewal on the same day next month, a month-end payment, and an age on a reference date need different calculations. You will choose between month shifts, month ends, and completed periods, then handle short months and birthdays without losing the meaning of the original rule.

3.1 Move a date by whole months with EDATE

EDATE(start_date,months) moves a date by whole calendar months. Positive months move forward and negative months move backward. It keeps the original day number when that day exists in the target month.

Move by months, not a fixed day count

From May 15, 2026, =EDATE(A2,6) returns November 15, 2026. From the same starting date, =EDATE(A2,-3) returns February 15. The returned value is a serial number, so give it a date format.

Months do not all have the same length. From January 31, 2026, adding 30 days gives March 2. Moving one month with EDATE gives February 28. A rule saying "30 days after the invoice" needs addition; "one month after the invoice" needs a calendar-month shift.

Handle a day that the target month lacks

If the target month has no matching day, EDATE returns its last day. January 31 plus one month becomes February 28 in 2026 and February 29 in 2028. March 31 plus one month becomes April 30. August 31, 2026 minus six months becomes February 28.

A year is 12 months, so five years after A2 is =EDATE(A2,60). Moving February 29, 2028 forward 12 months gives February 28, 2029.

EDATE truncates fractional month arguments. =EDATE(A2,2.9) moves two months, not nearly three. Enter a whole number of months when building a schedule so the intended interval is visible.

Anchor every date in a repeating schedule

Suppose a subscription starts January 31, 2026. The first monthly date is February 28. If the next formula moves that February result one month forward, it returns March 28. The original 31st has been lost.

Keep the original date in A2. Put month offsets 1, 2, 3, and so on in B5 downward, and enter =EDATE($A$2,B5) next to B5. Copy the formula down. The locked start stays January 31, while each row supplies its own offset. The dates become February 28, March 31, and April 30.

For a schedule specifically requiring the last day of every month, EOMONTH expresses the rule more directly. EDATE preserves a day number when possible; it does not turn every starting date into a permanent month-end rule.

Match the endpoint wording

A six-month contract beginning May 15, 2026 and ending the day before its six-month anniversary uses =EDATE(A2,6)-1, giving November 14. A renewal occurring on that anniversary uses EDATE without subtracting 1. Write the timing rule next to the input cells before choosing the adjustment.

Key Takeaways

  • EDATE moves by calendar months and preserves the day number when possible.
  • A missing target day becomes the target month’s last day.
  • Use the original date plus each offset to prevent schedule drift.
  • Choose day addition or EDATE from the deadline’s stated unit.

3.2 Find month and quarter ends with EOMONTH

EOMONTH(start_date,months) returns the last day of the selected month. The months argument chooses the month relative to the starting date. It does not preserve the starting day number.

Locate a month boundary

With February 10, 2026 in A2, =EOMONTH(A2,0) returns February 28. An offset of 1 returns March 31, and −1 returns January 31. The result needs a date format. Fractional offsets are truncated, just as they are in EDATE.

The first day of a month is one day after the previous month's end. =EOMONTH(A2,-1)+1 returns February 1 for any date in February. =EOMONTH(A2,0)+1 returns March 1. To find the number of days in the original month, use =DAY(EOMONTH(A2,0)): February gives 28 in 2026 and 29 in 2028.

Translate payment terms carefully

An April 12, 2026 invoice can have three different due dates:

WordingFormulaResult
"30 days after the invoice"=A2+30May 12
"30 days after month end"=EOMONTH(A2,0)+30May 30
"End of the following month"=EOMONTH(A2,1)May 31

The first calculation starts from the invoice date. The second first moves to April 30 and then adds days. The third moves to the last day of May. A month offset and a day offset are different operations even when two results happen to be close.

Find a calendar quarter's final date

For August 14, 2026, MONTH returns 8. Dividing by 3 and rounding up gives quarter 3. Multiplying that quarter by 3 gives 9, the final month of the quarter. Build a date in September and move to its end:

=EOMONTH(DATE(YEAR(A2),ROUNDUP(MONTH(A2)/3,0)*3,1),0)

The result is September 30, 2026. The same pattern handles all four calendar quarters without a table of different month lengths.

A month-end schedule also stays simple. From January 31, 2026, offsets 0, 1, 2, and 3 in EOMONTH give January 31, February 28, March 31, and April 30. Starting on January 30 produces those same month ends. EDATE would instead try to keep the 30th.

Include timestamps on the final day

EOMONTH returns midnight at the start of the last day. October 31, 2026 at 2:00 PM is later than the plain October 31 date. A condition testing whether that timestamp is less than or equal to the month end misses it.

Use the first instant of next month as an exclusive upper boundary: "<"&EOMONTH(A2,0)+1. Combine it with an inclusive lower boundary at the first of the current month. Every time on the final day then fits, and midnight at the start of the following month does not.

Key Takeaways

  • EOMONTH returns a month’s last day; offset 0 means the current month.
  • Add 1 to a month end to reach the next month’s first day.
  • Payment terms determine whether to add days or move to a month end.
  • Quarter ends come from the quarter’s final month.
  • For timestamps, use an exclusive boundary at the next month’s start.

3.3 Calculate ages and lengths of service

An age counts completed years, not just the difference between two year numbers. DATEDIF(start_date,end_date,unit) measures completed periods between two dates. The unit is text in straight quotation marks.

Choose the period you need
UnitResult
"Y"Complete years
"M"Complete months in total
"D"Days between the dates
"YM"Months remaining after complete years
"YD"Days remaining after complete years

The start must not be later than the end; reversed dates return #NUM!. For a simple number of days, subtraction or DAYS is sufficient. DATEDIF also works in Google Sheets; Excel retains it for compatibility with older workbooks.

Calculate an age on a chosen date

Put August 20, 1990 in B2 and October 28, 2026 in C2. =DATEDIF(B2,C2,"Y") returns 36. Using "YM" returns 2 months, while "M" returns 434 total completed months. The total months contain all the completed years as well as the extra months.

For someone born November 5, 1990, the same reference date gives 35 complete years. The birthday is still ahead. =YEAR(C2)-YEAR(B2) would return 36 because it never checks the month and day.

Dividing elapsed days by 365 is also unreliable for completed ages because leap days affect the quotient. Someone born October 30, 2000 is still 25 on October 28, 2026 even though the elapsed-days quotient is about 26.01. DATEDIF with "Y" counts complete years.

Show service as years and months

For a hire date of June 15, 2021 and the reference date October 28, 2026, use:

=DATEDIF(B2,C2,"Y")&" years, "&DATEDIF(B2,C2,"YM")&" months"

The label is "5 years, 4 months". Use YM for the second part; M would repeat the months already represented by the five years. To calculate an age at a season's fixed cutoff, put that cutoff in C2 or use a fixed DATE, such as DATE(2026,12,31), instead of TODAY.

Find leftover days without MD

The "MD" unit can return inaccurate results, so calculate the remaining days from the completed-month anniversary:

=C2-EDATE(B2,DATEDIF(B2,C2,"M"))

From August 20, 1990 to October 28, 2026, the complete-month count reaches October 20. Subtracting that from October 28 leaves 8 days. The full label is 36 years, 2 months, and 8 days.

For an age-threshold test, compare the anniversary with the reference date: =EDATE(B2,12*18)<=C2. It becomes TRUE on the 18th anniversary. A birth date of November 5, 2008 gives FALSE on October 28, 2026 because the November anniversary has not arrived.

Key Takeaways

  • Use DATEDIF with "Y" for completed years.
  • "M" counts all completed months; "YM" counts months after complete years.
  • Year subtraction ignores birthdays, and dividing by 365 drifts with leap days.
  • Use a fixed reference date when the age rule has a fixed cutoff.
  • Find leftover days by subtracting the completed-month anniversary instead of using MD.
  • Compare an age anniversary with the reference date to test an age threshold.
4

Count and schedule working days

A working-day calculation needs a calendar of the days people actually work. Counting available days and finding a deadline are related tasks, but they treat the starting date differently. You will use holiday lists, move forward and backward through a schedule, and adapt the weekend pattern for teams whose working week differs from Monday through Friday.

4.1 Count working days with NETWORKDAYS

NETWORKDAYS(start_date,end_date,[holidays]) counts working days in a period. Its ordinary weekend is Saturday and Sunday. It includes both endpoints when they are working days and excludes listed holidays that would otherwise count.

Count a period with both ends included

From Monday, November 2 through Friday, November 27, 2026 there are four complete Monday-to-Friday blocks: 20 working days. If Thursday, November 26 is a company holiday in H2:H12, =NETWORKDAYS(A2,B2,$H$2:$H$12) returns 19.

From Monday through Friday in the same week, the function returns 5. With the same working day as both start and end, it returns 1. That differs from ordinary subtraction, which measures the gap between dates. July 13 through July 24, 2026 covers 12 calendar dates but 10 working days with no holidays.

Maintain a usable holiday list

Enter each holiday as a real date in its own cell. Use a locked range such as $H$2:$H$12 when copying formulas, or define a named range called Holidays. A relative holiday range would slide down as each formula is copied, possibly dropping a relevant holiday from the calculation.

Use the holiday calendar that applies to the organization. A listed Saturday or Sunday does not remove another working day: it was already excluded as a weekend. November 2 through November 30, 2026 has 21 working days, and adding Saturday, November 28 to the holiday list leaves the result at 21.

Decide whether today belongs in the count

For a deadline later than today in C2, =NETWORKDAYS(TODAY(),C2,Holidays) includes today if it is a working day. If the rule asks for working days after today, begin tomorrow: =NETWORKDAYS(TODAY()+1,C2,Holidays).

Subtracting 1 from the first result is not a safe replacement. On a Saturday, today contributed nothing to the first count. Subtracting 1 would then remove an actual future working day. Changing the starting date expresses the intended rule whether today is working or nonworking.

Diagnose unexpected results

A negative result means the start lies after the end. Reversing the November example with the November 26 holiday returns −19. Check the input order before interpreting that as available time.

#VALUE! often points to a date stored as unrecognized text. Check the inputs with ISNUMBER and create fixed dates with DATE. A number such as 19 displayed as a January 1900 date is a formatting problem; a working-day count needs a Number or General format.

NETWORKDAYS answers "How many working days are in this interval?" It returns a count. To answer "What date is five working days after receipt?", use WORKDAY, which returns a date and starts counting after receipt.

Key Takeaways

  • NETWORKDAYS includes both endpoints when they are working days.
  • Keep holidays as real dates in a fixed or named range.
  • A weekend holiday is not deducted twice.
  • To exclude today, begin at TODAY()+1 for a later deadline.
  • NETWORKDAYS returns a count; WORKDAY returns a date.

4.2 Find deadlines with WORKDAY

WORKDAY(start_date,days,[holidays]) finds a date a stated number of working days away. Positive days move forward, negative days move backward. Saturday, Sunday, and listed holidays are skipped, and the start date itself is not counted.

Step forward through a deadline

Start on Friday, October 30, 2026. With no holidays, the five counted days are Monday, November 2 through Friday, November 6. =WORKDAY(A2,5) returns November 6. Apply a date format so the result reads as a deadline.

If Monday, November 2 is a holiday, the first counted day is Tuesday, November 3. Day five is now Monday, November 9. =WORKDAY(A2,5,Holidays) makes that adjustment from the holiday list.

The wording "five working days after receipt" matches WORKDAY directly. NETWORKDAYS from October 30 to November 6 returns 6 because it includes the receipt Friday as well as the following five workdays. Substituting a count function for a scheduling function creates an off-by-one error.

Work backward from a due date

A report is due Friday, December 18, 2026 and needs 10 working days of preparation before that date. =WORKDAY(C2,-10) returns Friday, December 4. If Tuesday, December 8 is a holiday, the backward count skips it and reaches Thursday, December 3.

Negative days are useful for "send a reminder three working days before" and "begin preparation ten working days before" rules. Keep the due date in its own input cell so revised deadlines flow into the preparation dates.

Move to a valid date on or after a target

A weekend start is allowed. One working day after Saturday, October 31, 2026 is Monday, November 2. But =WORKDAY(A2,1) always asks for a working day after A2; it also moves a valid weekday forward.

To keep A2 when it is already a working day and move it forward only when needed, use =WORKDAY(A2-1,1,Holidays). Beginning one day earlier allows A2 to be counted as the first eligible day.

A combined invoice rule says, "Due 30 calendar days after the invoice, moved to the next working day if necessary." First form the target A2+30, then apply the on-or-after pattern:

=WORKDAY(A2+30-1,1,Holidays)

For an October 1, 2026 invoice with no holidays, day 30 is Saturday, October 31. The adjusted date is Monday, November 2. Adding 30 working days would be a different rule and a much later deadline.

Check the input unit

WORKDAY counts whole days and truncates a fractional days argument. A value of 5.8 means five working days, not five days and part of a shift. Invalid date arguments can return #VALUE!; a result outside the supported date range returns #NUM!. Store the dates and the number of working days in separately labeled cells.

Key Takeaways

  • WORKDAY excludes the start date and skips weekends and holidays.
  • Negative days schedule backward from a deadline.
  • WORKDAY(A2-1,1,Holidays) finds a working day on or after A2.
  • Calculate calendar-day targets before applying a working-day adjustment.

4.3 Set custom weekends with NETWORKDAYS.INTL and WORKDAY.INTL

Not every team has Saturday and Sunday off. NETWORKDAYS.INTL and WORKDAY.INTL let you specify a repeating weekly pattern of nonworking days. They retain the ordinary functions' endpoint rules and accept a holiday list after the weekend argument.

Place the weekend argument correctly

The counting form is NETWORKDAYS.INTL(start_date,end_date,[weekend],[holidays]). The scheduling form is WORKDAY.INTL(start_date,days,[weekend],[holidays]). Omit the weekend argument for Saturday–Sunday. Use a code or a seven-character text string to choose another pattern.

CodeDays off
1Saturday–Sunday
2Sunday–Monday
3Monday–Tuesday
4Tuesday–Wednesday
5Wednesday–Thursday
6Thursday–Friday
7Friday–Saturday

For one day off, 11 means Sunday only, 12 Monday only, and the sequence continues through 17 for Saturday only. The code is a calendar choice, not the number of days off.

Describe a part-time week with a string

A weekend string has seven positions, starting with Monday. A 1 means a day off and a 0 means a working day. "0000011" means Saturday–Sunday off. "0000110" means Friday–Saturday off, leaving Sunday as a working day.

For someone working Monday, Tuesday, Thursday, and Friday, the string is "0010011": Wednesday, Saturday, and Sunday are off. In November 2026 this gives 17 working days before any holidays are removed. The pattern repeats every week; individual extra closure dates belong in the holiday list.

Keep the string in quotation marks or in a text cell. Entering 0000011 as a number turns it into 11, which the function reads as the Sunday-only code. Check the direction of the bits too: reversing 0 and 1 reverses which days are eligible.

See how a changed weekend changes the answer

November 2026 has 21 working days under Saturday–Sunday weekends. With Friday–Saturday weekends, =NETWORKDAYS.INTL(DATE(2026,11,1),DATE(2026,11,30),7) returns 22. With Sunday as the only day off, code 11 gives 25. The same endpoints can produce different valid counts because the working calendars differ.

For a Friday–Saturday weekend, =WORKDAY.INTL(DATE(2026,11,5),3,7) starts after Thursday, November 5. It skips Friday and Saturday, then counts Sunday, Monday, and Tuesday. The result is Tuesday, November 10.

Check a pattern before copying it

A string must contain exactly seven 0s and 1s. A wrong length or another character returns #VALUE!. "1111111" excludes every day, so NETWORKDAYS.INTL returns 0. Test a short interval against the team's calendar, then lock the weekend input and holiday range when copying formulas. This catches a reversed pattern before it affects a long schedule.

Key Takeaways

  • The .INTL functions accept a weekend code or seven-character text pattern.
  • Weekend strings run Monday through Sunday; 1 means off and 0 means working.
  • Keep strings as text so leading zeros survive.
  • Holiday dates are a separate input after the weekend pattern.
  • The same date range can have different working-day counts under different calendars.
5

Calculate time differences and hours worked

Time sheets combine clock readings, elapsed durations, and decimal hours. Keeping these quantities clear lets you handle breaks, overnight work, and totals that exceed a day. You will calculate the time first, convert it to hours for pay, and apply stated overtime and rounding rules through labeled inputs. The examples use currency-neutral rates and explicit example pay rules.

5.1 Calculate durations between times

A duration measures elapsed time. Subtract the start from the end to get it. The spreadsheet stores the result in days, even when a time format displays hours and minutes.

Subtract a same-day shift and its break

With 8:30 AM in B2 and 5:15 PM in C2, =C2-B2 gives 8:45, stored as about 0.364583 day. A 45-minute break entered as 0:45 in D2 gives =C2-B2-D2, or 8:00. Enter the break in the same time-value form as the shift duration.

For an interval from 9:40 AM to 11:05 AM, =(C2-B2)*1440 returns 85 minutes. Multiplying by 24 instead gives total decimal hours. A result formatted as Number is easier to interpret after either conversion.

Display every hour in a long total

Five durations of 8:45 total 43:45. An ordinary h:mm format displays 19:45 because it shows the clock after complete days are removed. The format [h]:mm displays all 43 hours and 45 minutes. Its square brackets are part of the time-format code.

The display format does not repair an incorrect calculation. Check the underlying value first, then choose [h]:mm for elapsed totals or Number for decimal hours. A 43:45 total is 43.75 hours, not 43.45.

Handle a shift that crosses midnight

A time-only end of 6:30 AM is numerically smaller than a time-only start of 10:00 PM. Plain subtraction gives a negative fraction. In Excel's standard date system, a negative time often appears as a row of hash marks.

For a shift known to last less than 24 hours, =MOD(C2-B2,1) wraps a negative difference into the next day and gives 8:30. =IF(C2<B2,C2+1-B2,C2-B2) makes the same adjustment explicitly. Subtract any break after that shift calculation.

These formulas cannot distinguish a zero-length interval from one lasting a whole day when the clock readings match. They also discard complete days from longer intervals. Record dates as well as times when the duration can reach 24 hours.

Use complete date-times for longer intervals

A start of October 28, 2026 at 10:00 PM and end of October 29 at 6:30 AM subtract correctly without MOD. The end's whole-day number is one larger, so it already carries the midnight crossing.

A support ticket opened October 26, 2026 at 9:15 AM and closed October 28 at 2:45 PM lasts 53:30. Subtract the complete date-times and display [h]:mm, or multiply the difference by 24 to get 53.5 hours.

Do not use HOUR to retrieve the total from this duration: it returns 5, the clock-hour remainder. =TEXT(A2,"h:mm") similarly gives "5:30", while =TEXT(A2,"[h]:mm") gives "53:30" as a text label. For further calculation, keep the numeric duration and change its number format instead of converting it to text.

Key Takeaways

  • Subtract start from end, then subtract breaks as time values.
  • Use [h]:mm to display elapsed totals over 24 hours.
  • MOD handles an overnight time-only shift when it lasts less than 24 hours.
  • Complete date-times preserve midnight crossings and full days.
  • Multiply durations by 24 or 1440 for total hours or minutes.
  • HOUR reads the clock-hour remainder, not a duration’s total hours.

5.2 Turn hours worked into pay and overtime

An hourly rate multiplies a number of hours. A spreadsheet time value is measured in days, so convert it before calculating pay. Keep duration and decimal-hours columns separate to make the units visible.

Build a daily hours column

Use one row per shift: date, start, end, break, and decimal hours. For a same-day shift from 8:30 AM to 5:15 PM with a 0:45 break, =(C2-B2-D2)*24 returns 8. For overnight shifts under 24 hours, calculate the wrapped shift before subtracting the break, then multiply by 24. Complete date-times can be subtracted directly.

Five shifts of 8:45 total 43:45. You can sum the durations and multiply once by 24, or sum a decimal-hours column. Both give 43.75 hours. Do not multiply a decimal-hours total by 24 again.

Convert before applying the rate

A total of 37:30 is stored as 1.5625 days. At a rate of 18.40 per hour, the correct calculation is 37.5 hours times 18.40, giving 690.00. Multiplying 1.5625 directly by the hourly rate gives 28.75 because the calculation used days as if they were hours.

Give rates and pay a Number format with suitable decimal places. A label such as "Hours (decimal)" beside a value of 37.5 distinguishes it from the duration display "37:30".

Split regular and overtime hours

For an example threshold of 40 hours and multiplier of 1.5, with total decimal hours in H2:

  • Regular hours: =MIN(H2,40).
  • Overtime hours: =MAX(0,H2-40).

MIN caps regular hours at 40. MAX prevents overtime from becoming negative in a shorter week. At 43.75 hours, the split is 40 regular and 3.75 overtime hours. At a rate of 18.40, regular pay is 736.00 and overtime pay is 103.50, giving 839.50.

In a reusable sheet, replace 40 and 1.5 with references to the labeled input cells. Thresholds, multipliers, and rounding rules come from the applicable contract or local rules; the example numbers are inputs for this calculation.

Apply the specified rounding rule

For decimal hours, nearest-quarter-hour rounding is =ROUND(H2*4,0)/4. Multiplying by 4 expresses hours in quarter-hour units; rounding selects the nearest whole unit, and dividing by 4 converts back to hours. At 7:53, or about 7.8833 hours, the result is 8.00.

=ROUNDDOWN(H2*4,0)/4 always rounds positive hours down, giving 7.75 for the same record. On a time value, =MROUND(A2,1/96) rounds to the nearest 15 minutes, since 96 quarter hours fill a day.

Keep unrounded amounts through the pay calculation and use =ROUND(pay,2) at the end for cents. Showing two decimals changes the display; ROUND changes the value used in later totals.

Key Takeaways

  • Convert time values to decimal hours before multiplying by an hourly rate.
  • Sum either durations or decimal hours with consistent units.
  • MIN caps regular hours; MAX keeps overtime hours at zero or above.
  • Keep the threshold, rate, and multiplier in labeled input cells.
  • Nearest-quarter rounding and rounding down are different rules.
  • Round the final pay amount to two decimal places when pay uses cents.
6

Build weekly and monthly summaries

Dated records become useful reports when every row falls into a clearly defined period. A month label alone can hide a year, and a last-day cutoff can miss records with times attached. You will create keys for months and weeks, then build totals and counts with boundaries that include every intended record. The same structure can support a copied summary table and working-day averages.

6.1 Group dates into months, quarters and weeks

A period key gives every record in the same reporting period the same value. It belongs in a helper column beside the original date or timestamp. A good key keeps the year and sorts in time order.

Give each month a real date key

=EOMONTH(A2,-1)+1 returns the first day of A2's month. =DATE(YEAR(A2),MONTH(A2),1) gives the same result. Every October 2026 record receives October 1, 2026, whether it occurred on the first or last day and regardless of its time.

Format that column as mmm yyyy to show "Oct 2026". The stored key remains a date. It sorts chronologically and can move to the next month with EDATE. MONTH(A2) alone would group October 2025 with October 2026.

A text key such as =TEXT(A2,"yyyy-mm") also sorts correctly because it places the four-digit year first and pads the month to two digits. A name such as "Oct" loses the year; a label such as "Oct 2026" sorts alphabetically when it is text. Formatting a real date as "Oct 2026" avoids that problem.

Give each week its starting date

For Monday-first weeks, use =INT(A2)-WEEKDAY(A2,2)+1. For Sunday-first weeks, use =INT(A2)-WEEKDAY(A2)+1. Wednesday, October 28, 2026 maps to Monday, October 26 or Sunday, October 25, depending on the rule.

INT removes the time fraction before finding the week start. Without it, a 9:00 AM record and a 4:30 PM record can receive different values on the same Monday. They may look identical under a date-only format while failing an equality test. For daily grouping, =INT(A2) alone supplies the date key.

Label quarters and ISO weeks

A calendar-quarter label can use =YEAR(A2)&"-Q"&ROUNDUP(MONTH(A2)/3,0). October through December 2026 all receive "2026-Q4". Including the year keeps different years' fourth quarters apart.

For ISO reports, use both the ISO year and ISO week number:

=YEAR(A2-WEEKDAY(A2,2)+4)&"-W"&TEXT(ISOWEEKNUM(A2),"00")

The Thursday in the week determines the ISO year. January 1, 2027 therefore receives "2026-W53". Ordinary YEAR paired with ISOWEEKNUM would split this week at New Year. The two-digit week number also keeps text sorting in order.

Treat weeks and months as different groupings

The week beginning Monday, September 28, 2026 continues through Sunday, October 4. Its records belong to two different months. A week-start key places all of them in one weekly group, while month keys separate them at October 1.

A monthly total must select the dates in that month. Assigning whole weekly totals to the month of their start can pull October records into September and omit records from a week beginning in the previous month. Build each report from the dated records using its own boundaries.

Key Takeaways

  • Date keys such as the first of the month preserve years and sort chronologically.
  • Remove time fractions before creating daily or weekly equality keys.
  • ISO week labels need the ISO year and a two-digit week number.
  • Weekly groups can cross month boundaries, so build monthly groups from dates.

6.2 Total and count by period with date criteria

A period total needs two date conditions: on or after the period's start, and before the next period's start. This includes every timestamp inside the period without guessing its final time of day.

Build a monthly total

Suppose A2:A8 holds dates and C2:C8 holds amounts. Put October 1, 2026 in E2. The total is:

=SUMIFS(C2:C8,A2:A8,">="&E2,A2:A8,"<"&EDATE(E2,1))

SUMIFS starts with the values to add, then pairs each criteria range with its condition. Both conditions use the date column. The first accepts October 1 onward; the second rejects November 1 onward. The ampersand joins the quoted comparison operator to the date value. Writing ">=E2" keeps E2 inside text instead of reading the cell.

For amounts of 120 on September 28, 80 on September 30, 150 on October 1, 60 on October 2, 200 on October 5, 90 on October 30, and 40 on November 2, the October total is 500. Only the four October records contribute.

Count matching records or change the period

=COUNTIFS(A2:A8,">="&E2,A2:A8,"<"&EDATE(E2,1)) returns 4. COUNTIFS has no sum range because it counts matching rows. Every condition must hold for the same row.

For a weekly total, put Monday, September 28 in E2 and replace the upper boundary with E2+7:

=SUMIFS(C2:C8,A2:A8,">="&E2,A2:A8,"<"&E2+7)

That week totals 410 from September 28, September 30, October 1, and October 2. The week crosses a month boundary, so its total cannot simply be assigned to October.

Protect the final day's timestamps

The plain date October 31 means midnight at its start. A record at 2:00 PM is larger. Testing "<=" against October 31 would omit it. Testing "<" against November 1 includes it while excluding the next month exactly at midnight.

Create boundary dates with DATE, EDATE, EOMONTH, or date cells. A typed criterion such as ">=10/1/2026" depends on regional date interpretation. Separating the operator from a real date avoids that ambiguity.

Copy a summary table

For monthly rows, begin with =DATE(2026,1,1) in E2 and use =EDATE(E2,1) below it. For Monday-based weeks spanning that year, begin December 29, 2025, then add 7 on each row. January 1, 2026 is a Thursday, so adding 7 from that date would create Thursday-starting periods.

Lock the source ranges in the copied total, such as $C$2:$C$8 and $A$2:$A$8, while leaving E2 relative. Each row then changes its boundary without shifting the source data. If a helper column already contains a month key, equality is enough: =SUMIFS(C2:C8,D2:D8,E2).

For an average per working day, divide the total by NETWORKDAYS over the month, including applicable holidays. October 2026 has 22 Monday-to-Friday days before holidays, so 500 gives about 22.73 per working day. For month-to-date reporting, use the month's first day as the lower boundary and "<"&TODAY()+1 as the upper boundary to include all of today.

Key Takeaways

  • Use an inclusive start and an exclusive next-period start for date criteria.
  • Join quoted operators to date cells with &.
  • SUMIFS adds matching values; COUNTIFS counts matching rows.
  • Lock source ranges and let the summary row’s period cell move when copying.
  • Use real week starts in weekly tables and real month starts in monthly tables.
  • A helper period key can replace two boundary conditions with one equality.
  • Divide by working days for a working-day average, not by the number of records.

Date and Time Functions examples

6 Walkthroughs

1

Read the numbers behind dates and times

13 steps
Check date values, convert time fractions, and choose between live dates and fixed records.
  1. 1
    IntroductionStart with the stored number

    A schedule can show a calendar date, a clock time, and a day count next to one another. Underneath, all three are numbers. You will inspect those values, convert their units, and choose a current-date formula only when the result should change.

    Keep a cell's value separate from its display as you work: changing the display cannot repair the wrong value.

  2. 2
    ExplanationReveal a date serial

    October 28, 2026 is serial 46323 in Excel's usual date system. A date format makes it look like a calendar date; General makes it show 46323.

    The value is unchanged in both displays. That is why adding 1 moves to the following date and subtracting two dates gives a number of days. A day count needs a Number format so it does not look like an early-1900 date.

  3. 3
    ExampleCount elapsed or included dates

    Put March 15, 2026 in A2 and April 2 in B2. The formula =B2-A2 gives 18 elapsed days.

    If a booking includes both the starting and ending dates, the count is =B2-A2+1, or 19 calendar dates. Decide what is being counted before adding the extra day. It belongs to an inclusive count, not to ordinary elapsed-time subtraction.

  4. 4
    ChallengeFind the entry problem

    An imported cell looks like a date, but ISNUMBER(A2) is FALSE. Applying a date format leaves the problem. What needs to change?

    ---reveal---

    The cell needs conversion from text to a numeric date. Use DATE to build the intended date from its parts, or DATEVALUE when the text is recognized. Formatting only changes the appearance of a value; it does not turn date-looking text into a date serial.

  5. 5
    ExplanationMeasure the part of a day

    A time is a fraction of a day: 6:00 AM is 0.25, noon is 0.5, and 6:00 PM is 0.75. A date-time adds the fraction to its day number.

    October 28, 2026 at 6:00 PM is 46323.75. INT(A2) retrieves 46323 and MOD(A2,1) retrieves 0.75. Format the first result as a date and the second as a time to read the two parts.

  6. 6
    ExampleConvert a duration into hours

    A duration of 7:45 is stored as 7.75/24 of a day. Multiplying that stored value by 24 gives 7.75 decimal hours. Multiplying it by 1440 gives 465 minutes.

    The 45 minutes become 0.75 of an hour because 45/60 is 0.75. Entering 7.45 as decimal hours would mean 7 hours 27 minutes, so the colon and decimal point describe different quantities.

  7. 7
    TipKeep long durations out of TIME

    TIME(25,0,0) returns 1:00 AM because TIME describes a clock within one day. It discards the complete 24-hour cycle.

    For a 25-hour duration, store =25/24 and apply [h]:mm. HOUR also reads only the clock-hour part of a long duration. Multiply the stored value by 24 when the task asks for total hours, including complete days.

  8. 8
    ChallengeChoose a unit and display

    A2 is a time value showing 3:45. You need a numeric number of hours for a calculation. What formula and format should you use?

    ---reveal---

    Use =A2*24 and a Number or General format. The result is 3.75 hours. A time format would interpret 3.75 as days and display a clock remainder; dividing by 24 would convert in the opposite direction.

  9. 9
    ExplanationChoose a live date or a record

    TODAY returns the current date; NOW includes the current time. Both update when the sheet recalculates, and NOW does not continuously tick.

    Use these functions for a changing view of current deadlines. A received-date record needs a fixed date value so that old rows stay on their original day. A live formula would replace that history with the new current date.

  10. 10
    ExampleKeep the whole due day open

    C2 contains a plain due date. =IF(TODAY()>C2,"Overdue","Open") leaves the task open on that date and marks it overdue the next day.

    A plain date is midnight at the beginning of its day. NOW becomes larger during the due day, so NOW()>C2 is too early for this rule. Use NOW when the deadline itself includes an exact time.

  11. 11
    ChallengePreserve a report date

    A team wants a report to show the same statuses next week as when it was saved today. What should its shared report-date cell contain?

    ---reveal---

    Store today's date as a fixed value and use that cell in the status formulas. Leaving TODAY in the cell would update the reference day on recalculation and change the report. A fixed date preserves the chosen reporting day.

  12. 12
    ChallengeRead a misleading day count

    A fixed report date in F1 and due date in C2 produce =C2-$F$1. The result appears as "1/18/1900". What is the likely repair, and what does the result mean?

    ---reveal---

    Apply a Number or General format to the result: it is 18 calendar days remaining. The date display is interpreting the small numeric difference as a date serial. The fixed report date itself is appropriate for a report that must stay reproducible.

  13. 13
    RecapCheck value, unit, and purpose

    When a result looks wrong, inspect what it stores before changing its formula. A date serial identifies a day; a time fraction measures part of a day; a difference measures elapsed days.

    Choose the format for that quantity, convert days to hours when needed, and decide whether the reference date should update or stay fixed. These checks distinguish a display problem from an incorrect calculation.

2

Build dates and label their weeks

14 steps
Extract date parts, align dates to weekdays, and label reporting weeks without New Year errors.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionDescribe the same date in several ways
  2. 2
    ExplanationExtract numeric parts
  3. 3
    ExampleBuild the first of the month
  4. 4
    Key InsightOverflow changes the target month
  5. 5
    ChallengeMake a quarter label
  6. 6
    ExplanationPick a weekday numbering
  7. 7
    ExampleTurn a timestamp into its Monday
  8. 8
    ChallengeRepair the weekend flag
  9. 9
    ExplanationA week start is only half the rule
  10. 10
    ExampleFollow the week across January 1
  11. 11
    ExampleFind the ISO year from Thursday
  12. 12
    ChallengeDistinguish Monday-first from ISO
  13. 13
    ChallengeCheck the year boundary together
  14. 14
    RecapKeep the rule with the label
3

Move through months and anniversaries

13 steps
Choose month shifts, month ends, and completed years for renewals, terms, and ages.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionRead the calendar rule first
  2. 2
    ExampleMove January 31 into February
  3. 3
    ExampleKeep the original renewal day
  4. 4
    ChallengeChoose the third renewal
  5. 5
    ExplanationAsk directly for a month end
  6. 6
    ExampleTranslate the invoice wording
  7. 7
    ChallengeFind the quarter end
  8. 8
    ExplanationCount only completed years
  9. 9
    ExampleSeparate total and leftover months
  10. 10
    TipCalculate remaining days from an anniversary
  11. 11
    ChallengeUse a fixed age cutoff
  12. 12
    ChallengeCombine months and an eligibility test
  13. 13
    RecapLet the wording choose the function
4

Count and schedule with a working calendar

13 steps
Build a holiday-aware calendar, distinguish counts from deadlines, and adapt days off.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionGive the calendar to the formula
  2. 2
    ExampleCount four working weeks
  3. 3
    TipKeep the holiday list stable
  4. 4
    ChallengeExclude a nonworking today
  5. 5
    ExampleCount after the receipt date
  6. 6
    Key InsightA count and a deadline use different endpoints
  7. 7
    ExampleAdjust a calendar target forward
  8. 8
    ChallengeWork backward from a report deadline
  9. 9
    ExplanationReplace the weekend pattern
  10. 10
    ExampleSchedule with Friday–Saturday off
  11. 11
    ChallengeRead the pattern as text
  12. 12
    ChallengeCombine the pattern and holiday list
  13. 13
    RecapCheck the count in a short interval
5

Turn a time sheet into paid hours

13 steps
Handle overnight shifts, retain long totals, and calculate pay with explicit rounding and overtime inputs.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionFollow the units through a time sheet
  2. 2
    ExampleSubtract a shift and its break
  3. 3
    ExplanationCarry a night shift across midnight
  4. 4
    ChallengeChoose a method for a long interval
  5. 5
    ExampleShow a weekly total without wrapping
  6. 6
    ExampleConvert the total before applying a rate
  7. 7
    ExplanationSplit regular and overtime hours
  8. 8
    ExampleCalculate each pay component
  9. 9
    ChallengeKeep short-week overtime at zero
  10. 10
    TipApply the specified rounding stage
  11. 11
    ChallengeFinish a rounded weekly calculation
  12. 12
    Key InsightA money format does not round the value
  13. 13
    RecapKeep duration, hours, and pay distinct
6

Build a monthly report from timestamps

12 steps
Create period keys and use complete date boundaries for copied totals and counts.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionGive each record a clear period
  2. 2
    ExampleMake a real month key
  3. 3
    ExampleMake an equal key for every weekly record
  4. 4
    ChallengeKeep weekly and monthly reports separate
  5. 5
    ExplanationUse a start and a next start
  6. 6
    ExampleAssemble the monthly SUMIFS
  7. 7
    ExampleCheck the selected records
  8. 8
    ChallengeProtect the last evening
  9. 9
    TipCopy periods while keeping the source fixed
  10. 10
    ChallengeChoose the right average
  11. 11
    ChallengeBuild a report that copies correctly
  12. 12
    RecapTest boundaries before trusting totals

Date and Time Functions practice questions

50 Practice Questions in 5 sets

Set 1: Build dates and choose calendar rules10 Practice Questions

Question 1 of 10

What does WEEKDAY(A2,2) return when A2 is a Sunday?
  1. 1
  2. 0
  3. 7
  4. 6
Show answerHide answer
Answer: C
Return type 2 numbers Monday as 1 and continues through Sunday as 7. The date does not change when you choose this numbering. A result of 1 belongs to the default Sunday-first return type, so it would interpret a different weekday rule.

Question 2 of 10

What rule defines ISO week 1?
  1. The Monday-starting week containing the first Thursday.
  2. The Monday-starting week containing January 1.
  3. The Sunday-starting week containing January 1.
  4. The Sunday-starting week containing the first Thursday.
Show answerHide answer
Answer: A
ISO weeks start on Monday, and week 1 contains the first Thursday of the year. The first Thursday rule can assign early January dates to the previous ISO year. Starting on Monday while retaining the January 1 rule describes WEEKNUM with type 2, not ISO numbering.

Question 3 of 10

What date is one calendar month after March 31, 2027 using EDATE?
  1. May 1, 2027
  2. April 29, 2027
  3. May 2, 2027
  4. April 30, 2027
Show answerHide answer
Answer: D
EDATE first selects April, then tries to keep day 31. Since April has only 30 days, it returns April 30, its final date. May 1 would follow a fixed day addition from March 31 rather than the month-shift rule that keeps the result inside April.

Question 4 of 10

A2 contains August 9, 2027. What does =EOMONTH(A2,1) return?
  1. August 31, 2027
  2. September 30, 2027
  3. September 9, 2027
  4. October 31, 2027
Show answerHide answer
Answer: B
Offset 1 selects the month after August, and EOMONTH returns that month’s last day: September 30. September 9 would preserve the starting day number, which is the behavior of EDATE. Offset 0, not 1, would select the end of August.

Question 5 of 10

A person was born December 12, 1998. What is their completed age on November 30, 2027?
  1. 28
  2. 29
  3. 27
  4. 30
Show answerHide answer
Answer: A
The 2027 birthday on December 12 has not arrived by November 30. Only 28 full annual periods have ended, so DATEDIF with the Y unit returns 28. Subtracting 1998 from 2027 gives 29 but ignores the month and day that determine whether the next year is complete.

Question 6 of 10

Why does =DATE(2027,2,30) return a date in March?
  1. DATE clamps missing days to February month end.
  2. DATE treats the month number as a quarter number.
  3. DATE reads the year argument as a day count.
  4. DATE carries days beyond February into March.
Show answerHide answer
Answer: D
February 2027 has 28 days, so its 30th requested day falls two days into March. DATE rolls overflow forward and returns March 2. Clamping to February 28 is how EDATE handles a missing target day; DATE itself does not use that rule.

Question 7 of 10

A log timestamp is Thursday, May 20, 2027 at 3:00 PM. What plain date should its Monday-starting week key contain?
  1. May 16, 2027
  2. May 17, 2027
  3. May 20, 2027
  4. May 24, 2027
Show answerHide answer
Answer: B
Thursday is 4 with Monday-first WEEKDAY numbering. Removing the time and subtracting three days reaches Monday, May 17, the start of the current week. May 24 is the next Monday, but a grouping key uses the start on or before the record, not the next week.

Question 8 of 10

A renewal schedule starts January 30, 2027. Each date must follow the original day number where possible. B5:B7 holds 1, 2, 3. What formula in C5 can be copied down correctly?
  1. =EDATE(A2,B5) with January 30 in A2.
  2. =EOMONTH($A$2,B5) with January 30 in A2.
  3. =EDATE($A$2,B5) with January 30 in A2.
  4. =EDATE($A$2,1) with January 30 in A2.
Show answerHide answer
Answer: C
The locked original date supplies the intended day number, while B5 changes to each row's month offset. This produces February 28, March 30, and April 30 without drifting through February. EOMONTH would produce March 31, and a fixed offset of 1 would repeat February instead of advancing the schedule.

Question 9 of 10

January 2, 2028 is a Sunday. A weekly ISO report must group it with Monday, December 27, 2027. What label does that shared week need?
  1. 2027-W52
  2. 2028-W01
  3. 2028-W52
  4. 2027-W53
Show answerHide answer
Answer: A
The week runs Monday, December 27 through Sunday, January 2, and its Thursday is December 30, 2027. Its ISO year is therefore 2027; that year has 52 ISO weeks because it begins on Friday and is not a leap year. Using the date's calendar year would split this one week at New Year.

Question 10 of 10

An invoice dated February 18, 2027 is due 10 days after the end of its month. What is the due date?
  1. February 28, 2027
  2. March 18, 2027
  3. March 28, 2027
  4. March 10, 2027
Show answerHide answer
Answer: D
The invoice month ends February 28, 2027. Adding 10 calendar days reaches March 10, so the formula is EOMONTH of the invoice with offset 0, plus 10. Adding the 10 days to the invoice date instead would stop on February 28 and ignore the month-end starting point.
Set 2: Read stored values and current dates10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A duration cell contains 4:36. What number of decimal hours should be used with an hourly rate?
  1. 4.36
  2. 4.06
  3. 4.60
  4. 4.30
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A real date in A2 is changed from a date format to General. What happens to its stored value?
  1. It becomes a text string.
  2. It stays the same number.
  3. It becomes the current date.
  4. It loses the original year.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

What time of day does the stored time value 0.625 represent?
  1. 6:25 AM
  2. 6:25 PM
  3. 9:00 AM
  4. 3:00 PM
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A course runs from June 8 through June 19, 2026, including both dates. How many calendar dates does it cover?
  1. 12
  2. 11
  3. 10
  4. 13
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A received-date column uses =TODAY() on every row. What happens to old rows when the sheet recalculates on a later day?
  1. They retain their entry dates.
  2. They show their recalculation times.
  3. They show the new current date.
  4. They become fixed date values.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A2 holds May 22, 2027 at 4:00 PM. What does =DATE(YEAR(A2),MONTH(A2),1) return?
  1. May 1, 2027 at midnight
  2. May 22, 2027 at midnight
  3. May 1, 2027 at 4:00 PM
  4. January 22, 2027 at midnight
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

C2 is a plain due date of May 14, 2027. At 2:00 PM that day, a whole-day task is shown as overdue by =NOW()>C2. Why?
  1. NOW returns the following calendar day.
  2. C2 stores the end of the due day.
  3. NOW ignores the time portion of C2.
  4. C2 represents the start of May 14.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A2 contains the number 5.5 as decimal hours, but a clock format shows 12:00. How should the cell be displayed to read its intended quantity?
  1. Multiply its value by 24.
  2. Apply a Number format.
  3. Extract its value with HOUR.
  4. Apply the format [h]:mm.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

What formula builds September 7, 2028 without interpreting a typed text date?
  1. =DATE(28,9,7)
  2. =DATE(2028,7,9)
  3. =DATE(9,7,2028)
  4. =DATE(2028,9,7)
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A saved report must preserve its reporting day when reopened next month. A2 contains a received date-time and C2 a plain due date. It needs whole calendar days since receipt and an overdue test that stays FALSE throughout the due day. What design meets all three needs?
  1. Store a fixed date in F1; use $F$1-INT(A2) and $F$1>C2.
  2. Store TODAY in F1; use $F$1-INT(A2) and $F$1>C2.
  3. Store a fixed date in F1; use $F$1-A2 and $F$1>=C2.
  4. Store NOW in F1; use $F$1-INT(A2) and $F$1>=C2.
Show answerHide answer

Save this lesson to see this answer.

Set 3: Count workdays and schedule deadlines10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

With no holidays, what does NETWORKDAYS return when both endpoints are the same Tuesday?
  1. 0
  2. 2
  3. 5
  4. 1
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

What weekend string describes work on Monday, Wednesday, and Friday only?
  1. "1010100"
  2. "0101011"
  3. "0010101"
  4. "1101010"
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

An item arrives Friday, April 9, 2027. Processing takes three working days after receipt, with Saturday–Sunday off and no holidays. What is the completion date?
  1. April 14, 2027
  2. April 13, 2027
  3. April 12, 2027
  4. April 15, 2027
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A leave period runs Monday, March 8 through Friday, March 19, 2027. March 10 and Saturday, March 13 are listed holidays. How many working days count under a Saturday–Sunday weekend?
  1. 8
  2. 10
  3. 9
  4. 11
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A report is due Monday, May 17, 2027. Preparation must start four working days before it, with no holidays and Saturday–Sunday off. What date is needed?
  1. May 12, 2027
  2. May 11, 2027
  3. May 13, 2027
  4. May 10, 2027
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A team has Friday–Saturday off. From Thursday, June 3, 2027, what date is two working days later with no holidays?
  1. June 6, 2027
  2. June 5, 2027
  3. June 8, 2027
  4. June 7, 2027
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Today is Saturday and a deadline is next Friday, with no holidays. A count should include only future working days. What is wrong with NETWORKDAYS(TODAY(),deadline)-1?
  1. It removes a workday although Saturday never counted.
  2. It counts Saturday as a full future working day.
  3. It includes both Saturday and Sunday as workdays.
  4. It removes the deadline because Friday is a weekend.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

An invoice is dated Friday, July 2, 2027. Its rule is 15 calendar days later, moved forward to a working day if needed. Saturday–Sunday are off, and Monday, July 19 is a holiday. What is the deadline?
  1. July 17, 2027
  2. July 19, 2027
  3. July 20, 2027
  4. July 23, 2027
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A team works Monday through Thursday only. A task starts Thursday, August 5, 2027 and is due three working days after that date. Monday, August 9 is a holiday. What is the due date?
  1. August 10, 2027
  2. August 11, 2027
  3. August 12, 2027
  4. August 16, 2027
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Review dates are two calendar months after the start in A2, moved forward only when the target is nonworking. Saturday–Sunday are off and Holidays lists closures. What formula can be copied for starts whose targets may be working days, weekends, or holidays?
  1. =WORKDAY(EDATE(A2,2),1,Holidays)
  2. =WORKDAY(EDATE(A2,2)-1,1,Holidays)
  3. =EDATE(WORKDAY(A2-1,1,Holidays),2)
  4. =WORKDAY(A2,60,Holidays)
Show answerHide answer

Save this lesson to see this answer.

Set 4: Calculate durations and pay10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A duration totals 31:20. What format displays all of its elapsed hours?
  1. [h]:mm
  2. h:mm
  3. hh:mm AM/PM
  4. mm:ss
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A same-day shift runs from 7:20 AM to 3:50 PM with a 35-minute unpaid break. What is the paid duration?
  1. 8:30
  2. 7:95
  3. 7:55
  4. 8:05
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A shift known to be shorter than 24 hours runs from 11:15 PM to 7:00 AM with a 30-minute unpaid break. What are the paid decimal hours?
  1. 7.75
  2. 7.15
  3. 6.75
  4. 7.25
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A weekly duration is 34:30 and the rate is 21.60 per hour, with no overtime. What is the pay?
  1. 31.05
  2. 745.20
  3. 734.40
  4. 756.00
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A positive duration is 6:22. The stated rule rounds decimal hours down to a quarter hour. What number results?
  1. 6.25
  2. 6.50
  3. 6.22
  4. 6.00
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A ticket opens April 6, 2027 at 4:10 PM and closes April 8 at 10:40 AM. What total hours should its date-time difference give?
  1. 18.5
  2. 42.3
  3. 42.5
  4. 48.5
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Four paid shifts last 8:20 each and a fifth lasts 7:50. The weekly threshold is 38 hours, rate 16.80, and overtime multiplier 1.25. What is total pay before any further deductions?
  1. 691.60
  2. 701.40
  3. 864.50
  4. 704.90
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Three paid durations are 7:52, 7:52, and 8:07. Policy rounds each shift to the nearest quarter hour before totaling; overtime above 24 hours pays 1.5 times a rate of 20. What is pay?
  1. 480.00
  2. 470.00
  3. 475.00
  4. 487.50
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A maintenance log stores March 4, 2027 at 10:20 PM through March 6 at 1:50 AM. A 40-minute pause is unpaid. What decimal hours remain, rounded to four decimal places?
  1. 2.8333 hours
  2. 26.8333 hours
  3. 27.5000 hours
  4. 26.5000 hours
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Paid weekly time is 39:40. Policy first rounds the weekly total to the nearest quarter hour, then pays overtime above 39.5 hours at twice the rate of 18. What is pay?
  1. 715.50
  2. 712.50
  3. 723.00
  4. 720.00
Show answerHide answer

Save this lesson to see this answer.

Set 5: Build reliable period reports10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Why does a monthly helper key using only MONTH(A2) combine January records from different calendar years into one group?
  1. It returns dates instead of month numbers.
  2. It does not retain each record's year.
  3. It gives every month the same number.
  4. It retains each record's time fraction.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Two records occur Tuesday, September 7, 2027 at 9:00 AM and 2:00 PM. A weekly equality key uses A2-WEEKDAY(A2,2)+1. Why can they form separate groups?
  1. The formula retains each original time fraction.
  2. The formula assigns them different weekday numbers.
  3. The formula changes one record to the following week.
  4. The formula removes each record's calendar year.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

E2 holds a month's first day. Dates are in A2:A50 and amounts in C2:C50. What formula counts that month's records, including timestamps?
  1. =COUNTIFS(A2:A50,">="&E2,A2:A50,"<="&EOMONTH(E2,0))
  2. =COUNTIFS(A2:A50,">"&E2,A2:A50,"<="&EDATE(E2,1))
  3. =COUNTIFS(A2:A50,">=E2",A2:A50,"<EDATE(E2,1)")
  4. =COUNTIFS(A2:A50,">="&E2,A2:A50,"<"&EDATE(E2,1))
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A month has sales totaling 1,260 from 18 records over 21 working days. What is average sales per working day?
  1. 70.00
  2. 42.00
  3. 60.00
  4. 23.33
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A hire date is April 24, 2020 and the reference date is March 23, 2028. What years-and-months label uses completed periods?
  1. 7 years, 10 months
  2. 8 years, 0 months
  3. 7 years, 11 months
  4. 7 years, 94 months
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A log has 40 on February 28, 2027 at 11:00 PM; 70 on March 1 at midnight; 90 on March 31 at 6:00 PM; and 30 on April 1 at midnight. With Saturday–Sunday off and March 8 a company holiday, what is March sales per working day, rounded to two decimals?
  1. 3.18
  2. 6.96
  3. 7.27
  4. 8.64
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A report summarizes weekly data that intersects June 2027. The May 31–June 6 group totals 840, including 120 on May 31. The complete June weeks together total 2,100. The June 28–July 4 group totals 910, including 460 on July 1–4. What is the exact June total?
  1. 3,390
  2. 3,730
  3. 3,850
  4. 3,270
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A monthly report is copied down from F2. E2 holds the period start; source timestamps are A2:A80 and amounts C2:C80. What formula keeps every row on the same data while moving its month?
  1. =SUMIFS(C2:C80,A2:A80,">="&$E$2,A2:A80,"<"&EDATE($E$2,1))
  2. =SUMIFS($C$2:$C$80,$A$2:$A$80,">="&E2,$A$2:$A$80,"<"&EDATE(E2,1))
  3. =SUMIFS($C$2:$C$80,$A$2:$A$80,">="&$E$2,$A$2:$A$80,"<"&EDATE($E$2,1))
  4. =SUMIFS($C$2:$C$80,$A$2:$A$80,">="&E2,$A$2:$A$80,"<="&EOMONTH(E2,0))
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A month-to-date report is run on June 16, 2027. The log has 25 on May 31 at 8:00 PM, 45 on June 1 at midnight, 60 on June 16 at 11:00 PM, and 20 on June 17 at midnight. What is the month-to-date average amount per record, including all of June 16?
  1. 43.33
  2. 41.67
  3. 52.50
  4. 45.00
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A2 holds January 2, 2033 at 6:00 PM, a Sunday. A report needs a plain month-start date, a plain Monday week-start date, and an ISO year-week label. What three keys should this record receive?
  1. January 1, 2033; December 27, 2032; 2032-W53
  2. January 1, 2033; December 27, 2032; 2033-W53
  3. January 1, 2033; January 3, 2033; 2033-W01
  4. January 2, 2033; December 26, 2032; 2032-W52
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

77 Key Terms, each with its definition

A

Age threshold
An age threshold is a required completed age checked by comparing the date of the relevant anniversary with the chosen reference date.
The test EDATE(B2,12*18)<=C2 checks whether the 18th anniversary has arrived by the date in C2.
Anniversary
An anniversary is the date reached after a stated number of calendar months or years from a start, with the function's short-month adjustment.
A contract ending the day before its six-month anniversary uses EDATE with six months and then subtracts one day.

B

Backward scheduling
Backward scheduling finds an earlier preparation or reminder date by counting a required number of working days back from a deadline.
A WORKDAY offset of −10 locates the start of preparation ten working days before the due date.
Break deduction
A break deduction subtracts unpaid break time from a shift's elapsed duration, using a time value before conversion to decimal hours.
An 8:45 shift with a 0:45 break leaves 8:00 of counted work time before multiplying by 24.

C

Calendar-day deadline
A calendar-day deadline is formed by counting every day, including weekends, before any separately stated adjustment to a working date.
For a 30-calendar-day invoice rule, add 30 first and then move forward only if the target is nonworking.
Chronological sort
A chronological sort arranges records or period keys in time order, which real dates and year-first padded text labels can support.
A text label "2026-02" sorts before "2026-10", while month-name text follows alphabetical order instead.
Clock component
A clock component is an hour, minute, or second part read within one day; it does not measure the complete length of a multiday duration.
HOUR returns 2 from a duration of 26:30, while multiplying that duration by 24 returns 26.5 hours.
Complete date-time interval
A complete date-time interval retains both endpoint dates and times, so subtraction includes midnight crossings and every full day.
A ticket open for 53:30 needs complete date-times; applying MOD would remove its two full days.
Completed year
A completed year is a full annual period that has ended by the reference date, so a birthday or anniversary must have arrived before it counts.
A person born November 5, 1990 has 35 completed years on October 28, 2026, despite a year-number difference of 36.
COUNTIFS
The COUNTIFS function counts rows that meet every supplied condition and takes criteria-range and criterion pairs without a sum range.
Month-start and next-month-start boundaries can count transactions even when the amount column contains different values.
Custom weekend
A custom weekend is a repeating set of nonworking weekdays chosen in a .INTL function instead of the usual Saturday–Sunday pattern.
A team with Friday and Saturday off uses weekend code 7 and can count Sunday as a working day.

D

DATE
The DATE function builds a numeric date from a year, month, and day, making the intended date explicit inside a spreadsheet formula.
=DATE(2027,4,6) identifies April 6 without relying on how the region reads a typed date string.
Date criterion
A date criterion combines a comparison operator with a numeric date boundary to select records before, after, or within a reporting period.
The criterion ">="&E2 reads E2's date value; the quoted text ">=E2" leaves the cell name inside text.
Date rollover
Date rollover carries out-of-range DATE month or day inputs into neighboring periods, producing a valid date beyond the requested month.
DATE(2026,2,31) becomes March 3, which explains why rebuilding the next month can overshoot February.
Date system
A date system sets the starting point used to number calendar days; Excel's 1900 and 1904 systems assign different serials to the same date.
A date moved between the two systems without conversion can shift by four years and one day.
Date-time
A date-time combines a date serial with a fraction for time of day, allowing one value to identify both the day and the clock time.
The value 46323.75 identifies October 28, 2026 at 6:00 PM in Excel's standard 1900 date system.
DATEDIF
The DATEDIF function measures completed years, months, or days between a start and end date, according to a quoted unit code.
Using the unit "Y" gives completed age on a chosen reference date without counting an upcoming birthday.
DAY
The DAY function returns the day number within a date's month, from 1 to 31; it does not identify the weekday.
DAY(EOMONTH(A2,0)) uses the last date's day number to find how many days A2's month contains.
Decimal hours
Decimal hours express time as a number of hours with a decimal fraction, so 30 minutes is 0.5 hour and 45 minutes is 0.75 hour.
A duration shown as 6:45 becomes 6.75 decimal hours after its stored time value is multiplied by 24.
Duration
A duration is the amount of time between a start and end, stored in spreadsheet days and displayed or converted into an appropriate unit.
A start at 9:00 AM and end at noon give a three-hour duration, stored as 3/24 of a day.

E

EDATE
The EDATE function moves a date by whole calendar months, preserving the day number when possible and using the target month's end otherwise.
Moving January 31, 2026 forward one month gives February 28, while a two-month offset gives March 31.
Elapsed-hour format
An elapsed-hour format such as [h]:mm displays accumulated hours without hiding full 24-hour periods from a long duration.
A total of 43:45 remains visible as 43:45, while the ordinary clock format h:mm shows only 19:45.
EOMONTH
The EOMONTH function returns the final date of the month selected by a whole-month offset from a starting date, regardless of its day number.
An offset of 0 gives the current month end; an offset of 1 gives the end of the following month.
Exclusive upper boundary
An exclusive upper boundary rejects its exact cutoff and later values, so a next-month-start cutoff still includes all times on the final day.
An October timestamp filter uses less than November 1, retaining October 31 at 11:59 PM while excluding midnight.

F

Fiscal year
A fiscal year is an organization's reporting year, which can start in a month other than January and follows its chosen year-labeling rule.
For a July-start year named for its ending year, an August 2026 record belongs to fiscal year 2027.
Fixed timestamp
A fixed timestamp is a date or date-time stored as a value that stays unchanged when the spreadsheet recalculates.
A received-date record needs a fixed entry so yesterday's receipts still show yesterday after reopening.

H

Helper column
A helper column stores a calculated value for each source row, such as a month or week key used in sorting and summaries.
A column of plain Monday dates groups timestamps from different days and hours into their shared reporting weeks.
Holiday list
A holiday list is a range of real dates excluded from a working calendar in addition to its regular repeating weekend pattern.
Keep company closures in a named or locked range so copied deadline formulas continue to use the same dates.
Hourly rate
An hourly rate is the amount paid per hour of work and must multiply decimal hours, not a time value still measured in days.
At 18.40 per hour, 37.5 decimal hours produce 690.00 before any other stated pay adjustments.

I

Inclusive endpoint
An inclusive endpoint belongs to the period being counted when it meets the eligibility rules, as both endpoints do in NETWORKDAYS.
The same eligible date used as both start and end returns 1 because that date is included in the count.
ISO week
An ISO week is a Monday-to-Sunday reporting week whose first week of the year contains the year's first Thursday, or January 4.
Friday, January 1, 2027 remains in ISO week 53 of 2026 because that week's Thursday is in 2026.
ISO week year
An ISO week year is the year containing the Thursday of an ISO week, which may differ from the calendar year of dates near New Year.
December 29, 2025 has ISO week year 2026, so using ordinary YEAR would give the wrong year-week label.
ISOWEEKNUM
The ISOWEEKNUM function returns the ISO week number of a date but does not also supply the year to which that week belongs.
Pair its result with the year of the week's Thursday when constructing a complete ISO year-week label.

L

Leftover months
Leftover months are the completed months remaining after complete years have been removed, returned by DATEDIF with the unit "YM".
A service label can combine 5 completed years with 4 leftover months; total months would count the years again.

M

MOD
The MOD function returns the remainder after division; with a divisor of 7, it can turn a weekday gap into a forward offset of 0 through 6.
The formula for Friday on or after a date uses MOD to move forward even when Friday has already passed that week.
Money rounding
Money rounding changes a calculated pay value to the required precision, commonly two decimal places for an amount expressed in cents.
ROUND(pay,2) changes the amount used in later totals; showing two decimals only changes the display.
MONTH
The MONTH function returns a date's month as a number from 1 to 12, without retaining the year in which that month occurs.
Both October 2025 and October 2026 return 10, so MONTH alone cannot distinguish them in a report.
Month boundary
A month boundary is the start or end date used to define a monthly period, often built from EOMONTH and a one-day adjustment.
Adding one day to the current month end gives next month's first day, a useful upper boundary for timestamps.
Month key
A month key identifies both the year and month of a record, often using the month's first date to preserve chronological sorting.
Displaying a real key with mmm yyyy shows "Oct 2026" while allowing EDATE to calculate the next monthly key.
Month offset
A month offset is the number of calendar months to move from a starting date, with positive numbers moving forward and negative ones backward.
An EDATE offset of −3 locates the date three months before the start; a fractional offset is truncated.
Month-to-date total
A month-to-date total adds records from the current month's start through today, using a boundary that includes today's full date.
An upper condition of less than TODAY()+1 includes afternoon records that less than or equal to TODAY would omit.

N

NETWORKDAYS
The NETWORKDAYS function counts Monday-to-Friday dates within an interval, including eligible endpoints and excluding listed holidays.
A Monday-to-Friday interval returns five working days before holidays; plain subtraction returns four elapsed days.
NETWORKDAYS.INTL
The NETWORKDAYS.INTL function counts eligible dates using a chosen weekend pattern plus optional holidays, including eligible endpoints.
A November interval can have a different count when Friday–Saturday replaces Saturday–Sunday as the weekend.
NOW
The NOW function returns the current date and time as a date serial plus a day fraction, updating when the spreadsheet recalculates.
A timed deadline can be compared with NOW(), but a plain due date needs a whole-day comparison.
Number format
A number format controls how a stored value appears, such as a date or a day count, without changing the value used in calculations.
A formula returning 18 elapsed days needs a Number format so it does not appear as a date in 1900.

O

On-or-after adjustment
An on-or-after adjustment keeps a valid target workday or moves a nonworking target to the first eligible date after it.
WORKDAY(A2-1,1,Holidays) lets the target date count as the next workday when it is already eligible.
Overnight shift
An overnight shift begins on one date and ends on the next, making an end clock time numerically smaller than the start clock time.
For a time-only shift under 24 hours, MOD wraps a negative subtraction into the next day's positive duration.
Overtime hours
Overtime hours are the positive hours above the threshold specified for the calculation; MAX prevents a shorter week from producing negatives.
For 43.75 total hours and a threshold of 40, MAX(0,43.75-40) gives 3.75 overtime hours.
Overtime multiplier
An overtime multiplier scales the ordinary hourly rate for hours qualifying as overtime under the sheet's stated pay rule.
An example multiplier of 1.5 turns an 18.40 ordinary hourly rate into a 27.60 overtime hourly rate.

P

Payment term
A payment term states when an amount is due and determines whether the calculation uses calendar days, month shifts, or month-end boundaries.
"30 days after month end" first finds the invoice month's end and then adds 30 calendar days.
Period key
A period key is a value shared by every record in the same reporting period, allowing the sheet to group those rows consistently.
Every date in October 2026 can receive the real date October 1, 2026 as its monthly key.

Q

Quarter end
A quarter end is the final calendar date of March, June, September, or December, marking the end of a three-month calendar quarter.
An August date is in quarter 3, whose final month is September and whose final date is September 30.
Quarter-hour rounding
Quarter-hour rounding adjusts a duration to 15-minute increments according to the specified nearest, upward, or downward rule.
For positive decimal hours, ROUND(hours*4,0)/4 rounds to the nearest quarter, while ROUNDDOWN always lowers it.

R

Reference date
A reference date is the date at which an age, service period, or eligibility test is evaluated, whether fixed or supplied by TODAY.
A season's age limit can use December 31 as a fixed cutoff so the age does not change with the viewing day.
Regular hours
Regular hours are the hours paid at the ordinary rate under the stated rule, capped at the specified threshold when overtime is separated.
With a 40-hour threshold, MIN of total hours and 40 gives the regular portion of the week's work.
Report date
A report date is the chosen day used as the shared reference for date-based calculations throughout a report or summary sheet.
Changing one report-date cell lets a team test all its days-remaining calculations for the same chosen day.
Return type
A return type is an argument choosing how a function numbers or organizes its result, such as the starting day used by WEEKDAY.
WEEKDAY type 2 makes Monday 1 and Sunday 7, which supports the weekend test WEEKDAY(A2,2)>5.

S

Schedule anchor
A schedule anchor is the original starting date retained for every calculated anniversary, preventing short-month adjustments from drifting later dates.
Lock the start in $A$2 and use each row's month offset to keep a January 31 schedule aligned.
Serial number
A serial number is a numeric count of days from a spreadsheet's starting date, stored behind the calendar date shown in a cell.
Changing October 28, 2026 to General format reveals its serial number, 46323, in Excel's usual system.
SUMIFS
The SUMIFS function adds values from rows meeting every supplied condition, with a sum range followed by criteria-range and criterion pairs.
A monthly amount formula can test the same timestamp column against both the month start and next month start.

T

TEXT
The TEXT function turns a numeric value into a text label using a format code, so the result no longer retains the original numeric type.
TEXT(A2,"yyyy-mm") makes a sortable month label such as "2026-10"; retain a date key for arithmetic.
Text date
A text date is a text entry that looks like a calendar date but has not been stored as the numeric date value needed for date arithmetic.
An imported date may stay text; ISNUMBER(A2) helps check whether the cell holds a numeric value.
TIME
The TIME function combines hour, minute, and second inputs into a clock-time fraction, wrapping hours that exceed one complete day.
=TIME(27,0,0) produces 3:00 AM, so a 27-hour duration needs a stored value of 27/24 instead.
Time value
A time value is a fraction of a day stored as a number, so a clock time or duration can be used in spreadsheet arithmetic.
Noon is stored as 0.5 because 12 hours is half of a 24-hour day; a time format displays the clock reading.
TODAY
The TODAY function returns the current date as a whole serial number when the sheet recalculates, with no time fraction attached.
A due date minus TODAY() gives calendar days remaining, and the result should be formatted as a number.

V

Volatile function
A volatile function recalculates when the spreadsheet performs a calculation cycle, so its result can change without an argument changing.
TODAY and NOW can update when a workbook opens; NOW does not act as a continuously ticking clock.

W

Week start
A week start is the first calendar date of the reporting week containing a record, often used as that record's weekly grouping key.
A Wednesday timestamp maps to a plain Monday date after INT removes its time and the weekday offset is subtracted.
WEEKDAY
The WEEKDAY function returns a number identifying a date's day of the week, with the numbering controlled by its return-type argument.
Wednesday has value 4 with the default return type but value 3 when Monday is numbered 1.
Weekend code
A weekend code is a numeric choice identifying a predefined pattern of days off in NETWORKDAYS.INTL or WORKDAY.INTL.
Code 11 means Sunday only; it is different from the text pattern "0000011", which excludes two days.
Weekend string
A weekend string is seven text characters ordered Monday through Sunday, with 1 marking a nonworking day and 0 marking a working day.
The pattern "0010011" excludes Wednesday, Saturday, and Sunday and leaves four working days per week.
WEEKNUM
The WEEKNUM function returns a date's week number; its default starts weeks on Sunday and puts week 1 around January 1.
January 3, 2027 begins default week 2 even though only two dates in that year came before it.
WORKDAY
The WORKDAY function returns a date a whole number of working days before or after a start, skipping weekends and listed holidays.
From a Friday start, one working day later is Monday when there are no intervening company holidays.
WORKDAY.INTL
The WORKDAY.INTL function schedules a date before or after a start using a chosen weekend pattern and optional holiday dates.
Three workdays after a Thursday with Friday–Saturday off end on Tuesday, counting Sunday, Monday, and Tuesday.
Working-day average
A working-day average divides a period's total by its eligible working days, using the applicable weekend pattern and holiday dates.
Dividing sales by NETWORKDAYS gives sales per working day; dividing by transaction count gives sales per record.
Working-day count
A working-day count is the number of eligible dates in an interval after the chosen weekend and holiday exclusions are applied.
A weekend holiday does not reduce the count again because that date was already excluded by the weekend rule.

Y

YEAR
The YEAR function extracts the calendar year from a numeric date and returns an ordinary number, ignoring any attached time.
For October 28, 2026, YEAR returns 2026; its result needs a number format instead of a date format.

Z

Zero padding
Zero padding adds leading zeros to numeric labels to keep their width fixed, so text week keys sort in the intended numeric order.
TEXT with the code "00" writes week 2 as "02", placing it before week 10 in an ISO text key.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started