Get the latest insights
delivered straight to your inbox
Feb 11, 2019
Microsoft Excel: Excelling at The Dating Game
Philip Wiest, Guest Blogger
Today's blog is by trainer and guest blogger, Phil Wiest, PMP® PMI-ACP® PMI-PBA® Microsoft Office Master®. Phil is a sought-after trainer on Excel topics because he makes it so simple that even a novice can become proficient very quickly. You can see more about Phil here on his LinkedIn page.
=========================================
Not long ago, I overheard Dave at the water cooler.
“I can’t get a date for Valentine’s Day!”
“What?” I asked.
“Well it’s not me, it’s Excel. I can’t get a date for Valentine’s Day in Excel!
SkillTip: Fortunately for Dave, a secret Excel Magic trick could save the day!
Excel and Dates
Have you ever opened an Excel workbook with messed up data?
Who hasn’t?
In this case it’s a matter of system generated dates – like “20190214” (to some people, Valentine’s Day)
When there’s a date in Excel that’s not recognized as a date, you’ve got a dating problem.
Excel doesn’t have trouble doing calculations with “slash-dates” or “dash-dates,” but when there’s a date that doesn’t look like a date to Excel, what do you do? (Excel thinks you have 20,146,716 days to go!)
Fake dates don’t work when doing calculations.
When you’re needing to calculate important things like:
- The number of days until a deadline
- The number of years until retirement
- The number of years you’ve been dating
You need to convert fake dates to real dates using today’s Text-To-Columns Trick
The Secret Text to Columns (for Dates) Hack
The key to this hack is that the feature is titled, “Text to Columns” and you’re using it for numbers, not text! In this example, “20190214” is the pattern that means February 14, 2019, but was created as a string of numbers.
SkillTip: Perhaps you’ve encountered entries for transactions that are timestamped “20190214201500”. It’s an important date and you don’t want to be late! (Hint: 14 February 2019 at 8:15 PM)
Let’s say you’ve received an Excel workbook that’s loaded with dates that aren’t interpreted by Excel as dates.
SkillSteps: To convert the dates: Highlight the Fake Dates > Select Data > Data Tools > Text To Columns
Once you’ve opened the dialog, there are three steps to complete.
SkillSteps: In Step 1, confirm that Delimited is selected and click, Next.
SkillSteps: In Step 2, When you’re asked to identify the delimiter(s) > uncheck all the sample delimiters and click Next.
SkillTip: Delimiters are characters that separate sections of a cell. They could be commas, semi-colons, etc. But in this case, there are no delimiters!
SkillSteps: In Step 3, ensure Excel knows the date pattern is Year Month Day. Select Date > Select YMD (1) > Select the Destination Cell (2) > Finish (3)
Once you’ve clicked Finish… the transformation of those numbers to real dates is complete:
It’s time to celebrate. You’re finished…and you have plenty of time to go out on a real date… loving the way Excel and Text to Columns saved the day!
Because your date calculations finally work…
And all that’s left is to wish Dave and Text To Columns many happy years together!
Philip Wiest
Guest Blogger
Philip Wiest is an expert software trainer, computer analyst and database consultant who knows both the intricacies of computer systems and the ways today’s professionals need to use these essential business tools. Using his experience in Microsoft Excel and Microsoft Office, as well as Windows and the Internet, Phil uses a special mix of tactful guidance and distilled observation so his audiences learn and retain the critical keystrokes, application combinations and creative processes that save time and simplify computer use.
Latest Articles
Article Topics