Andrew McDonough

Please note: This page is imported from my wiki, which hasn't been updated in over 10 years. Some of the formatting was lost during the import. I'll try to get around to fixing it someday.

Excel Validation

Customers often like to use Excel as a means of consolidating data that needs to be imported into a database. Asking them to adhere to a consistent formatting can be a real pain. Fortunately, Excel has an option to restrict cells to a particular format.



Excel uses a badly thought out way of storing dates that also has an odd bug,|which I won’t go in to. If clients are entering data from, scratch, I tend to like them entering dates as text in the format YYYY-MM-DD. You can validate for this using the following pattern:


Andrew McDonough

Andrew McDonough is a consultant CTO and software developer, currently based between Berlin and London.

Follow Andrew on Twitter or Connect on LinkedIn