Table of Contents
The EOMONTH function in Google Sheets is a useful tool for finding the end of a month based on a given date. This function allows the user to calculate the last day of a month, which can be helpful for various financial and business tasks. To use the EOMONTH function, simply enter the starting date in the first argument and the desired number of months in the second argument. The function will then return the date of the last day of the specified month. This can be useful for planning and budgeting purposes, as well as for creating reports and charts. Overall, the EOMONTH function is a convenient feature in Google Sheets that can save time and simplify calculations.
EOMONTH
Returns a date representing the last day of a month which falls a specified number of months before or after another date.
Sample Usage
EOMONTH(DATE(1969, 7, 20), 1)
EOMONTH(A2, 1)
EOMONTH(40909, -2)
Syntax
EOMONTH(start_date, months)
start_date– The date from which to calculate the result.months– The number of months before (negative) or after (positive)start_dateto consider. The last calendar day of the calculated month is returned.
Notes
Ensure that the
start_dateinput to the function is either a reference to a cell containing a date, a function which returns a date object such asDATE,DATEVALUEorTO_DATE, or a date serial number of the type returned by theNfunction. Google Sheets represents dates and times as numbers; while conversion is automatic when a human-readable date is entered into a cell, functions only accept literal dates in numeric format.EOMONTHdoes not autoconvert number formats in the same way that Google Sheets does upon direct entry into cells. Therefore,EOMONTH(10/10/2000,1)is interpreted asEOMONTH(0.0005,1), the quotient of 10 divided by 10 divided by 2000.Non-integer arguments to
monthswill have their decimal components truncated. Therefore,EOMONTH(A2,2.6)is equivalent toEOMONTH(A2,2).
See Also
TO_DATE: Converts a provided number to a date.
N: Returns the argument provided as a number.
EDATE: Returns a date a specified number of months before or after another date.
DATEVALUE: Converts a provided date string in a known format to a date value.
DATE: Converts a year, month, and day into a date.
Examples
Returns the date of the last day of a month which falls months away from the given start_date.
[wpcc-iframe height=”300″ src=”https://docs.google.com/spreadsheet/pub?key=0As3tAuweYU9QdHdjZTJwYUQwWUY1NHJyc1dpR0JyTXc&single=true&gid=0&output=html&widget=true” width=”500″]
Cite this article
stats writer (2024). How do I use the EOMONTH function in Google Sheets?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-do-i-use-the-eomonth-function-in-google-sheets/
stats writer. "How do I use the EOMONTH function in Google Sheets?." PSYCHOLOGICAL SCALES, 28 Jun. 2024, https://scales.arabpsychology.com/stats/how-do-i-use-the-eomonth-function-in-google-sheets/.
stats writer. "How do I use the EOMONTH function in Google Sheets?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-do-i-use-the-eomonth-function-in-google-sheets/.
stats writer (2024) 'How do I use the EOMONTH function in Google Sheets?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-do-i-use-the-eomonth-function-in-google-sheets/.
[1] stats writer, "How do I use the EOMONTH function in Google Sheets?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How do I use the EOMONTH function in Google Sheets?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
