EOMONTH returning wrong last day of month

Preacherman771

New Member
Joined
Jun 15, 2021
Messages
46
Office Version
  1. 365
Platform
  1. Windows
Needing to find the last day of a given month I found the formula EOMONTH(start-date,month(s)). When I enter EOMONTH(A2,0) (A2="1/1/2022") or EOMONTH("1-Jan-2022",0) the return value is Jan-22. Regardless of which #months I use it returns the correct month but the 22th, "Month-22". I checked the cells formatting which is "Date". Would appreciate any help.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
I think "22" is your year, not your day of the month.
You just need to change the format of the cell to something that shows the day.
It sounds like you currently have the cell format set to "mmm-yy", which does not show the day (the day is really there, you just elected not to show it).
 
Upvote 0
Solution
Thank you for your quick response. After reading your helpful response, all I could say to myself was, "Duh!" :) That makes total sense.

Thanks again, and may you and yours have a Happy New Years.
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,215,259
Messages
6,123,922
Members
449,135
Latest member
NickWBA

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top