Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default find and replace \n wildcards like word

Hi all
I'm trying to use excel find and replace to replace this:
=CONCATENATE('Master List'!B1)
=CONCATENATE(INDIRECT("'Master List'!B1"))
in many cells where the B1 ref is not the same
so i need it to find
'Master List'!??
and replace with
INDIRECT("'Master List'!\1\2")
where \1 is the col ref and \2 is the row ref
easy in word but i'm totaly stuck in excel

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default find and replace \n wildcards like word

Here's one way (bit convoluted):

Highlight the cells you want to change, then:

CTRL-H (Find/Replace):
Find what: =
Replace with: xyz=
Click Replace All

(This changes the formulae to text strings so that you don't get
errors when you do a partial replace). Keeping the same highlighted
cells:

CTRL-H
Find what: (
Replace with: (INDIRECT("
Click Replace All

CTRL-H
Find what: )
Replace with: "))
Click Replace All

CTRL-H
Find what: xyz=
Replace with: =
Click Replace All

This last one changes those text strings back to formulae. You might
prefer to use something different to xyz if that string may appear in
your formulae - I know that Dave Peterson often recommends using $$$$.

I'm not sure what your formula does, though - what are you
concatenating to what?

Hope this helps.

Pete

On Feb 12, 1:37*am, julesgf wrote:
Hi all
I'm trying to use excel find and replace to replace this:
=CONCATENATE('Master List'!B1)
=CONCATENATE(INDIRECT("'Master List'!B1"))
in many cells where the B1 ref is not the same
so i need it to find
'Master List'!??
and replace with
INDIRECT("'Master List'!\1\2")
where \1 is the col ref and \2 is the row ref
easy in word but i'm totaly stuck in excel


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default find and replace \n wildcards like word

Thanks Pete
thats almost exactly the way i achieved it in the end.
still not happy that excel doesnt have the functionality to do it directly :-)
good to know that the "manipulate as text" solution is the way the pro's
(you guys) are doing it.

the point of all this is to make a sheet that i can lock down completely
which takes data from another sheet and lays it out for printing.
the indirects are to lock the cell ref (ie. A1 on print sheet allways = A1
from the data sheet no matter what the user does with the data sheet)

I'm concatinating one value in the example above because i noticed the
result of a concat with result of 0 is a blank call (desired for printing)

the other cells look more like:
=IF(INDIRECT("'Master List'!D18")=0,CONCATENATE(INDIRECT("'Master
List'!C18")),CONCATENATE(INDIRECT("'Master List'!C18")," ",CHAR(149),"
",INDIRECT("'Master List'!D18")))

Thanks again
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default find and replace \n wildcards like word

Thanks Pete
thats almost exactly the way i achieved it in the end.
still not happy that excel doesnt have the functionality to do it directly :-)
good to know that the "manipulate as text" solution is the way the pro's
(you guys) are doing it.

the point of all this is to make a sheet that i can lock down completely
which takes data from another sheet and lays it out for printing.
the indirects are to lock the cell ref (ie. A1 on print sheet allways = A1
from the data sheet no matter what the user does with the data sheet)

I'm concatinating one value in the example above because i noticed the
result of a concat with result of 0 is a blank call (desired for printing)

the other cells look more like:
=IF(INDIRECT("'Master List'!D18")=0,CONCATENATE(INDIRECT("'Master
List'!C18")),CONCATENATE(INDIRECT("'Master List'!C18")," ",CHAR(149),"
",INDIRECT("'Master List'!D18")))

Thanks again
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 206
Default find and replace \n wildcards like word

On Feb 11, 6:37*pm, julesgf wrote:
Hi all
I'm trying to use excel find and replace to replace this:
=CONCATENATE('Master List'!B1)
=CONCATENATE(INDIRECT("'Master List'!B1"))
in many cells where the B1 ref is not the same
so i need it to find
'Master List'!??
and replace with
INDIRECT("'Master List'!\1\2")
where \1 is the col ref and \2 is the row ref
easy in word but i'm totaly stuck in excel


Maybe this site can help you
http://www.contextures.com/xlFunctions05.html


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
Find and Replace with wildcards? Colin Excel Discussion (Misc queries) 4 January 20th 08 09:05 PM
Why not accept wildcards for REPLACE as well as FIND ? The Blue Max Excel Discussion (Misc queries) 5 August 10th 07 08:59 AM
Find 1 word and replace it and leave the leading zero Leslie Excel Discussion (Misc queries) 2 March 8th 06 04:05 PM
How can I use find and replace to delete a word in Excel? callpaultwt Excel Discussion (Misc queries) 2 December 1st 05 09:11 PM
Word Automation - Find/Replace JMB Excel Discussion (Misc queries) 2 May 21st 05 10:34 PM


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