Dear Sanjib, Replaces each nonbreaking space character (Unicode value of 160) with a space character (ASCII value of 32) by using the SUBSTITUTE function, and then removes the leading and multiple embedded spaces from the string " BD 122" (BD 112)
-- Thanks & regards, Noorain Ansari *http://excelmacroworld.blogspot.com/*<http://excelmacroworld.blogspot.com/> *http://noorain-ansari.blogspot.com/* <http://noorain-ansari.blogspot.com/> On Tue, Oct 25, 2011 at 2:39 PM, Sanjib Chatterjee < chatterjee.kolk...@gmail.com> wrote: > Thank you, > > It is working fine. > would you explain why have you use char(160), char(32) in that formula? > > > > > > On Tue, Oct 25, 2011 at 2:28 PM, noorain.ansari > <noorain.ans...@gmail.com>wrote: > >> 2:28 PM noorain.ansari: =TRIM(SUBSTITUTE(A2,CHAR(160),CHAR(32))) >> > > -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel