Convert DD-MM-YYYY hh:mm:ss to DD-MM-YYYY

Bench

Board Regular
Joined
Aug 27, 2009
Messages
134
Hi,

I used to know how to do this but can't for the life of me remember or find out how you do it.

Basically i need to Convert DD-MM-YYYY hh:mm:ss to DD-MM-YYYY.

I've done the obvious format cells change but this retains the time, not visually but if you were to click on the cell it shows the date in the formula bar, hence a countif won't work based upon a date.

Any ideas?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Sorry i'm, a moron, found it saved as a bookmark on my computer, doh!


TEXT(somedatecell,"dd/mmm/yyyy")
 
Upvote 0
Excel Workbook
ABC
1
215-02-2010 13:15:30<< Entered originally as: 2/15/2010 1:15:30 PM
3and Custom formattede as DD-MM-YYYY hh:mm:ss
4
5
615-02-2010Custom Format as: DD-MM-YYYY
7
8
940224Actual Value of Cell B6 (Formatted as General)
10
Sheet1
Excel 2003
Cell Formulas
RangeFormula
B6=INT(B2)
B9=B6
 
Upvote 0

Forum statistics

Threads
1,215,223
Messages
6,123,715
Members
449,118
Latest member
MichealRed

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