ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Stripping the dashes (https://www.excelbanter.com/excel-discussion-misc-queries/90059-stripping-dashes.html)

digital21st

Stripping the dashes
 

Hi Guys

Is there a formula that can strip the dashes from a number.

for example.

a book isbn 0-914918-21-4

a forumula that would remove the '-' to make it 0914918214

Cheers


--
digital21st
------------------------------------------------------------------------
digital21st's Profile: http://www.excelforum.com/member.php...o&userid=29575
View this thread: http://www.excelforum.com/showthread...hreadid=544688


SteveG

Stripping the dashes
 

Digital21st,

If your value is in A1,

=SUBSTITUTE(A1,"-","")

HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=544688


SteveG

Stripping the dashes
 

FYI - my post keeps the ISBN as text.

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=544688


digital21st

Stripping the dashes
 

cheers

Worked a treat


--
digital21st
------------------------------------------------------------------------
digital21st's Profile: http://www.excelforum.com/member.php...o&userid=29575
View this thread: http://www.excelforum.com/showthread...hreadid=544688


RagDyeR

Stripping the dashes
 
Select the data, then :

<Edit <Replace

In the "Find What" box enter " - " (no quotes),
Leave the "Replace With" box empty,
Then click <Replace All.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"digital21st"
wrote in message
...

Hi Guys

Is there a formula that can strip the dashes from a number.

for example.

a book isbn 0-914918-21-4

a forumula that would remove the '-' to make it 0914918214

Cheers


--
digital21st
------------------------------------------------------------------------
digital21st's Profile:
http://www.excelforum.com/member.php...o&userid=29575
View this thread: http://www.excelforum.com/showthread...hreadid=544688




All times are GMT +1. The time now is 02:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com