Change general format to date (and US to Europe)

icordeiro

New Member
Joined
Dec 13, 2016
Messages
25
Hi all,

I'm importing a .xls file into my own file.

Basically I'm copying one sheet, and one of the columns has dates. The values are in general format (example: 1/14/2019 3:24:51 AM) and in US format.

I need to change the format to date (without the time) and to Europe format so I can make analysis based on date (month, year, etc). For example, turn 1/11/2019 1:02:27 PM to 11-01-2019

This is what I'm doing so far:

1st step: [IF(F2<>"";TEXT(F2;"mm/dd/aaaa");"")]

2nd step: = [IF(F2<>"";VALUE(SUBSTITUTE(V2;"/";"-"));"")]

But the formulas only seem to work with some cells I don't know why
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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