Helpdesk Baruch College

Exactly How to Convert Text to Date Values in Microsoft Excel

Analysis of company information commonly calls for collaborating with day worths in Excel to answer concerns such as “how much money did we make today” or “how does this contrast to the same day recently?” Which can be hard when Excel does not identify the values as dates.

Unfortunately, this is not uncommon, specifically when multiple customers are inputting this information, copying as well as pasting from various other systems and importing from data sources.

In this short article, we will certainly define four different scenarios and also the remedies to transform the message to date values.

Dates that Contain a Full Stop/Period

Most likely among the most typical errors newbies make when typing days right into Excel is doing so with the full stop character to separate the day, month, as well as year.

Excel will not recognize this as a date value and also will go on and also store it as text. Nevertheless, you can resolve this problem with the Find and also Replace device. By changing the full stops with slashes (/), Excel will immediately determine the values as days.

Select the columns on which you wish to do the locate and also replace.

Click Home > > Find & Select > > Replace– or press Ctrl+H.

In the Find and also Replace window, type a full stop (.) in the “Find what” field as well as a slash (/) in the “Replace with” field. After that, click “Replace All.”

All full stops are converted to slashes and Excel recognizes the new format as a day.

If your spreadsheet information is consistently altering, and you desire an automatic service for this circumstance, you might utilize the SUBSTITUTE feature.

The SUBSTITUTE feature is a text function, so can not convert it to a date on its own. The VALUE feature will transform the text value to a numerical value.

The outcomes are shown listed below. The worth needs to be formatted as a date.

You can do this using the “Number Format” checklist on the “Home” tab.

The instance below of a full stop delimiter is typical. Yet you can use the same strategy to replace or replace any delimiter personality.

Transforming the yyyymmdd Format

If you get days in the layout revealed below, it will certainly need a various method.

This style is fairly basic in modern technology as it removes any type of uncertainty regarding exactly how various general store their day worths. Nevertheless, Excel will not at first understand it.

For a quick hand-operated service, you might utilize Text to Columns.

Select the series of worths you need to convert and after that click Data > > Text to Columns.

The Text to Columns wizard appears. Click “Next” on the very first 2 actions to ensure that you go to action three, as displayed in the picture below. Choose Date and then select the date format being utilized in the cells from the list. In this example, we are handling a YMD layout.

If you would certainly like a formula remedy, then you can use the Date function to build the date.

This would certainly be made use of together with the message operates Left, Mid and Right to extract the 3 parts of a day (day, month, year) from the cell components.

The formula below programs this formula using our example data.

Utilizing either of these techniques, you can transform any eight-digit number value. For example, you might receive the day in a ddmmyyyy style or a mmddyyyy layout.

DATEVALUE and also VALUE Functions

Occasionally the problem is not caused by a delimiter personality but has an awkward date structure merely due to the fact that it is stored as message.

Below is a listing of dates in a variety of frameworks, but they are all recognizable to us as a date. Unfortunately, they have been kept as text and also need converting.

For these scenarios, it is very easy to convert making use of a range of strategies.

For this write-up, I wanted to mention two features to manage these situations. They are DATEVALUE and also VALUE.

The DATEVALUE feature will convert text right into a day value (most likely saw that coming), while the VALUE function will convert text right into a common number value. The distinctions in between them are very little.

In the photo above, among the worths contains time info also. Which will be a demo of the features’ small distinctions.

The DATEVALUE formula below would certainly transform every one to a day value.

Notification exactly how the time was eliminated from the cause row 4. This formula purely returns just the date value. The outcome will certainly still require to be formatted as a date.

The adhering to formula makes use of the VALUE feature.

This formula will produce the very same results except for in row 4, where the time value is likewise maintained.

The outcomes can then be formatted as date as well as time, or as a date to hide the moment worth (however not eliminate).

Exit mobile version
Skip to toolbar