Solved

Outlook Date Text into Excel cell does not become date field

Posted on 2014-01-29
6
418 Views
Last Modified: 2014-02-03
I was hoping someone can tell me why when I copy a date from Outlook's email header and paste it into an Excel worksheet cell that Excel is not smart enough to convert it to a date time field.

e.g.
Tue 28/01/2014 3:21 PM

N.B. Field above is in non-US / rest of the world format...;)
0
Comment
Question by:Michael Green
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 18

Expert Comment

by:Steven Harris
ID: 39819831
Excel is not smart enough to convert it to a date time field.

"Tue 28/01/2014 3:21 PM" is not a standard date format for Excel.  While Excel is not sure how to process your information without further input, such as cell formatting, I would say that Excel is far from "stupid".
0
 

Author Comment

by:Michael Green
ID: 39819842
I'm afaid I don't understand your response.  What information is missing that would stop Excel from being able to process this date and time string ?
0
 
LVL 23

Expert Comment

by:Danny Child
ID: 39820471
The problem here is that Outlook is trying to be helpful by giving the day Name (Tue), which is unnecessary info as far as Excel is concerned.

The easiest way is to strip this out
=VALUE(RIGHT(B3,LEN(B3)-4))

This basically converts the date into a numerical value by ignoring the first 4 characters.
I've used the LEN function to accommodate the possiblity that the times and dates may have different lengths eg
28/01/2014 3:21 PM - is 18 characters long, but you could also have
28/01/2014 12:21 PM -  at 19 characters, or
2/01/2014 3:21 PM - 17 characters - but I think Outlook may pad this one out with a leading 0...
0
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
LVL 23

Accepted Solution

by:
Danny Child earned 500 total points
ID: 39820475
of course, need to set a Custom format on the cell with the formula:
dd/mm/yyyy hh:mm:ss
0
 

Author Comment

by:Michael Green
ID: 39828226
Great solution / work-around Dan.  However I'm still puzzled as to why Microsoft wouldn't make it so that Excel can handle an Outlook date text without this extra effort.
0
 
LVL 23

Expert Comment

by:Danny Child
ID: 39831118
in fairness, in 20 years in IT Support, I've never been asked this before... But that's one of the reasons I like EE, to find new questions!  I'd be interested to hear the context of the question if you're bored...

But the real reason for the problem, is that Office has its own product teams, doing things their own way, and it's like that, that's the way it is....

My favourite clash is that CTRL+F in most Office apps is Find,  but in Outlook it's Forward...!  Outlook uses CTRL+E (in some views, at least...)
0

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question