Converting a text date to numnerical date

Flashboy

New Member
Joined
May 8, 2014
Messages
19
Hi guys

I have data that come in the following format 12-Oct-2017, how can I change this date to become 12/10/2017

Thanks

Flash
[TABLE="width: 179"]
<colgroup><col width="239" style="width: 179pt; mso-width-source: userset; mso-width-alt: 8740;"> <tbody>[TR]
[TD="class: xl64, width: 239, bgcolor: #C6EFCE"]

[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Re: Help needed Converting a text date to numnerical date

You have a couple of options here.

What I would do in this scenario, is highlight the column with the text dates > Data > Text to Columns > Next > Next > Date: DMY > Finish.

Then you can format it however you'd like.
 
Upvote 0
Re: Help needed Converting a text date to numnerical date

It depends if it's recognised as a date or whether it's text. Three options:

1. If the cell is a recognised date, highlight the cell, press Ctrl+1 and select a Custom Number format - use "dd/mm/yyyy"
2. If the cell is recognised as text, use a formula e.g.:
Code:
=DATEVALUE(A1)
You can then use Ctrl+1 on the new cell to set the right date format.
3. If you want the output as text (and not a date) then you could use:
Code:
=TEXT(DATEVALUE(A1),"dd/mm/yyyy")

WBD
 
Upvote 0
Re: Help needed Converting a text date to numnerical date


Excel 2010
ABCDEFG
112-Oct-201712/10/17If an actual date, custom format to your preference B1
212-Oct-201712/10/17Add 0 and custom format.
3
1b
Cell Formulas
RangeFormula
B1=A1
B2=A2+0


Add 0 to the text to convert to a number and custom format. N.B. I recommend for clarity 12-Oct-17 or 12-Oct-2017
Custom format dd/mm/yy
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top