Spreadsheet Practice

How to calculate the days remaining in the month in Excel

Formula (Excel and Google Sheets)

=EOMONTH(A2,0)-A2

Subtract the date from the month end: =EOMONTH(A2,0)-A2.

Result on the example
one result per row in B2, filled down to B6
Works in
Every current version
Google Sheets
Same formula

See it work

The formula is already in B2, filled down to B6. Change any input and the result updates, or edit the formula to experiment.

How it works

EOMONTH(A2,0) is the last day of the date's month, so subtracting the date leaves the days still to come. On the last day of the month the result is 0.

=EOMONTH(A2,0)-A2

Result18

  1. A22/10/2026

    The value in A2.

  2. EOMONTH(A2,0)2/28/2026 (46081)

    EOMONTH: Last day of the month, months away.

    • start_dateA22/10/2026
    • months0
  3. EOMONTH(A2,0)-A218

    The - operator subtracts.

In Google Sheets

The same formula works in Google Sheets: =EOMONTH(A2,0)-A2. We ran it in Google Sheets mode on the same data and it returns the same results.

Other ways to do it

Each one was run on the same example sheet.

FormulaResultWhen to use it
=DAY(EOMONTH(A2,0))-DAY(A2)18, 0, 29…The same result by subtracting day numbers.
=EOMONTH(A2,0)-A2+119, 1, 30…Different resultCounts the date itself too, for "days left including today". One more day.

Common mistakes

  • The result can show as a date. Format the column as a number.
  • With a time in A2 the result has a fraction. Use INT(A2).

Try it yourself

Same data, empty answer cell. Your formula is graded instantly, then re-checked on changed data, so a typed-in number won't pass.

Calculate the days remaining in the month

In B2, calculate how many days are left in the month after the date in A2, and fill down to B6.

Questions

How do I count the working days left in the month?

=NETWORKDAYS(A2,EOMONTH(A2,0),holidays). It includes A2 when that is a working day.

What share of the month has passed?

=DAY(A2)/DAY(EOMONTH(A2,0)), formatted as a percentage.

Checked by running on 2026-10-30: every formula and result on this page was calculated by the Spreadsheet Practice formula engine, in both Excel and Google Sheets modes.