Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 788
Default how do I get a simple #"123" from 1 2 3 ? Spaces between numbers

Visa put SPACES between all the numbers. (e.g. 1 2 3 . 4 5 )


How do I get back to a 123.45?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default how do I get a simple #"123" from 1 2 3 ? Spaces between numbers

Try:

=--substitute(a1," ","")

Regards,
Fred.

"Chris" wrote in message
...
Visa put SPACES between all the numbers. (e.g. 1 2 3 . 4 5 )


How do I get back to a 123.45?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,510
Default how do I get a simple #"123" from 1 2 3 ? Spaces between numbers

Hi Chris,

Back up up your data before you do this incase spaces get removed in areas
that you do not want them removed.

Select the data with the unwanted spaces.
Select Replace (Under menu item Edit in versions up to xl2003 and in far
right of home ribbon in xl2007)

Press space once in the Find field and do not put anything in the replace
field and then click Replace All.


--
Regards,

OssieMac


"Chris" wrote:

Visa put SPACES between all the numbers. (e.g. 1 2 3 . 4 5 )


How do I get back to a 123.45?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default how do I get a simple #"123" from 1 2 3 ? Spaces between numbers

Hi,

Try this =SUBSTITUTE(E10," ","")

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Chris" wrote in message
...
Visa put SPACES between all the numbers. (e.g. 1 2 3 . 4 5 )


How do I get back to a 123.45?


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,510
Default how do I get a simple #"123" from 1 2 3 ? Spaces between numb

Hi again Chris,

If my previous post does not work then the spaces maybe non printable
characters that are not really spaces. Try using Clean function.

You will need a helper column beside the column of data and place the Clean
function in the helper column.
Example:

=CLEAN(A2)

Copy the function down to bottom of data and then select the column and
Copy - Past special - Values.
--
Regards,

OssieMac


"OssieMac" wrote:

Hi Chris,

Back up up your data before you do this incase spaces get removed in areas
that you do not want them removed.

Select the data with the unwanted spaces.
Select Replace (Under menu item Edit in versions up to xl2003 and in far
right of home ribbon in xl2007)

Press space once in the Find field and do not put anything in the replace
field and then click Replace All.


--
Regards,

OssieMac


"Chris" wrote:

Visa put SPACES between all the numbers. (e.g. 1 2 3 . 4 5 )


How do I get back to a 123.45?




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 41
Default how do I get a simple #"123" from 1 2 3 ? Spaces between numbers

Hi Chris,

The simplest way is to use EditReplace.

Select all of your data first, then go to EditReplace.
Find what: put a space in the box.
Replace with: leave this box empty.
Then click Replace All.

If this data came from the net you may have non-breaking spaces as well.
To get rid of them repeat the same process but use a non-breaking space in
place
of the normal space.
To type a non-breaking space hold down the Alt key and type 0160 on the
number pad only, and then let go of the Alt key.

If you do this as a two step operation don't forget to delete the normal
space
before you start the next step.

You may also want to look in the help file for the TRIM and CLEAN functions.


HTH
Martin





"Chris" wrote in message
...
Visa put SPACES between all the numbers. (e.g. 1 2 3 . 4 5 )


How do I get back to a 123.45?



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default how do I get a simple #"123" from 1 2 3 ? Spaces between numbers

Hi,

As OssieMac pointed out the spaces may not be spacebars so using either a
formula or the Replace command may fail. If they don't work then try this:

Suppose the number is in cell A1
1 2 3 . 4 5
in B1 enter the formula
=CODE(MID(A1,2,1))
This will return the character code of the first space as a number such as
178.
In the substitute formula use
=SUBSTITUTE(A1,CHAR(178),"")
for the Replace command highlight the space in the cell and copy it (just
the space), choose the Edit, Replace command and click in the Find what box
and press Ctrl V. Leave the Replace with box empty and choose Replace All.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Chris" wrote:

Visa put SPACES between all the numbers. (e.g. 1 2 3 . 4 5 )


How do I get back to a 123.45?


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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
any formula to convert numbers in word form, e.g. "2" as "Two"? Neeraj Excel Worksheet Functions 1 May 26th 08 01:03 PM
Validation ?:Accepting both Numbers AND specific letters("N","n"," Antonio Excel Discussion (Misc queries) 2 April 22nd 08 05:07 PM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


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