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 » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Search for a particular letter in the sentence and print



 
 
Thread Tools Display Modes
  #1  
Old May 25th, 2010, 11:04 AM posted to microsoft.public.excel.worksheet.functions
ks1
external usenet poster
 
Posts: 2
Default Search for a particular letter in the sentence and print

excel has to search for a paticular letter in a row and print the preeciding
word in the next cell
  #2  
Old May 25th, 2010, 11:17 AM posted to microsoft.public.excel.worksheet.functions
Per Jessen
external usenet poster
 
Posts: 686
Default Search for a particular letter in the sentence and print

Hi

This formla search for '!' and return whatever is found after the '!' sign.

=IF(FIND("!",A1),MID(A1,FIND("!",A1)+1,99),"")

Hopes this helps
....
Per

"ks1" skrev i meddelelsen
...
excel has to search for a paticular letter in a row and print the
preeciding
word in the next cell


  #3  
Old May 25th, 2010, 11:44 AM posted to microsoft.public.excel.worksheet.functions
Steve Dunn
external usenet poster
 
Posts: 192
Default Search for a particular letter in the sentence and print

Hi, I'm a little confused, do you have a row of cells with content such as:

A1:
testing x this y formula z

B1:
this p is q the r next s cell t along u

C1:
and a another b example c for d luck


and wish to search A1:C1, returning, for example, "the" when your criteria
letter is "r"?

If not, perhaps you could clarify your requirements a little further.

Steve D.


"ks1" wrote in message
...
excel has to search for a paticular letter in a row and print the
preeciding
word in the next cell


  #4  
Old May 25th, 2010, 11:50 AM posted to microsoft.public.excel.worksheet.functions
Steve Dunn
external usenet poster
 
Posts: 192
Default Search for a particular letter in the sentence and print

Or, is it more like one cell containing a sentence.

A1:
perhaps this is could work

and you wish to return, for example, "is" when your criteria letter is "u"?

This could become very messy. If, for instance, your criteria letter
appeared twice in the sentence (not unheard of grin) what would you want
your result to be?



"Steve Dunn" wrote in message
news
Hi, I'm a little confused, do you have a row of cells with content such
as:

A1:
testing x this y formula z

B1:
this p is q the r next s cell t along u

C1:
and a another b example c for d luck


and wish to search A1:C1, returning, for example, "the" when your criteria
letter is "r"?

If not, perhaps you could clarify your requirements a little further.

Steve D.


"ks1" wrote in message
...
excel has to search for a paticular letter in a row and print the
preeciding
word in the next cell



  #5  
Old May 25th, 2010, 12:06 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Search for a particular letter in the sentence and print

Try the below....which search for an exclamation in row1 range(A1:Z1) and
returns the cell value of the next cell...

=INDEX(A1:Z1,SUMPRODUCT((ISNUMBER(SEARCH("!",A1:Z1 ))*
COLUMN(A1:Z1)))+1)

--
Jacob (MVP - Excel)


"ks1" wrote:

excel has to search for a paticular letter in a row and print the preeciding
word in the next cell

 




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 04:45 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.