check whether the character is space / CHAR(32) =CODE(A1) if this formula returns 32 then use TRIM if this formual returns other numbers that 32 (space) use SUBSTITUTE
On Wed, May 18, 2011 at 2:43 PM, anandydr <anand...@gmail.com> wrote: > At times the space is leading space which is not completely removed > using TRIM ( ) could anyone suggest what to do in such case? > > On May 18, 3:38 am, "STDEV(i)" <setiyowati.d...@gmail.com> wrote: > > sometimes what we thought as the space (as prefix or suffix) turns out to > be > > *Char (160)*so we need formula like this > > =SUBSTITUTE(A1,CHAR(160),"") > > > > On Sun, May 15, 2011 at 12:48 PM, Prabhu <prabhugate...@gmail.com> > wrote: > > > Hi friends, > > > How to remove spaces(bugs) in a particular cell either will be as > > > prefix or suffix before or after number or text. > > > Regards, > > > Prabhu > > -- ---------------------------------------------------------------------------------- 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