
- MS Excel Basics
- Excel - Home
- Excel - Getting Started
- Excel - Explore Window
- Excel - Backstage
- Excel - Entering Values
- Excel - Move Around
- Excel - Save Workbook
- Excel - Create Worksheet
- Excel - Copy Worksheet
- Excel - Hiding Worksheet
- Excel - Delete Worksheet
- Excel - Close Workbook
- Excel - Open Workbook
- Excel - Context Help
- Editing Worksheet
- Excel - Insert Data
- Excel - Select Data
- Excel - Delete Data
- Excel - Move Data
- Excel - Rows & Columns
- Excel - Copy & Paste
- Excel - Find & Replace
- Excel - Spell Check
- Excel - Zoom In-Out
- Excel - Special Symbols
- Excel - Insert Comments
- Excel - Add Text Box
- Excel - Undo Changes
- Formatting Cells
- Excel - Setting Cell Type
- Excel - Setting Fonts
- Excel - Text Decoration
- Excel - Rotate Cells
- Excel - Setting Colors
- Excel - Text Alignments
- Excel - Merge & Wrap
- Excel - Borders and Shades
- Excel - Apply Formatting
- Formatting Worksheets
- Excel - Sheet Options
- Excel - Adjust Margins
- Excel - Page Orientation
- Excel - Header and Footer
- Excel - Insert Page Breaks
- Excel - Set Background
- Excel - Freeze Panes
- Excel - Conditional Format
- Working with Formula
- Excel - Creating Formulas
- Excel - Copying Formulas
- Excel - Formula Reference
- Excel - Using Functions
- Excel - Builtin Functions
- Advanced Operations
- Excel - Data Filtering
- Excel - Data Sorting
- Excel - Using Ranges
- Excel - Data Validation
- Excel - Using Styles
- Excel - Using Themes
- Excel - Using Templates
- Excel - Using Macros
- Excel - Adding Graphics
- Excel - Cross Referencing
- Excel - Printing Worksheets
- Excel - Email Workbooks
- Excel- Translate Worksheet
- Excel - Workbook Security
- Excel - Data Tables
- Excel - Pivot Tables
- Excel - Simple Charts
- Excel - Pivot Charts
- Excel - Keyboard Shortcuts
- MS Excel Resources
- Excel - Quick Guide
- Excel - Useful Resources
- Excel - Discussion
How to Convert Text Datetime Format to Real Datetime Format in Excel?
Sometimes in Excel, you can see that the date and time are given in the form of strings, and you will not be able to perform operations related to data and time with those values. So, it is very important for us to convert these kinds of formats into the correct format. If we try to do this manually, it can be time-consuming and sometimes inaccurate. We can complete this task using the formulas to get more accurate results and save a lot of time.
Read this tutorial to learn how you can convert text date and time formats to real date and time formats in Excel. The original format that is used to represent data time is known as "real date time" format. We finish this task in Excel by using the DATEVALUE and TIME VALUE functions.
Converting Text Datetime Format to Real Datetime Format in Excel
In this case, we'll use the DATEVALUE and TIMEVALUE formulas to get one result, and then use the autofill handle to get all of the other results. Let's look at a simple procedure for converting seconds to time in Excel.
Step 1
Consider the following image of an excel sheet that contains datetime formatted information for text values.

Now, in cell B2, click on an empty cell and enter the formula as follows −
=DATEVALUE(TEXT(A2,"YYYY-MM-DD"))+TIMEVALUE(TEXT(A2,"HH:MM")) and click Enter to get our first result, which looks similar to the below image. In the formula, A2 is the address of the cell where our value is present on the sheet.
Empty cell > Formula > Enter

Step 2
Then drag down from the first result using the auto-fill handle to get all the results similar to the below image.

Step 3
Now we need to format the cells to complete our task. To do so, select the values, then right-click and select format cells, click on "Custom," enter the type as m/d/yyyy h:mm, select the date and time formats, and click OK.
Select data > Right click > Format cell > Custom > m/d/yyyy h:mm > OK

Conclusion
In this tutorial, we used a simple example to demonstrate how you can convert text datetime format to real data time format in Excel.
- Related Articles
- How to Convert yyyymmddhhmmss Date Format to Normal Datetime in Excel?Datetime in Excel?
- How to convert C# DateTime to “YYYYMMDDHHMMSS” format?
- How to convert string to 24-hour datetime format in MySQL?
- How to convert MySQL DATETIME value to JSON format in JavaScript?
- Convert \"unknown format\" strings to datetime objects in Python
- String format for DateTime in C#
- How do I re-format datetime in MySQL?
- Add10 minutes to MySQL datetime format?\n\n
- Insert current date in datetime format MySQL?
- How to convert JavaScript datetime to MySQL datetime?
- Adding a day to a DATETIME format value in MySQL?
- Input type DateTime Value format with HTML
- How to use MySQL FROM_UNIXTIME() function to return datetime value in numeric format?
- How do you display JavaScript datetime in 12hour AM/PM format?
- How to Convert Scientific Notation to X10 Format in Excel?
