ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formating a number in a cell (https://www.excelbanter.com/excel-discussion-misc-queries/142850-formating-number-cell.html)

[email protected]

Formating a number in a cell
 
I have the following data in a cell 00000-0000-00 and I want to format
the cell to remove the dashes, 00000000000. How would I do that?

Thanks so much!


Farhad

Formating a number in a cell
 
Hi,

Try this:
=SUBSTITUTE(A1,"-","")
assumed that your string is in the cell A1.

Thanks,

--
Farhad Hodjat


" wrote:

I have the following data in a cell 00000-0000-00 and I want to format
the cell to remove the dashes, 00000000000. How would I do that?

Thanks so much!



RagDyeR

Formating a number in a cell
 
Select the data, then:
<Edit <Replace

In "Find What", enter the dash ( - )
Leave "Replace With" empty,
And click on <Replace All.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
wrote in message
ps.com...
I have the following data in a cell 00000-0000-00 and I want to format
the cell to remove the dashes, 00000000000. How would I do that?

Thanks so much!




[email protected]

Formating a number in a cell
 
On May 15, 5:11 pm, Farhad wrote:
Hi,

Try this:
=SUBSTITUTE(A1,"-","")
assumed that your string is in the cell A1.

Thanks,

--
Farhad Hodjat



" wrote:
I have the following data in a cell 00000-0000-00 and I want to format
the cell to remove the dashes, 00000000000. How would I do that?


Thanks so much!- Hide quoted text -


- Show quoted text -


Thank You! Your solution worked perfectly!



All times are GMT +1. The time now is 08:57 PM.

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