Reversing the decimal separator auto date recognition function?

Jaymond Flurrie

Well-known Member
Joined
Sep 22, 2008
Messages
921
Office Version
  1. 365
Platform
  1. Windows
Does someone here have a VBA script that reverses the date transforms? That is, when Excel sees stuff like 11.84, it says that "yippee, this is a date and I couldn't care less whether you think otherwise -> Nov.84 that is and you as a user can shove your ideas of numbers to where the sun doesn't shine". And no, changing that to number format definitely does not give anything close to correct results, since the number is counted from 1900 or 1904 dates and gives tens of thousands as the result.

So, I'm looking for a script that simply will undo the the date recognize. And no, this can't be any manual work of cell formattings etc. since I have accounting data of thousands of rows that comes from a source file, that might already be "infected".

Basically the function could be something like
Code:
Function reverseidiotictranslation(infecteddata As String)        
    Dim result As Double
    result = whateverthetranslationfunctionactuallyis(infecteddata)
    reverseidiotictranslation = result
End Function

but I think this has been already solved somewhere carefully, so most likely no need to re-invent the wheel.
 
Last edited:
I can't swear 100% but use a copy, try it and see if you get usable data, the worst that could happen is you damage a bad copy

Otherwise good, but I have no idea what the original data is supposed to be. I would guess it is two way conversion, so if 1.10 becomes Jan 2010, then Jan 2010 becomes 1.10., but I'm not sure of that either.
 
Upvote 0

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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