Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macroto delete extra space in a cell

On Wednesday, January 16, 2013 10:24:35 AM UTC-5, Metfan wrote:
I download a file that contains 5,000 rows of data, each cell shows a

numeric value, however, you can not use a formula such as @sum to add

the data as each cell apparently contains an extra space after the last

digit in the cell. When I select a cell and press F2 I noticed the

cursor is 2 spaces behind the last digit, when I hit backspace and

deleted the extra space, the value then changed to a number which I can

use in a formula. I guess I need to write a macro to the following. Go

to each cell and edit and delete the extra space and then proceed to the

next cell and perform the same edit. This needs to be done for all

records. Any help on how to approach this macro would be helpful



Metfan









--

Metfan


select on cell on the right of the first cell with data then type =A1*1 (assume A1 is the first cell with data) copy the formula to the reset of cells below.
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
merging spreadsheets/one has extra space in each cell Julie Excel Discussion (Misc queries) 2 March 25th 08 05:53 PM
delete extra lines within same cell Bob Phillips Excel Programming 0 January 10th 07 06:16 PM
delete extra space WBTKbeezy Excel Worksheet Functions 8 October 8th 06 01:49 AM
How do I delete an extra space in every cell in a column? iamjbunni Excel Discussion (Misc queries) 2 April 21st 06 06:14 PM
Getting rid of extra space after cell contents? achidsey Excel Programming 5 August 13th 05 02:00 AM


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