Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
MJ
 
Posts: n/a
Default deleting a - from within a cell

I have a spreadsheet with numbers with dashes in them (5124-01 or 92653-856).
Is there a way I can delete the "-" from the cell without editing every cell?
  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default deleting a - from within a cell

Highlight the column Edit Replace type the hyphen in the Find What:
window, and leave the Replace with: window blank ReplaceAll..........

Vaya con Dios,
Chuck, CABGx3



"MJ" wrote:

I have a spreadsheet with numbers with dashes in them (5124-01 or 92653-856).
Is there a way I can delete the "-" from the cell without editing every cell?

  #3   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default deleting a - from within a cell

If A1 contains 123-456 then:
=SUBSTITUTE(A1,"-","") will return 123456
--
Gary's Student


"MJ" wrote:

I have a spreadsheet with numbers with dashes in them (5124-01 or 92653-856).
Is there a way I can delete the "-" from the cell without editing every cell?

  #4   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default deleting a - from within a cell

Select data and use Edit==Replace

Find What: - (== the dash/minus sign)

Click "Replace all"

HTH

"MJ" wrote:

I have a spreadsheet with numbers with dashes in them (5124-01 or 92653-856).
Is there a way I can delete the "-" from the cell without editing every cell?

  #5   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default deleting a - from within a cell

Yes there is. You must record a macro. If you know how to record one,
great! but just in case I'll describe as best I can.

During the macro recording process, you CAN NOT use your mouse. It
will record only keystrokes.

Make sure you have selected the first cell to be edited. (Don't double
click it, just select it)
Go to Tools - Macro - Record New Macro
Assign a keyboard shortcut for it.
Then you will see the little window with a button to press to stop the
macro recording process on your worksheet.
Press F2 and that will allow you to edit the cell
Then press your arrow keys to move your insert point to "-"
Delete the "-"
Press enter
Press the stop button on the macro window.

You will have to record two seperate macros since you have two
different formats for your cells.

Then you just press ctrl+ whatever shortcut key you selected, and it
will perform that action to every cell you ask it to.

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
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
copying cell names Al Excel Discussion (Misc queries) 12 August 11th 05 03:01 PM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 04:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"