Solved

convert string to date

Posted on 2014-03-07
3
574 Views
Last Modified: 2014-03-07
is it possible to convert 20140228 to date 28/02/2014 with a formula
0
Comment
Question by:Jagwarman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39912099
try this
=TEXT(DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2)),"YYYY/MM/DD")

Open in new window

  assumed Cell A1 = 20140228



Thanks
0
 
LVL 8

Accepted Solution

by:
Naresh Patel earned 500 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")

Open in new window


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

Open in new window

0
 
LVL 13

Expert Comment

by:Santosh Gupta
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question