I give up. Removing dashes deletes everything after the first dash.

Jeffrey Green

Well-known Member
Joined
Oct 24, 2007
Messages
1,021
I have entries that look like this -
300-7188258-1</SPAN>
300-8983980-5</SPAN>

<TBODY>
</TBODY><COLGROUP><COL></COLGROUP>

I need to remove the dashes. I find and replace all - with nothing. that has worked for YEARS. Seems simple to me.

Today, when I do it, Excel leaves the "300" and removes everything else. I even did a CLEAN function and it still does it.

This is killing me having to remove them one at a time.

Thanks
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
40,681
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
You didn't by any chance use -* in the Find box did you?
 
Upvote 0

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
38,154
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
I have entries that look like this -
300-7188258-1</SPAN>
300-8983980-5</SPAN>

<TBODY>
</TBODY>
I need to remove the dashes. I find and replace all - with nothing. that has worked for YEARS. Seems simple to me.
Today, when I do it, Excel leaves the "300" and removes everything else. I even did a CLEAN function and it still does it.
This is killing me having to remove them one at a time.
Only type a single dash in the "Find what" field... nothing more (I suspect you added an asterisk after the dash... that is a wildcard meaning zero or more characters). You might also want to click the "Options.." button to reveal all the options and make sure they are set correctly (Excel memorizes some of the setting from the last time you used Find or Replace and those memorized settings may not be correct for your current needs).
 
Upvote 0

Forum statistics

Threads
1,195,600
Messages
6,010,650
Members
441,558
Latest member
lambierules

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top