Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Joe Joe is offline
external usenet poster
 
Posts: 476
Default Discovering No-BREAK Space in cell Data

Having imported text data from a notepad file into excel as a column (A1:A5)
I had the word "eating" in A1 cell.

Using the formula =IF(A1="eating",TRUE,FALSE) in B1 gave FALSE
Also =IF(A1="eating ",TRUE,FALSE) in B1 gave
FALSE (note the extra blank after the ing )

However typing eating into cell A1 gives TRUE

Using =MID(A1,7,1) returns a blank cell which has character code
value of 160 (ASCII decimal) and from the INSERT/SYMBOLS Tabe it says it is a
"NO_BREAK SPACE"

How do I find all such possible occurences in my data since it can "ruin"
and confuse expected search results?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Discovering No-BREAK Space in cell Data

David McRitchie has a macro that cleans up this kind of stuff:

http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm



Joe wrote:

Having imported text data from a notepad file into excel as a column (A1:A5)
I had the word "eating" in A1 cell.

Using the formula =IF(A1="eating",TRUE,FALSE) in B1 gave FALSE
Also =IF(A1="eating ",TRUE,FALSE) in B1 gave
FALSE (note the extra blank after the ing )

However typing eating into cell A1 gives TRUE

Using =MID(A1,7,1) returns a blank cell which has character code
value of 160 (ASCII decimal) and from the INSERT/SYMBOLS Tabe it says it is a
"NO_BREAK SPACE"

How do I find all such possible occurences in my data since it can "ruin"
and confuse expected search results?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Discovering No-BREAK Space in cell Data

You can remove them entering this function in a spare column:
=SUBSTITUTE(A1,CHAR(160),"")
filled down as required.

Regards,
Stefi


€˛Joe€¯ ezt Ć*rta:

Having imported text data from a notepad file into excel as a column (A1:A5)
I had the word "eating" in A1 cell.

Using the formula =IF(A1="eating",TRUE,FALSE) in B1 gave FALSE
Also =IF(A1="eating ",TRUE,FALSE) in B1 gave
FALSE (note the extra blank after the ing )

However typing eating into cell A1 gives TRUE

Using =MID(A1,7,1) returns a blank cell which has character code
value of 160 (ASCII decimal) and from the INSERT/SYMBOLS Tabe it says it is a
"NO_BREAK SPACE"

How do I find all such possible occurences in my data since it can "ruin"
and confuse expected search results?

  #4   Report Post  
Posted to microsoft.public.excel.misc
Joe Joe is offline
external usenet poster
 
Posts: 476
Default Discovering No-BREAK Space in cell Data

Thanks for that solution it works.

"Stefi" wrote:

You can remove them entering this function in a spare column:
=SUBSTITUTE(A1,CHAR(160),"")
filled down as required.

Regards,
Stefi


€˛Joe€¯ ezt Ć*rta:

Having imported text data from a notepad file into excel as a column (A1:A5)
I had the word "eating" in A1 cell.

Using the formula =IF(A1="eating",TRUE,FALSE) in B1 gave FALSE
Also =IF(A1="eating ",TRUE,FALSE) in B1 gave
FALSE (note the extra blank after the ing )

However typing eating into cell A1 gives TRUE

Using =MID(A1,7,1) returns a blank cell which has character code
value of 160 (ASCII decimal) and from the INSERT/SYMBOLS Tabe it says it is a
"NO_BREAK SPACE"

How do I find all such possible occurences in my data since it can "ruin"
and confuse expected search results?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Discovering No-BREAK Space in cell Data

You are welcome! Thanks for the feedback!
Stefi


€˛Joe€¯ ezt Ć*rta:

Thanks for that solution it works.

"Stefi" wrote:

You can remove them entering this function in a spare column:
=SUBSTITUTE(A1,CHAR(160),"")
filled down as required.

Regards,
Stefi


€˛Joe€¯ ezt Ć*rta:

Having imported text data from a notepad file into excel as a column (A1:A5)
I had the word "eating" in A1 cell.

Using the formula =IF(A1="eating",TRUE,FALSE) in B1 gave FALSE
Also =IF(A1="eating ",TRUE,FALSE) in B1 gave
FALSE (note the extra blank after the ing )

However typing eating into cell A1 gives TRUE

Using =MID(A1,7,1) returns a blank cell which has character code
value of 160 (ASCII decimal) and from the INSERT/SYMBOLS Tabe it says it is a
"NO_BREAK SPACE"

How do I find all such possible occurences in my data since it can "ruin"
and confuse expected search results?

Reply
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
Break cell into multiple lines by line break Chia Excel Discussion (Misc queries) 1 August 20th 06 06:37 AM
space in cell wood1e Excel Discussion (Misc queries) 3 August 19th 06 09:05 AM
reformat a cell from last name, first to first space last? Shannon Excel Discussion (Misc queries) 5 June 24th 06 07:04 PM
space between y axis and data points.. Dave R. Charts and Charting in Excel 3 January 8th 05 04:56 AM
Removing a space within a cell JERRY8 Excel Worksheet Functions 3 December 2nd 04 03:22 AM


All times are GMT +1. The time now is 05:47 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"