Modification regarding EOMONTH function

aligahk06

Active Member
Joined
Apr 26, 2009
Messages
257
Dear All,

=""&EOMONTH(DATE(2018,12,1),0) return 43465 last day value
But i want the last day value return as 43465.9993055556 value date

SoI modify in this formula=""&EOMONTH(DATE(2018,12,1) +"23:59:00",0) to give 43465.9993055556 value.
But I won't give.

Any Assistance..

Rgds,

Aligahk06

 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
You misplaced the addition, since EOMONTH returns only the date serial number (integer part). Try:

="" & EOMONTH(DATE(2018,12,1),0) + "23:59:00"
 
Upvote 0
="" & EOMONTH(DATE(2018,12,1),0) + "23:59:00"

Someone might wonder why don't write simply ="" & DATE(2018,12,31) + TIME(23,59,0) , removing all potential localization issues.

I presume you used EOMONTH because DATE(2018,12,1) is really variable; perhaps a cell reference to an arbitrary date.
 
Upvote 0
If that value was actually hardcoded in the formula, I would wonder why you just wouldn't put that value in the cell and format as a number with 10 decimal places.

12/31/2018 11:59 PM
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,314
Members
452,634
Latest member
cpostell

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