Solved

convert string to date

Posted on 2014-03-07
3
578 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar 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…

705 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