Last Date of the Month as DD-MM-YYYY

spycein

Board Regular
Joined
Mar 8, 2014
Messages
135
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I wanted to know what is the formula to convert "MMM-YY" format date to "DD-MM-YYYY" format.

for example,

In cell A1 i have a value May-16, now in cell "B1" i need the value as 31/05/2016.
similary June-16 as 30/06/2016.

The date should last day of the month.

Please help me to solve this.

Thank you so much in advance.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
On the assumption that A1 is actually a date and not text then B1 formula:

=EOMONTH(A1,0)

How the date is then displayed is down to the cell formatting. Presumably the format in A1 is "mmm-yy" so you need to put format "dd-mm-yyyy" or "dd/mm/yyyy" in to B1.

WBD
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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