PC Review


Reply
Thread Tools Rate Thread

how do I get a simple #"123" from 1 2 3 ? Spaces between numbers

 
 
Chris
Guest
Posts: n/a
 
      21st Feb 2009
Visa put SPACES between all the numbers. (e.g. 1 2 3 . 4 5 )


How do I get back to a 123.45?


 
Reply With Quote
 
 
 
 
Fred Smith
Guest
Posts: n/a
 
      21st Feb 2009
Try:

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

Regards,
Fred.

"Chris" <(E-Mail Removed)> wrote in message
news:028FE69D-F978-44DE-AC08-(E-Mail Removed)...
> Visa put SPACES between all the numbers. (e.g. 1 2 3 . 4 5 )
>
>
> How do I get back to a 123.45?
>
>


 
Reply With Quote
 
OssieMac
Guest
Posts: n/a
 
      21st Feb 2009
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?
>
>

 
Reply With Quote
 
Ashish Mathur
Guest
Posts: n/a
 
      21st Feb 2009
Hi,

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

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Chris" <(E-Mail Removed)> wrote in message
news:028FE69D-F978-44DE-AC08-(E-Mail Removed)...
> Visa put SPACES between all the numbers. (e.g. 1 2 3 . 4 5 )
>
>
> How do I get back to a 123.45?
>
>

 
Reply With Quote
 
OssieMac
Guest
Posts: n/a
 
      21st Feb 2009
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?
> >
> >

 
Reply With Quote
 
MartinW
Guest
Posts: n/a
 
      21st Feb 2009
Hi Chris,

The simplest way is to use Edit>Replace.

Select all of your data first, then go to Edit>Replace.
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" <(E-Mail Removed)> wrote in message
news:028FE69D-F978-44DE-AC08-(E-Mail Removed)...
> Visa put SPACES between all the numbers. (e.g. 1 2 3 . 4 5 )
>
>
> How do I get back to a 123.45?
>
>


 
Reply With Quote
 
Shane Devenshire
Guest
Posts: n/a
 
      21st Feb 2009
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert numbers to date: "586" to read "May 1986" CEckels Microsoft Excel Worksheet Functions 0 13th May 2009 10:28 PM
Validation ?:Accepting both Numbers AND specific letters("N","n"," Antonio Microsoft Excel Misc 2 22nd Apr 2008 05:07 PM
Wrong data returned on "Between" "And" parameter in simple query =?Utf-8?B?Sm9l?= Microsoft Access Queries 7 10th Jul 2006 03:34 AM
help poor at answering "simple" ?'s. "can use wildcard w instr?" =?Utf-8?B?RG93bm1hbg==?= Microsoft Access 2 9th Sep 2005 12:33 AM
Re: EXCEL Can I use "countif" or "sumif" on a range for numbers BOTH . Andy Brown Microsoft Excel Misc 1 30th Sep 2004 08:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:23 AM.