Dear Vijay, For Excel 2007+, you can use conditional formatting.
Let us assume you are formatting M1 Select M1 Format/cells/Number/Custom Type: dt\h mmmm yyyy Then select Conditional Formatting: New Rule Formula: =OR(DAY(M1)=3,DAY(M1)=23) Format/Number/Custom Type: d\r\d mmmm yyyy New Rule Formula: =OR(DAY(M1)=2,DAY(M1)=22) Format/Number/Custom/Type: d\n\d mmmm yyyy New Rule Formula: =OR(DAY(M1)=1,DAY(M1)=21,DAY(M1)=31) Format/Number/Custom/Type: d\st mmmm yyyy 2012/1/18 ♥.•:*¨¨*:•.♥.•:V.Kiran Kumar :•.♥.•:*¨¨*:•.♥ < vadnalaki...@gmail.com> > Dear Experts > > > How can I change the date in excel as per following format (1st, 2nd, 3rd > ,4th ) > > 1st January, 2012 > > 2nd January, 2012 > > 3rd January, 2012 > > 4th January, 2012 > > > I shall be thankful if anybody can assist > > > Regards > > V.Kiran Kumar > > > > > > > > > > -- > 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 > -- Thanks & regards, Noorain Ansari *http://excelmacroworld.blogspot.com/*<http://excelmacroworld.blogspot.com/> *http://noorain-ansari.blogspot.com/* <http://noorain-ansari.blogspot.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