Regarding Date Format

Allwinv

New Member
Joined
May 19, 2019
Messages
32
Hi Excel Experts,

In one of the Cell, i have the data as 13/6/2018 2:38 PM. But i want to make this data as 13/06/2018. I entered formula as =DATE(YEAR(A1),MONTH(A1),DAY(A1)). But i am getting the error due to AM and PM available in cell. I removed AM and PM in the cell (using the replace Option) and applied the formula as =DATE(YEAR(A1),MONTH(A1),DAY(A1)). But still not working for the cells which are AM and PM data.

Can you please help.

Thanks.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi, in case if it is already in the date format, you can just number format it for d/m/yyyy. If you need to perform some additional steps on this date then you can ROUNDDOWN() the date then change the number format d/m/yyyy format.

If it is stored as text and if the date format is right for your excel then DATEVALUE() should work directly then number formatting this field d/m/yyyy
 
Last edited:
Upvote 0
I just downloaded the data from sales force to Excel. After importing the data, I need to format the date fields from the cells.
From your description, you might have text in your cells, not real dates. Let's test it. Put this formula in an empty cell...

=ISNUMBER(A1)

but change the A1 to a cell address containing one of your dates, then tell us what the formula displayed.
 
Upvote 0
Thank you for the reply.

I just keep the data as 13/6/2018 2:38 PM in A1 cell and applied this formula =ISNUMBER(A1). It is giving the result as FALSE

I modified the the date as 13/6/2018 in A2 cell and applied this formula =ISNUMBER(A1). It is giving the result as FALSE only.

Pls suggest.
 
Upvote 0
Thank you for the reply.

I just keep the data as 13/6/2018 2:38 PM in A1 cell and applied this formula =ISNUMBER(A1). It is giving the result as FALSE

I modified the the date as 13/6/2018 in A2 cell and applied this formula =ISNUMBER(A1). It is giving the result as FALSE only.

Pls suggest.


Is the data in the correct excel format ? as in you are using d/m/yyyy, does your data when typing in TODAY() formula also comes in the same format ?
 
Upvote 0
Hi,

As i checked the format by typing today(), it is mm/dd/yyyy.

But as i checked the other cell of data, it is dd/mm/yyyy.

Thanks.
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,340
Members
452,637
Latest member
Ezio2866

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