Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
galsaba
 
Posts: n/a
Default What function should I use to convert 43232- to 43232

On the zip codes on the column Zip are in the structure of:
nnnnn- (for example, "07444-") .
What would be the function to get rid of all these "-"?

On a differnt spreadsheet I have the zips as nnnnn-mmmm.
I want to keep the nnnnn only. What function should I use?

galsaba

  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Take a look at

http://www.mcgimpsey.com/excel/postfixnegatives.html


In article . com,
"galsaba" wrote:

On the zip codes on the column Zip are in the structure of:
nnnnn- (for example, "07444-") .
What would be the function to get rid of all these "-"?

On a differnt spreadsheet I have the zips as nnnnn-mmmm.
I want to keep the nnnnn only. What function should I use?

galsaba

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

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

--

HTH

RP
(remove nothere from the email address if mailing direct)


"galsaba" wrote in message
ups.com...
On the zip codes on the column Zip are in the structure of:
nnnnn- (for example, "07444-") .
What would be the function to get rid of all these "-"?

On a differnt spreadsheet I have the zips as nnnnn-mmmm.
I want to keep the nnnnn only. What function should I use?

galsaba



  #4   Report Post  
Ragdyer
 
Posts: n/a
Default

You could try this for both questions:

=LEFT(A1,5)

OR
You could use <Data <TextTo Columns,
Where you choose the "Fixed Width" option.
Position the "Break Line" to separate the first 5 digits,
Then, on the next page of the wizard,
Click on Text, to retain the leading zeroes.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"galsaba" wrote in message
ups.com...
On the zip codes on the column Zip are in the structure of:
nnnnn- (for example, "07444-") .
What would be the function to get rid of all these "-"?

On a differnt spreadsheet I have the zips as nnnnn-mmmm.
I want to keep the nnnnn only. What function should I use?

galsaba


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
Improve Convert function in Excel Mike VV Excel Worksheet Functions 0 February 3rd 05 04:45 AM
Convert to Lower case (not with a function) TAJ Simmons Excel Worksheet Functions 2 December 29th 04 10:33 PM
Convert Numeric into Text Monty Excel Worksheet Functions 0 December 18th 04 09:25 PM
Function to convert feet and inchs into decimal equivalents Chuck Bierwirth Excel Worksheet Functions 2 December 9th 04 09:43 PM
How do I use Excel's convert function for apothecary weight? S Code Excel Worksheet Functions 1 November 19th 04 07:13 PM


All times are GMT +1. The time now is 03:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"