View Single Post
 
Old 06-21-2021, 11:49 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Windows 7 64bit Office 2010
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

The first formula I proposed can be used in all cases where strings need to be cleaned, while yours is specific to cleaning and converting to dates at the same time.
It also introduces the technique for converting dates ( when applicable) using the Text to Columns feature

IMO, using helper columns ( created by the first formula) is much more easy when it comes to finding errors and is easier to understand

In your ( excellent) solution errors would be harder to find
A nice article on cleaning "dirty" data
Reply With Quote