Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 128
Default Spacing in cells is preventing addition

I copied and pasted a spreadsheet to EXCEL 2003 and the cells have spaces in
front of the numbers preventing the addition function. How do I fix this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Spacing in cells is preventing addition

On Sat, 9 Sep 2006 07:41:02 -0700, Kris wrote:

I copied and pasted a spreadsheet to EXCEL 2003 and the cells have spaces in
front of the numbers preventing the addition function. How do I fix this?


=--TRIM(A1)
=--SUBSTITUTE(TRIM(A1),CHAR(160),"")

CHAR(160) is a non-printing space frequently found in HTML documents.



--ron
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 128
Default Spacing in cells is preventing addition

Can you demonstrate,I tried and it is not working for me. Please see an
example below:

1,016.28 0.00
4,578.00 0.00
0.00 1,016.28
0.00 4,578.00
0.00 4,578.00
0.00 1,600.32
0.00 1,600.32

The grid did not copy: however, the above would be in cells.

"Ron Rosenfeld" wrote:

On Sat, 9 Sep 2006 07:41:02 -0700, Kris wrote:

I copied and pasted a spreadsheet to EXCEL 2003 and the cells have spaces in
front of the numbers preventing the addition function. How do I fix this?


=--TRIM(A1)
=--SUBSTITUTE(TRIM(A1),CHAR(160),"")

CHAR(160) is a non-printing space frequently found in HTML documents.



--ron

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Spacing in cells is preventing addition

On Sat, 9 Sep 2006 08:58:01 -0700, Kris wrote:

Can you demonstrate,I tried and it is not working for me. Please see an
example below:

1,016.28 0.00
4,578.00 0.00
0.00 1,016.28
0.00 4,578.00
0.00 4,578.00
0.00 1,600.32
0.00 1,600.32

The grid did not copy: however, the above would be in cells.

"Ron Rosenfeld" wrote:

On Sat, 9 Sep 2006 07:41:02 -0700, Kris wrote:

I copied and pasted a spreadsheet to EXCEL 2003 and the cells have spaces in
front of the numbers preventing the addition function. How do I fix this?


=--TRIM(A1)
=--SUBSTITUTE(TRIM(A1),CHAR(160),"")

CHAR(160) is a non-printing space frequently found in HTML documents.



--ron


I don't see an example of what you did.

In general, those formulas will convert a string of numbers with leading or
following spaces into a real number. So if your values are in A1:B7, you could
put the formula into C1 and copy down to row 7, then across to column D. Those
results would be numbers that you could do arithmetic on.

For the information you posted, I merely pasted it into a worksheet and had no
problem with addition. It is already numeric.

When you write, "the above would be in cells", what do you mean? Is each value
in a separate cell? Or are there several values on one cell? If the latter,
which cell?


--ron
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default Spacing in cells is preventing addition

=TRIM(A1)

copy all the way down

---------------
mama no teeth

"Kris" wrote:

I copied and pasted a spreadsheet to EXCEL 2003 and the cells have spaces in
front of the numbers preventing the addition function. How do I fix this?



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
Linking Groups of cells between workbooks vnacj-joe Excel Discussion (Misc queries) 4 June 14th 07 05:18 PM
Merge Cells Bagia Excel Discussion (Misc queries) 8 January 5th 07 09:18 PM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
how do i protect cells in a shared worksheet Debi Excel Discussion (Misc queries) 3 September 30th 05 11:15 PM
requires that merged cells must be identically sized? Catt Excel Discussion (Misc queries) 11 July 3rd 05 12:36 PM


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