Validating data by pressing enter (shortcut ??)

moris7

New Member
Joined
Nov 10, 2005
Messages
3
Sometimes i need to change data that i receive under the form...
Mar 25/04 for example.

Usually i change this info into 3 column of data:
Mar is now 03 for 3rd month of the year, 25 is 25 and 04 is 2004.
Then i combine all of this to get : 2004-03-25.
Then i copy/paste value in the column to get rid of the formula.

Unfortunately, excel does not understand that this is a date yet.
If i click in the cell where the 2004-03-25 data is and then press enter...now it knows it's a date as if i just typed 2004-03-25.

Of course i can do a macro to press enter on all my cells but there must be another better way.

Can anyone help me to speed up this process ?
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Welcome to the board.

How about:

=DATEVALUE(SUBSTITUTE(A1,"/",", "))

Format the resultant as a date.
 
Upvote 0

Forum statistics

Threads
1,203,174
Messages
6,053,929
Members
444,694
Latest member
JacquiDaly

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