Solved

convert string to date

Posted on 2014-03-07
3
568 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
  • 2
3 Comments
 
LVL 8

Expert Comment

by:itjockey
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:
itjockey 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

744 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now