Converting Dates in MS Excel
A reader asked if there was any formula in Excel that would convert a date shown in the European format of day-month-year to the U.S. version of month-day-year. Technically, it may not be necessary to do this. Excel maintains dates as numeric values and displays them using various formats. If the dates are numeric values in your worksheet, then you can simply change the format and the dates will be displayed in the U.S. format.
The day you see in a worksheet could instead be a text value rather than a numeric value. To see if the date is truly an Excel date or text value, you can change the format of the cell or cells to General.
To change the format of the cells to General, Click on Format | Cells and click on the Number tab.
If it is text, you will see no difference in the display. If it is a date value, the date will have changed to a number that represents the number of days since whatever base date your system is using, which is usually January 1, 1900.
If your dates are truly date values, you can simply change the format of the cell or cells to whatever date format you would like to use.
If, however, your dates are text values, you will need to convert them to true date values so that they can be formatted as described above. You can do this by using a formula to do the conversion for you.
If you have a text date in cell A1 in the format of dd/mm/yyyy, then you can use the formula below:
=DATE (VALUE (RIGHT (A1),4), VALUE (MID(A1,4,2,)), VALUE (LEFT(A1,2)))
The result of the formula above is a date serial number that is recognized and can be formatted by Excel.
Suppose you have a list of mixed dates in your worksheet. Look at the list below:
If these numbers were entered into an Excel worksheet, the first twelve dates (1/1/08 through 12/1/08) are parsed by Excel as January 1, 2008 through December 1, 2008. The next five dates are parsed as text since Excel doesn't by default recognize that the dates are in d-m-y format. If you have a lot of dates like this, you can quickly convert them to real dates without the use of formulas.
Follow the steps below:
- Select all cells containing the dates -- both the date and text values.
- Start the Text to Columns wizard by selecting Text to Columns from the Data Menu on your Standard toolbar.
- In version 2007, select Text to Columns from the Data tab of the Ribbon. Word will display the first step of the Convert Text to Columns wizard.
- Choose Fixed Width and click Next. If you see any column break indicators in the dialog box, dispose of them by double-clicking on them. You do not want these indicators because you do not want MS Excel to think you have static breaking places for your data.
- Click Next.
- In the Column Date Format section of the dialog box, click the Date radio button.
- Click the drop-down arrow next to date format.
- Select DMY.
- Click Finish.
Your data is now converted to date values that Excel recognizes and can work with.
When you become a member at CarolsCornerOffice.com, you have access to this and many, many more articles that include screenshots. Don't delay: visit us today!
Most popular articles
- Which Processor is Better: Intel or AMD? - Explained
- How to Prevent Ransomware in 2018 - 10 Steps
- 5 Best Anti Ransomware Software Free
- How to Fix: Computer / Network Infected with Ransomware (10 Steps)
- How to Fix: Your Computer is Infected, Call This Number (Scam)
- Scammed by Informatico Experts? Here's What to Do
- Scammed by Smart PC Experts? Here's What to Do
- Scammed by Right PC Experts? Here's What to Do
- Scammed by PC / Web Network Experts? Here's What to Do
- How to Fix: Windows Update Won't Update
- Explained: Do I need a VPN? Are VPNs Safe for Online Banking?
- Explained: VPN vs Proxy; What's the Difference?
- Explained: Difference Between VPN Server and VPN (Service)
- Forgot Password? How to: Reset Any Password: Windows Vista, 7, 8, 10
- How to: Use a Firewall to Block Full Screen Ads on Android
- Explained: Absolute Best way to Limit Data on Android
- Explained: Difference Between Dark Web, Deep Net, Darknet and More
- Explained: If I Reset Windows 10 will it Remove Malware?
My name is Dennis Faas and I am a senior systems administrator and IT technical analyst specializing in cyber crimes (sextortion / blackmail / tech support scams) with over 30 years experience; I also run this website! If you need technical assistance , I can help. Click here to email me now; optionally, you can review my resume here. You can also read how I can fix your computer over the Internet (also includes user reviews).
We are BBB Accredited
We are BBB accredited (A+ rating), celebrating 21 years of excellence! Click to view our rating on the BBB.