A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE.... max. limit 8 :(



 
 
Thread Tools Display Modes
  #1  
Old May 21st, 2008, 07:00 AM posted to microsoft.public.excel.misc
[email protected]
external usenet poster
 
Posts: 3
Default =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE.... max. limit 8 :(

I'm having a problem while using excel 2002.
I have an estimated amount of 3500 cells containing text.

I also have 450 words and for all of them I have abbreviations.

What is the easiest way for me to manipulate those 3500
cells so that if they contained a word defined in this list of
450 words so that those words will be transformed into
each abbreviation?
  #2  
Old May 21st, 2008, 09:37 AM posted to microsoft.public.excel.misc
Bob Phillips
external usenet poster
 
Posts: 5,994
Default =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE.... max. limit 8 :(

VBA. Have an Excel table of words and replacements, then loop through all of
the cells, then loop through the list checking for matches.

--
---
HTH

Bob


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



wrote in message
...
I'm having a problem while using excel 2002.
I have an estimated amount of 3500 cells containing text.

I also have 450 words and for all of them I have abbreviations.

What is the easiest way for me to manipulate those 3500
cells so that if they contained a word defined in this list of
450 words so that those words will be transformed into
each abbreviation?



  #3  
Old May 21st, 2008, 09:47 AM posted to microsoft.public.excel.misc
[email protected]
external usenet poster
 
Posts: 3
Default =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE.... max. limit 8 :(

On 21 touko, 11:37, "Bob Phillips" wrote:
VBA. Have an Excel table of words and replacements, then loop through all of
the cells, then loop through the list checking for matches.

--
---
HTH

Bob

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


Now that is beyond my skills
  #4  
Old May 21st, 2008, 10:03 AM posted to microsoft.public.excel.misc
Pete_UK
external usenet poster
 
Posts: 8,780
Default =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE.... max. limit 8 :(

Here's an old thread that might give you some ideas:

http://groups.google.com/group/micro...te_UK+*excel*#

(Besides, it not often that Harlan admits he screwed up !!)

Hope this helps.

Pete

On May 21, 9:47*am, wrote:
On 21 touko, 11:37, "Bob Phillips" wrote:

VBA. Have an Excel table of words and replacements, then loop through all of
the cells, then loop through the list checking for matches.


--
---
HTH


Bob


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


Now that is beyond my skills


  #5  
Old May 21st, 2008, 08:25 PM posted to microsoft.public.excel.misc
T. Valko
external usenet poster
 
Posts: 15,759
Default =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE.... max. limit 8 :(

Can you post some examples?

--
Biff
Microsoft Excel MVP


wrote in message
...
I'm having a problem while using excel 2002.
I have an estimated amount of 3500 cells containing text.

I also have 450 words and for all of them I have abbreviations.

What is the easiest way for me to manipulate those 3500
cells so that if they contained a word defined in this list of
450 words so that those words will be transformed into
each abbreviation?



  #6  
Old May 22nd, 2008, 12:28 PM posted to microsoft.public.excel.misc
[email protected]
external usenet poster
 
Posts: 3
Default =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE.... max. limit 8 :(

On 21 touko, 22:25, "T. Valko" wrote:
Can you post some examples?

--
Biff
Microsoft Excel MVP

Here's a part from a file that contains triggerwords and those that
should replace them:
KAAPELITILA,KAAPELITIL:KAAPTI
KAAPELI:KAAP
KAAVIO:KAAV
KALANTERI,KALANT:KAL

I have the target file filled with text. For example one line goes:
POISTOPUHALLIN, AUTOM. TILAN KAAPELITILA (2381K4)
so this should be replaced with
POISTOPUHALLIN, AUTOM. TILAN KAAPTI (2381K4)
  #7  
Old May 22nd, 2008, 05:33 PM posted to microsoft.public.excel.misc
T. Valko
external usenet poster
 
Posts: 15,759
Default =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE.... max. limit 8 :(

Ok, this works but may not be 100% successful. With string matches there's
almost always the chance of false positives. Also note that if there is more
than one keyword in a string this won't work properly.

Create a 2 column table with the keywords in the left column and the
replacement words in the right column. This table *must* be sorted in
ascending order based on the keyword:

KAAPELI ............KAAP
KAAPELITIL.......KAAPTI
KAAPELITILA....KAAPTI
KAAVIO.............KAAV
KALANT............KAL
KALANTERI......KAL

Assume this table is in the range C16

A1 =
POISTOPUHALLIN, AUTOM. TILAN KAAPELITILA (2381K4)

This formula:

=SUBSTITUTE(A1,LOOKUP(2,1/SEARCH(C$1:C$6,A1),C$1:C$6),LOOKUP(2,1/SEARCH(C$1:C$6,A1),D$1$6))

Returns:

POISTOPUHALLIN, AUTOM. TILAN KAAPTI (2381K4)


--
Biff
Microsoft Excel MVP


wrote in message
...
On 21 touko, 22:25, "T. Valko" wrote:
Can you post some examples?

--
Biff
Microsoft Excel MVP

Here's a part from a file that contains triggerwords and those that
should replace them:
KAAPELITILA,KAAPELITIL:KAAPTI
KAAPELI:KAAP
KAAVIO:KAAV
KALANTERI,KALANT:KAL

I have the target file filled with text. For example one line goes:
POISTOPUHALLIN, AUTOM. TILAN KAAPELITILA (2381K4)
so this should be replaced with
POISTOPUHALLIN, AUTOM. TILAN KAAPTI (2381K4)



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.