Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
Solved

# convert string to date

Posted on 2014-03-07
Medium Priority
610 Views
is it possible to convert 20140228 to date 28/02/2014 with a formula
0
Question by:Jagwarman
• 2

LVL 8

Expert Comment

ID: 39912099
try this
``````=TEXT(DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2)),"YYYY/MM/DD")
``````
assumed Cell A1 = 20140228

Thanks
0

LVL 8

Accepted Solution

Naresh Patel earned 1500 total points
ID: 39912102
sorry just sequence change for year month date  try this
``````=TEXT(DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2)),"DD/MM/YYYY")
``````

Thanks
``````=TEXT(DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2)),"YYYY/MM/DD")
``````
0

LVL 13

Expert Comment

ID: 39912110
Assuming data in A1 cell
=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
then change date format as dd/mm/yyyy from custom formating.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
###### Suggested Courses
Course of the Month10 days, 1 hour left to enroll