date entry

A

aditya

In cell A1, data is of 10 digit whose last 6 digit is in form of ddmmyy.
how can i get date, month and year in cell A2 from this.

e.g. A1 A2
UPR/010209 01 FEB 09
 
J

Jarek Kujawa

format as "dd mmm yy"

=DATE("20"&RIGHT(A1,2),MID(A1,7,2),MID(A1,FIND("/",A1)+1,2))

this formula will give you "01 feb 09"

pls click YES if this helped
 
D

David Biddulph

If ddmmyy is the format of short dates in your Windows regional settings,
then use
=--TEXT(RIGHT(A1,6),"00\-00\-00") and format as date.
 
J

Jacob Skaria

Assuming the century will always be 20

=DATE(VALUE("20" & RIGHT(A1,2)),MID(A1,7,2),MID(A1,5,2))

If this post helps click Yes
 
A

aditya

It works well if data is there in A1 but shows value error when A1 cell is
blank.
i want the cell blank if A1 is blank.
what should i do?
 
A

aditya

It works well if data is there in A1 but shows value error when A1 cell is
blank.
i want the cell blank if A1 is blank.
what should i do?
 
A

aditya

It works well if data is there in A1 but shows value error when A1 cell is
blank.
i want the cell blank if A1 is blank.
what should i do?
 
J

Jarek Kujawa

=IF(LEN(A1)=0,"",DATE("20"&RIGHT(A1,2),MID(A1,7,2),MID(A1,FIND
("/",A1)+1,2)) )
 
J

Jarek Kujawa

simpler

=IF(LEN(A1),DATE("20"&RIGHT(A1,2),MID(A1,7,2),MID(A1,FIND
("/",A1)+1,2)),"")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

date & month 6
display month only 4
date entry new 3
simple week entry 2
Dates In Excel 5
week entry new 3
How to change the year digit? 4
Formulating The Price with Various Condition and Counting 0

Top