Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
wennerberg
 
Posts: n/a
Default Search & Replace to insert alt+


Can I do a search and replace to place an alt+<enter in text in a range
of cells. Data example is "Phoenix (SOUTH)". I always want what is in
parenthesis on a line by itself in the cell, so I'd like to replace
"SPACE (" with "alt+<enter ("
Any version of Excel, OK.
TIA


--
wennerberg
------------------------------------------------------------------------
wennerberg's Profile: http://www.excelforum.com/member.php...fo&userid=7321
View this thread: http://www.excelforum.com/showthread...hreadid=471253

  #2   Report Post  
Gord Dibben
 
Posts: n/a
Default

EditReplace

what: space

with: ALT + 0010 (from the numpad to the rightside of keyboard)

Replace all.


Gord Dibben Excel MVP

On Tue, 27 Sep 2005 17:12:49 -0500, wennerberg
wrote:


Can I do a search and replace to place an alt+<enter in text in a range
of cells. Data example is "Phoenix (SOUTH)". I always want what is in
parenthesis on a line by itself in the cell, so I'd like to replace
"SPACE (" with "alt+<enter ("
Any version of Excel, OK.
TIA


  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

Another option:
select the range
edit|replace
what: (spacebar)
with: ctrl-j
replace all

(Ctrl-j might be easier to use and it's lots easier to describe! <vbg)

Gord Dibben wrote:

EditReplace

what: space

with: ALT + 0010 (from the numpad to the rightside of keyboard)

Replace all.

Gord Dibben Excel MVP

On Tue, 27 Sep 2005 17:12:49 -0500, wennerberg
wrote:


Can I do a search and replace to place an alt+<enter in text in a range
of cells. Data example is "Phoenix (SOUTH)". I always want what is in
parenthesis on a line by itself in the cell, so I'd like to replace
"SPACE (" with "alt+<enter ("
Any version of Excel, OK.
TIA


--

Dave Peterson
  #4   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Dave

I hadn't realised that Ctrl-j did the same thing as Alt+Enter.

For this task, not only is it easier to describe, but much easier to use
when you are on a notebook keyboard without easy access to the numeric pad!!

Regards

Roger Govier


Dave Peterson wrote:
Another option:
select the range
edit|replace
what: (spacebar)
with: ctrl-j
replace all

(Ctrl-j might be easier to use and it's lots easier to describe! <vbg)

Gord Dibben wrote:

EditReplace

what: space

with: ALT + 0010 (from the numpad to the rightside of keyboard)

Replace all.

Gord Dibben Excel MVP

On Tue, 27 Sep 2005 17:12:49 -0500, wennerberg
wrote:


Can I do a search and replace to place an alt+<enter in text in a range
of cells. Data example is "Phoenix (SOUTH)". I always want what is in
parenthesis on a line by itself in the cell, so I'd like to replace
"SPACE (" with "alt+<enter ("
Any version of Excel, OK.
TIA



  #5   Report Post  
Gord Dibben
 
Posts: n/a
Default

Thanks Dave.

Much easier.

Where did you find CTRL + j


Gord

On Tue, 27 Sep 2005 22:11:13 -0500, Dave Peterson
wrote:

Another option:
select the range
edit|replace
what: (spacebar)
with: ctrl-j
replace all

(Ctrl-j might be easier to use and it's lots easier to describe! <vbg)

Gord Dibben wrote:

EditReplace

what: space

with: ALT + 0010 (from the numpad to the rightside of keyboard)

Replace all.

Gord Dibben Excel MVP

On Tue, 27 Sep 2005 17:12:49 -0500, wennerberg
wrote:


Can I do a search and replace to place an alt+<enter in text in a range
of cells. Data example is "Phoenix (SOUTH)". I always want what is in
parenthesis on a line by itself in the cell, so I'd like to replace
"SPACE (" with "alt+<enter ("
Any version of Excel, OK.
TIA




  #6   Report Post  
Dave Peterson
 
Posts: n/a
Default

I believe it was a post by an MSWord MVP who answered a crossposted message who
suggested it.

It reminded me of the old DOS keyboard keystrokes.

doing this from the command prompt to create a text file:

copy con: c:\myfile.txt
some text here
some text here
ctrl-z (hit, don't type

That'll close the myfile.txt.

Same with some programs (not excel's edit|replace or edit|find dialog) for
ctrl-m (carriage return).



Gord Dibben wrote:

Thanks Dave.

Much easier.

Where did you find CTRL + j

Gord

On Tue, 27 Sep 2005 22:11:13 -0500, Dave Peterson
wrote:

Another option:
select the range
edit|replace
what: (spacebar)
with: ctrl-j
replace all

(Ctrl-j might be easier to use and it's lots easier to describe! <vbg)

Gord Dibben wrote:

EditReplace

what: space

with: ALT + 0010 (from the numpad to the rightside of keyboard)

Replace all.

Gord Dibben Excel MVP

On Tue, 27 Sep 2005 17:12:49 -0500, wennerberg
wrote:


Can I do a search and replace to place an alt+<enter in text in a range
of cells. Data example is "Phoenix (SOUTH)". I always want what is in
parenthesis on a line by itself in the cell, so I'd like to replace
"SPACE (" with "alt+<enter ("
Any version of Excel, OK.
TIA


--

Dave Peterson
  #7   Report Post  
wennerberg
 
Posts: n/a
Default


Thanks for the direction on this! It works well, but here is one
caveat:
If you replace a "real" character along with the ctl+j, the "real"
character does not display in the dialog box:

ORIGINAL STRING:
Washington D.C. (North)

CHANGE TO:
Washington D.C.
(North)

To do this I must include the left parenthesis because of multiple
spaces in the string, and therefore search for "<space(" and replace
with "ctl+j("

The parenthesis do not show up in the Find and Replace dialog box in
"Replace with:" after entering the ctl+j or alt+0010 on num pad, but it
does keep the parenthesis. I just use my imagination.


--
wennerberg
------------------------------------------------------------------------
wennerberg's Profile: http://www.excelforum.com/member.php...fo&userid=7321
View this thread: http://www.excelforum.com/showthread...hreadid=471253

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
Search and replace Subu Excel Worksheet Functions 4 June 9th 05 07:01 PM
Search and Replace Rebecca Excel Discussion (Misc queries) 1 May 14th 05 11:53 AM
Search and Replace Question Rebecca New Users to Excel 1 April 11th 05 04:49 AM
GLOBAL search and replace Rebecca New Users to Excel 2 February 26th 05 12:30 AM
Challenging Charting C TO Charts and Charting in Excel 0 January 17th 05 06:57 PM


All times are GMT +1. The time now is 05:55 AM.

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"