ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Change format ###-###-#### to ########## (https://www.excelbanter.com/excel-discussion-misc-queries/150521-change-format.html)

jmjt

Change format ###-###-#### to ##########
 
I tried custom format but it would not remove my hypens. I need that format
for an export

bj

Change format ###-###-#### to ##########
 
your data may be text
try =substitute(entry,"-","")

if the hyphons do not go away, they may be non breaking hyphons
copy one of the hyphons and put into the substitute() function

"jmjt" wrote:

I tried custom format but it would not remove my hypens. I need that format
for an export


jmjt

Change format ###-###-#### to ##########
 
BJ you are the BEST, oh my gosh, it worked perfectly. Maybe I won't go home
with a headache today! Thanks Again

"bj" wrote:

your data may be text
try =substitute(entry,"-","")

if the hyphons do not go away, they may be non breaking hyphons
copy one of the hyphons and put into the substitute() function

"jmjt" wrote:

I tried custom format but it would not remove my hypens. I need that format
for an export



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

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