convert a no to date (dd/mm/yyyy)

Gohar Shahab

Active Member
Joined
May 17, 2006
Messages
339
I have following imported nos which i want to convert into dates on format dd/mm/yyy
Book6
ABCD
191270
220775
3140700
430902
530254
640364
Sheet1
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Try

=DATE(RIGHT(A1,2),MID(A1,LEN(A1)-3,2),LEFT(A1,LEN(A1)-4))

Might be giving wrong results for some cells.
 
Upvote 0
Try this:
Code:
=--TEXT(A1,"00\/00\/00")
Format the cell as a date

or...perhaps you could use Text-to-columns to convert the
numbers to dates. (not sure where that is located in XL2007)
Set the column to the appropriate DMY or MDY configuration.


Does that help?
 
Upvote 0

Forum statistics

Threads
1,203,072
Messages
6,053,378
Members
444,660
Latest member
Mingalsbe

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