Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I delete the +four didgets from a Zip Code Column?

I downloaded from a data base that has the Zip Code +4 (00000+0000) in a
single field. I have hundreds of line in this worksheet. How do I remove the
+0000 values inside all of the cells in the column?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default How do I delete the +four didgets from a Zip Code Column?

In a separate column

=LEFT(A1,LEN(A1)-5)

Copy the new column, EditPasteSpecialValues and then delete the original
column.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"RI Foodie" <RI wrote in message
...
I downloaded from a data base that has the Zip Code +4 (00000+0000) in a
single field. I have hundreds of line in this worksheet. How do I remove
the
+0000 values inside all of the cells in the column?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 310
Default How do I delete the +four didgets from a Zip Code Column?

You can use the left function, and since the zip code is always a 5 digit you
can just put...
=LEFT(A1,5)
(Assuming that the zip code you want to extract is in cell A1.) Drag the
formula down as appropriate. Hope this heps.

--
Cheers,
Michelle
"Anyone who says he can see through women is missing a lot." Groucho Marx


"RI Foodie" wrote:

I downloaded from a data base that has the Zip Code +4 (00000+0000) in a
single field. I have hundreds of line in this worksheet. How do I remove the
+0000 values inside all of the cells in the column?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,091
Default How do I delete the +four didgets from a Zip Code Column?

If you have the zips in a1:a500 and all of the zips have 5 leading
characters before +, then in B1 put: =LEFT(A1,5) and drag down to b500

Tyro

"RI Foodie" <RI wrote in message
...
I downloaded from a data base that has the Zip Code +4 (00000+0000) in a
single field. I have hundreds of line in this worksheet. How do I remove
the
+0000 values inside all of the cells in the column?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How do I delete the +four didgets from a Zip Code Column?

If the zip codes are in this format:

12345+1234

Select the range of interest
Goto the menu EditReplace
Find what: +*
Replace with: nothing, leave this blank
Replace All

One caveat about this method. If any zip codes start with leading 0s they'll
be stripped off.


--
Biff
Microsoft Excel MVP


"RI Foodie" <RI wrote in message
...
I downloaded from a data base that has the Zip Code +4 (00000+0000) in a
single field. I have hundreds of line in this worksheet. How do I remove
the
+0000 values inside all of the cells in the column?





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
Code help, delete rows based on column criteria Stout Excel Discussion (Misc queries) 2 March 20th 07 01:17 PM
VBA code to delete rows Secret Squirrel Excel Discussion (Misc queries) 3 January 21st 07 03:01 PM
Delete Code Modules Programatically blatham Excel Discussion (Misc queries) 1 February 3rd 06 05:38 PM
Code to delete rows and column cells that have formulas in. GarToms Excel Worksheet Functions 1 January 18th 06 01:04 PM
code to delete rows ianalexh Excel Discussion (Misc queries) 5 May 5th 05 10:46 AM


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