PC Review


Reply
Thread Tools Rate Thread

Advanced search and replace

 
 
=?Utf-8?B?TW9zaGVNbw==?=
Guest
Posts: n/a
 
      10th Dec 2006
Hello,

I want to do what I think is an advanced search and replace and I don't know
how to do it. In column a I have a variety of phrases. In column b, c, d,
etc. I have a variety f sentences (each column has exactly the same
sentences). Each sentence has one phrase in common (although the rest of the
sentence is different). I want to replace that prase with each of the
phrases in column a. Let me diagram what I mean:

Column a
young, small boy
young, tall boy
young, small girl
young, tall girl
Etc.

Column b
I was talking with a nice, old man
I was listening to a nice, old man
I was sitting with a nice, old man
Etc.

Column c
I was talking with a nice, old man
I was listening to a nice, old man
I was sitting with a nice, old man
Etc.

I want the end results to be the following:
Column b
I was talking with a young, small boy
I was listening to a young, small boy
I was sitting with a young, small boy
Etc.

Column c
I was talking with a young, tall boy
I was listening to a young, tall boy
I was sitting with a young, tall boy
Etc.

Column d
I was talking with a young, small girl
I was listening to a young, small girl
I was sitting with a young, small girl
Etc.

And so on.

How can I do this? Thanks and be well.

All the best,

Moshe


 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWF4?=
Guest
Posts: n/a
 
      10th Dec 2006
One formulas play to try ..

Assuming data1 below in A1:A4
> young, small boy
> young, tall boy
> young, small girl
> young, tall girl


and data2 below in B1:B3
> I was talking with a nice, old man
> I was listening to a nice, old man
> I was sitting with a nice, old man


Put in C1:
=SUBSTITUTE($B1,"nice, old man",OFFSET($A$1,COLUMN(A1)-1,))

Copy C1 across by 4 cols (as data1's no. of lines = 4) to F1,
then fill down to the last row of data in data2, ie to F3
The above will return the required results in cols C to F
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"MosheMo" wrote:
> Hello,
>
> I want to do what I think is an advanced search and replace and I don't know
> how to do it. In column a I have a variety of phrases. In column b, c, d,
> etc. I have a variety f sentences (each column has exactly the same
> sentences). Each sentence has one phrase in common (although the rest of the
> sentence is different). I want to replace that prase with each of the
> phrases in column a. Let me diagram what I mean:
>
> Column a
> young, small boy
> young, tall boy
> young, small girl
> young, tall girl
> Etc.
>
> Column b
> I was talking with a nice, old man
> I was listening to a nice, old man
> I was sitting with a nice, old man
> Etc.
>
> Column c
> I was talking with a nice, old man
> I was listening to a nice, old man
> I was sitting with a nice, old man
> Etc.
>
> I want the end results to be the following:
> Column b
> I was talking with a young, small boy
> I was listening to a young, small boy
> I was sitting with a young, small boy
> Etc.
>
> Column c
> I was talking with a young, tall boy
> I was listening to a young, tall boy
> I was sitting with a young, tall boy
> Etc.
>
> Column d
> I was talking with a young, small girl
> I was listening to a young, small girl
> I was sitting with a young, small girl
> Etc.
>
> And so on.
>
> How can I do this? Thanks and be well.
>
> All the best,
>
> Moshe
>
>

 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      15th Dec 2006
Moshe, you're welcome !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"MosheMo" <(E-Mail Removed)> wrote in message
news:B8AC4B21-2712-4398-9F5E-(E-Mail Removed)...
> Thanks. You've been very helpful.
>
> All the best,
>
> Moshe



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced search and replace. Piotr Microsoft Word Document Management 1 27th Dec 2009 11:30 AM
Instant Search, Advanced Find, Search Folders, and Windows Desktop Excel@shoenfeltconsulting.com Microsoft Outlook 2 31st Oct 2008 06:37 PM
Outlook search and advanced search not working (tried rebuilding the index) Psychotron Microsoft Outlook Discussion 0 17th Jul 2008 02:17 AM
Windows Desktop Search 3 fails, breaks custom views & advanced search Mike Microsoft Outlook Discussion 17 5th Jul 2006 04:56 AM
Search and Replace - replace all blank fields of all records at on =?Utf-8?B?TnVtYmVyc01hbg==?= Microsoft Access 0 8th Mar 2006 09:11 PM


Features
 

Advertising
 

Newsgroups
 


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