find and Replace messes the date

Shrikant

Active Member
Joined
Dec 28, 2010
Messages
284
Hi all !
I use SAP to pull out daily sales sold to different parties.
Now, SAP gives date in dd.mm.yyyy format eg. 31.05.2011
This format is not useful in pivoting or filtering because it is not recognized as dates. I tried to change custom format to dates also but it also doesn't work.

Then I find and replace "." with "/" and it automatically convert into date format. Now I can group dates to week, month etc in a pivot and filter in column head also shows it in group (excel 2007)
problem is when i tried to record macro, the find and replace works fine.
but at the time i re-run the macro it messes all the dates. some dates are displayed as dd-mm-yyyy and some are displayed as mm-dd-yyyy (which are wrong)

Anybody with an explanation?
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Try selecting the dates, Data > Text to Columns, tick Delimited, click Next twice, tick Date, select DMY then click Finish.

You could record a macro whilst doing that.
 
Upvote 0

Forum statistics

Threads
1,224,541
Messages
6,179,418
Members
452,912
Latest member
alicemil

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