Different date formats

alexmols

New Member
Joined
Dec 7, 2010
Messages
13
Hello all,

i have received an automatically generated file which contains a long list of dates which have two different date formats, unfortunately. Examples of these two formats are:

1-12-2010
1/13/2010 12:23:29 AM

Note:
the first format is d/mm/yyyy
the second format is m/dd/yyyy (hh:mm:ss AM)

Is there a way by which I can get the column next to it, to contain one single date format, preferably dd/mm/yyyy

Thanks in advance,
Alex Mols
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
What other topic?

This formula converts 1/12/2010 12:00AM to 12/1/2010

Right, it ook me some time to convert all these formula's to Dutch, as well as change the , to ; (since that is the correct way to seperate with the Dutch excel).

Unfortunately it gives me a #NAME error, which I do not know how to fix
 
Upvote 0
Here is the thing I made from your code:

Code:
=TEKST.SAMENVOEGEN(DEEL(C1254;(ZOEK("/";C1254;1)+1);2);"/";LINKS(C1254;(ZOEK("/";C1254;1)-1));"/";DEEL(C1254;(ZOEK(" ";C1254;1)-4);4))
Code:
=CONCATENATE(MID(A2,(FIND("/",A2,1)+1),2),"/",LEFT(A2,(FIND("/",A2,1)-1)),"/",MID(A2,(FIND(" ",A2,1)-4),4))

using the dutch wikipage for converting english to dutch excel formulas
http://nl.wikipedia.org/wiki/Lijst_van_Excel-functies
 
Upvote 0
I found the error already, "FIND" should be translated to VIND.ALLES and not to ZOEK ...

Thank you so very much for your help!!!
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,310
Members
452,906
Latest member
phanmemchatdakenhupviral

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