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: 1
Default Challenge: selective parse of strings

Ok, here is the challenege.

Background: My spreadhseet allows the user to type sentences into
text box. The individual words in the text box are then parsed an
placed in a worksheet in vertical column "A." In vertical column "B"
use vlookup functions that match the word to a number. In another par
of the worksheet, I have essentially a dictionary, where I have abou
6000 individual words listed in a vertical column. Each word i
assigned a discrete number. (00000, 00001, 00002, etc.). So, afte
typing a sentence in the text box (e.g. "I love green eggs and ham")
the spreadsheet would look like thus:

I 32450
Love 43234
Green 34434
eggs 12304
and 00456
Ham 34543

Problem: Sometimes people type words into the text box that are not i
my "dictonary." When that happens, column B will result in "*NID*"
meaning Not-In-Dictionary. (simple IF function)

What I want to do is to have a macro that, when a word is not in th
dictionary, parses the WORD into letters. So if I type i
"serendipity" into the textbox (which is not in the dictionary), th
macro will translate it to " s e r e n d i p i t y", all letters, whic
will be placed in the vertical column (all letters have respespectiv
numners). Thus, the sentence "I want serendipity" would look:

I 43534
want 45676
s 00345
e 01355
r 13544
e 01355
n 76545
d 33434
i 36567
p 35654
i 36567
t 00345
y 33545

Please see previous posts related to the text box parsing:
http://www.excelforum.com/showthread...hreadid=188803

Any help would be appreciate

--
Message posted from http://www.ExcelForum.com

 
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 numeric strings in larger text strings Mr Molio Excel Worksheet Functions 8 November 9th 11 05:17 PM
Parse variable length strings Ray Excel Discussion (Misc queries) 3 May 15th 09 09:49 PM
How to find number of pairs of strings from list of strings? greg_overholt Excel Worksheet Functions 5 January 27th 06 10:42 PM
How can I count strings within strings Paul W Excel Worksheet Functions 4 June 14th 05 12:39 PM
Finding strings within strings Rod[_6_] Excel Programming 1 December 2nd 03 05:34 PM


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