Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
tom tom is offline
external usenet poster
 
Posts: 570
Default Replacing text in a cell with blanks

I have a spreadsheet in excel 2003. In cell a1 I have a name for
example:Smith,Lisa
In cell B2 I have an address and a phone number
for example
1234 Anywhere st
Akron,Ohio 44332
330-555-1212

I need to eliminate the phone number from the second field in order to use
it as the basis for a mail merge
In other words I only want the street, city and state left without the phone
number

I can't figure out how to do that successfully. The street
then the city state and zip
and finally the phone are on different lines in the same field

Can you put me in the right direction? Thanks so much
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,510
Default Replacing text in a cell with blanks

Hi Tom,

Are all the phone numbers entered in the same format with the hyphens? If
they are then you can use Find and Replace.

NOTE: Backup you workbook before doing this in case it returns unexpected
results.

Select the column of data.
Select Replace
In the Find field enter ???-???-????
Leave the replace field blank.
Click Replace all

--
Regards,

OssieMac


"Tom" wrote:

I have a spreadsheet in excel 2003. In cell a1 I have a name for
example:Smith,Lisa
In cell B2 I have an address and a phone number
for example
1234 Anywhere st
Akron,Ohio 44332
330-555-1212

I need to eliminate the phone number from the second field in order to use
it as the basis for a mail merge
In other words I only want the street, city and state left without the phone
number

I can't figure out how to do that successfully. The street
then the city state and zip
and finally the phone are on different lines in the same field

Can you put me in the right direction? Thanks so much

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,510
Default Replacing text in a cell with blanks

Hi again Tom,

The following might be a better answer because it will also take the line
feed out before the phone number.

In the Find what field enter the following
???-???-????
Click in the field before the the first question mark.
Hold the Alt key down and using the numeric key pad key in 0010.
The question marks will look like they have gone and replaced with a
flashing dot. Don't worry, the question marks are on the next line and not
visible.
Leave the Replace field blank.
Replace all.

NOTE: You must use the Numeric key pad with the Alt key. Using the numerics
above the alpha characters do not work.

--
Regards,

OssieMac


  #4   Report Post  
Posted to microsoft.public.excel.misc
tom tom is offline
external usenet poster
 
Posts: 570
Default Replacing text in a cell with blanks


That worked perfectly thanks so much

Tom
"OssieMac" wrote:

Hi again Tom,

The following might be a better answer because it will also take the line
feed out before the phone number.

In the Find what field enter the following
???-???-????
Click in the field before the the first question mark.
Hold the Alt key down and using the numeric key pad key in 0010.
The question marks will look like they have gone and replaced with a
flashing dot. Don't worry, the question marks are on the next line and not
visible.
Leave the Replace field blank.
Replace all.

NOTE: You must use the Numeric key pad with the Alt key. Using the numerics
above the alpha characters do not work.

--
Regards,

OssieMac


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
Replacing Text in a cell with blanks Tom Excel Discussion (Misc queries) 2 May 10th 09 03:23 PM
# symbols replacing text in a cell Loretta Albert Excel Discussion (Misc queries) 1 January 14th 09 02:28 AM
replacing text in a cell Roger Converse[_2_] Excel Discussion (Misc queries) 4 December 7th 07 07:50 PM
Concatenate cells, replacing blanks with cell contents from other rows [email protected] Excel Worksheet Functions 10 February 21st 07 03:16 PM
INTRICATE PROBLEM- How to find multiple text,excluding "H", in a multiple range of cells, then replacing 0 with another number in another cell Tourcat Excel Worksheet Functions 1 February 8th 05 06:26 PM


All times are GMT +1. The time now is 11:42 PM.

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"