• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Help me in date format

i have two format of date 17.02.2014 and 17-Feb-2014 but don't change date format but required after 4 month date from both format 17-May-2014
 
Hi Rahul,

These two formats are in different cells, say A1 & B1?

So after 4 months both cells should have the date as 17-Feb-2014?

Is this you want or illustrate on a file.

Regards,
 
Warranty S
17.02.2014
17.02.2014
17.02.2014
17.02.2014
17.02.2014
17.02.2014
17.02.2014
17.02.2014
17.02.2014
17.02.2014
17.02.2014
17.02.2014
17.02.2014
17.02.2014
17.02.2014
17.02.2014
17-Feb-14
17-Feb-14
17-Feb-14
17-Feb-14
this type of data i have in excel and i want after 3 month date 17-may-2014
 
Hi Rahul ,

Can you confirm what is your system date format ?

I have opened Khalid's file in Excel 2010 , and everything is OK.

Narayan
 
Just an alternate solution:

=IF(ISNUMBER(FIND(".",C4)),SUBSTITUTE(C4,".02.",".05."),DATE(YEAR(C4),MONTH(C4)+3,DAY(C4)))

But you will not get actual dates if the condition is TRUE.
 
Hi Jitendra ,

That is the reason the formula will not work ; even after replacing the period "." with the slash "/" , 17/02/2014 is not a valid date , since the format is mm/dd/yyyy.

One way is to use the following formula :

=IF(TYPE(C10)=1,EDATE(C10,3),EDATE(DATE(RIGHT(C10,4),MID(C10,4,2),LEFT(C10,2)),3))

where C10 is a cell which has the date in the format 17.02.2014 or 17-May-2014.

Narayan
 
Back
Top