LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default How to remove space from a cell.

Your formula is replacing spaces with spaces
=SUBSTITUTE(A115," "," ")
Try changing that to..the below (Note the different between the find string
(" ") and replace string ("")

=SUBSTITUTE(A115," ","")
OR
=SUBSTITUTE(A115,CHAR(32),)


If this post helps click Yes
---------------
Jacob Skaria


"Munfarid" wrote:

May be the following with help you to understand the issue:

The cell A1 contain "4353495894385 ".
When i use the formula =LEN(A1), the result is "18"

but when i use the formula =SUBSTITUTE(A115," "," "), the result is also
comes at '18'. The result should rather be '13'. This indicates that the
later portion of the numberstring is appeared to be 'spaces' which the
substitute formula is not recognising.

I hope you got my point. If not, please advise.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove space in front of number in a cell? Barcelona Excel Worksheet Functions 5 September 18th 08 02:43 PM
Macro to remove space at front and end of a cell yhoy Excel Discussion (Misc queries) 2 February 22nd 08 09:53 PM
How to remove a space Kevin Excel Discussion (Misc queries) 5 July 20th 07 01:24 PM
How do I remove a space infront of text in a cell? GAC Excel Discussion (Misc queries) 7 October 10th 06 01:41 AM
Function to remove a space from text in cell WITHOUT macro?? [email protected] Excel Worksheet Functions 5 May 28th 05 02:28 AM


All times are GMT +1. The time now is 01:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"