Hello Excel Geniuses!
I have a some dates in a format which are not being converted into the normal date format. So i made this formula to convert it into the normal date format:
=IF(LEN(B218)=10,(MID(B218,4,2)&"/"&LEFT(B218,2)&"/"&RIGHT(B218,4))+0,IF(LEN(B218)=9,(MID(B218,3,2)&"/"&LEFT(B218,1)&"/"&RIGHT(B218,4))+0,IF(LEN(B218)=8,(MID(B218,3,1)&"/"&LEFT(B218,1)&"/"&RIGHT(B218,4))+0,"")))
Formula is working fine except on this type of date "9/9/2013"..i also tried an OR formula with mid but didnt get the desired result. Kindly help me out..
These are the type of dates:
[TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl63, width: 92"]12/10/2013
[TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]12/9/2013
[TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]9/11/2013
[TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]9/9/2013
[TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]7/25/2013
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
I have a some dates in a format which are not being converted into the normal date format. So i made this formula to convert it into the normal date format:
=IF(LEN(B218)=10,(MID(B218,4,2)&"/"&LEFT(B218,2)&"/"&RIGHT(B218,4))+0,IF(LEN(B218)=9,(MID(B218,3,2)&"/"&LEFT(B218,1)&"/"&RIGHT(B218,4))+0,IF(LEN(B218)=8,(MID(B218,3,1)&"/"&LEFT(B218,1)&"/"&RIGHT(B218,4))+0,"")))
Formula is working fine except on this type of date "9/9/2013"..i also tried an OR formula with mid but didnt get the desired result. Kindly help me out..
These are the type of dates:
[TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl63, width: 92"]12/10/2013
[TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]12/9/2013
[TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]9/11/2013
[TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]9/9/2013
[TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]7/25/2013
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]