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: 5
Default search for a specific word and copy the word and the preceeding words until a comma

Hello everybody,

I have addresses entered as in below in several rows. Note that the
entire address for each individual is put in a single cell as text. All
cells have commas though and "text to column" option is completely
ruled out. There are about 50000 such entries and they do not contain
words in fixed order. For instance, in the following example, say the
rows are in rows B1 to B1000, I wish to place a formula in C1 to C1000
and find if the corresponding cell in B1 to B1000 has the word "Taluk"
and if so, to also read the word or words before "Taluk" - all occuring
until a comma and then to copy the entire set of words in C1 to C1000.

Kempapura, Hasigala Post, Hoskote Taluk, Bangalore Rural
Upparahalli, Kumbalahalli Post, Hona Hoskote Taluk, Bangalore Rural
Dist. Pin. 562114
#42/10, Suresh Nilaya, Behind Dharmaraya Temple, Malinapet, Taluk,
Bangalore
J 36, Pipline Malleshwaram, Ganesha Block, Bangalore
Taluk,Viveknagar II stage, Sulibele Road, Bangalore Rural Dist


This is what I a single formula to accomplish :

In row 1 below, I need to get "Hoskote Taluk"
In row 2 below, I need to get "Hona Hoskote Taluk"
In row 3 below, I need to get "Taluk"
In row 4 below, I need to get nothing
In row 5 below, I need to get "Taluk"

Kempapura, Hasigala Post, Hoskote Taluk, Bangalore Rural
Upparahalli, Kumbalahalli Post, Hona Hoskote Taluk, Bangalore Rural
Dist. Pin. 562114
#42/10, Suresh Nilaya, Behind Dharmaraya Temple, Malinapet, Taluk,
Bangalore
J 36, Pipline Malleshwaram, Ganesha Block, Bangalore
Taluk,Viveknagar II stage, Sulibele Road, Bangalore Rural Dist


All support is appreciated.

DHANANJAY

 
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
how to copy the first word or two words from a cell containing a complete sentence to another cell jonny Excel Discussion (Misc queries) 7 May 19th 23 03:43 AM
Copy from Word to Excel, and retain indent, plus word wrap Eric Excel Discussion (Misc queries) 1 March 9th 07 03:15 AM
need formula to search column for a word and return another word Skyline Excel Discussion (Misc queries) 5 November 18th 05 10:00 PM
Search for specific words Newberry Excel Worksheet Functions 3 July 21st 05 10:18 PM
Macro to search a column for a specific word and replace with wendy Excel Programming 5 January 19th 04 05:41 PM


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