LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default Finding values within text and substituting with alternate values.

Hi All,

I have a table with two columns, column A contains old values and column B
contains new values.

I am trying to create a program, where I paste a piece of text into a
separate worksheet, which contains old values (can be randomly within the
text, in any cell). I want excel the search through the text and find any
old values from column A and replace them with new values, i.e. if value in
A7 is found in text, then replace with its corresponding new value from B7.

Also, I don't want the code to fall over when no values are found, and for
it to move to the next value in the table, i.e. old value in A5 returns no
match in text, so move onto old value in A6 and try to find a match.

Is this possible to achieve? Any help will be much appreciated.


Kind Regards,

Bhupinder
 
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
Finding Most Recent Values in Col1 -- Summing Matching Values Rothman Excel Discussion (Misc queries) 5 December 20th 07 08:19 PM
Substituting values TLC Excel Discussion (Misc queries) 1 October 22nd 07 07:38 PM
Finding Min Cell values excluding zero in alternate columns MichaelC Excel Worksheet Functions 9 July 7th 06 06:14 AM
Finding Min Cell values excluding zero in alternate columns bpeltzer Excel Worksheet Functions 0 November 5th 05 01:41 AM
finding values and displaying adjacent values willy3211 Excel Worksheet Functions 1 October 12th 05 04:49 PM


All times are GMT +1. The time now is 10:16 PM.

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"