Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default omitting/deleting "-"'s from numbers w/ formula

I have a group of numbers that look like this ###-##-####g09. I have been
able to omit the "g09" at the end but i need the "-"'s omitted as well. Can
this be done with a formula or do i just need to use find/replace?

Thanks
--
Eric
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default omitting/deleting "-"'s from numbers w/ formula

=SUBSTITUTE(LEFT(A1,11),"-","")
so
123-45-6789g09
will output
123456789
--
Gary''s Student - gsnu200826
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default omitting/deleting "-"'s from numbers w/ formula

Thanks Gary, that works great!
--
Eric


"Gary''s Student" wrote:

=SUBSTITUTE(LEFT(A1,11),"-","")
so
123-45-6789g09
will output
123456789
--
Gary''s Student - gsnu200826

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
deleting or omitting "-"'s in a group of numbers w/ a formula Eric D Excel Discussion (Misc queries) 1 January 12th 09 07:58 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
any formula to convert numbers in word form, e.g. "2" as "Two"? Neeraj Excel Worksheet Functions 1 May 26th 08 01:03 PM
Validation ?:Accepting both Numbers AND specific letters("N","n"," Antonio Excel Discussion (Misc queries) 2 April 22nd 08 05:07 PM
Deleting the "'" character in the text formula John Excel Discussion (Misc queries) 6 November 23rd 06 12:47 PM


All times are GMT +1. The time now is 05:53 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"