or try this one.. for any format

=TEXT(B2,"0000-00-00")+0

On Sat, Jan 21, 2012 at 10:14 AM, xlstime <xlst...@gmail.com> wrote:

> Hi Ashish,
>
> use this formula (if you date format is same 20120121 )
>
> *=DATEVALUE(CONCATENATE(LEFT(B2,4),"-",MID(B2,5,2),"-",RIGHT(B2,2)))*
>
>
> On Sat, Jan 21, 2012 at 9:50 AM, Ashish Bhalara <ashishbhalar...@gmail.com
> > wrote:
>
>> Dear experts,
>>
>> I want to change date format from 20120121 or 21012012 to 21-Jan-2012,
>> because excel not count as an date format if I replace "-" or "/" character
>> between date,month and year. Is there any function to convert this type of
>> number in proper date format? Because this type of date generate from DOS
>> base software and its open in proper format in Excel-2010, I use Excel-2007
>> in which this type of date is not display in date format.
>>
>> Thanks & regards
>>
>> Ashish Bhalara
>>
>>  --
>> FORUM RULES (986+ members already BANNED for violation)
>>
>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>> will not get quick attention or may not be answered.
>>
>> 2) Don't post a question in the thread of another member.
>>
>> 3) Don't post questions regarding breaking or bypassing any security
>> measure.
>>
>> 4) Acknowledge the responses you receive, good or bad.
>>
>> 5) Cross-promotion of, or links to, forums competitive to this forum in
>> signatures are prohibited.
>>
>> NOTE : Don't ever post personal or confidential data in a workbook. Forum
>> owners and members are not responsible for any loss.
>>
>>
>> ------------------------------------------------------------------------------------------------------
>> To post to this group, send email to excel-macros@googlegroups.com
>>
>
>
>
> --
> .........................
>
>


-- 
.........................

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to