0 of 62
Dates·Lesson 50 of 62Pro

How to use EOMONTH in Google Sheets

End of the month

How EOMONTH works

EOMONTH returns the last day of a month. The second argument moves months: 0 is the same month, 1 the next, -1 the one before.

EOMONTH(start date, months)
Example on this data
=EOMONTH(G4,0)-G4→26

Days left in February after the order placed on 2/2/2026.

What you’ll do

You’ll find how many days were left in the month after an order came in. Month-end dates matter for billing, payroll and reports, and EOMONTH saves you remembering which months have 30 days.

Try it

Type =EOMONTH(G4,0)-G4 into K2 and press Enter. Watch what the sheet does.

The result will appear in K2.

K2
ABCDEFGHIJK
1OrderRepRegionProductUnitsPriceOrder dateShip date
21001AnaWestDesk32401/5/20261/9/2026
31002BoEastChair8851/12/20261/20/2026
41003CyWestLamp12301/19/20261/22/2026
51004DiNorthDesk22402/2/20262/13/2026
61005AnaWestChair5852/9/20262/12/2026
71006EveSouthShelf41202/16/20262/27/2026
81007BoEastLamp20303/2/20263/4/2026
91008CyWestShelf11203/9/20263/18/2026
101009DiNorthChair6853/16/20263/19/2026
111010EveSouthDesk72403/23/20264/1/2026
Ctrl+/ shows the shortcuts