Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
John Grossman
 
Posts: n/a
Default Find a word and then take certain action, else

I will have one of two statements - the first one might contain the word
"detail" and the second the word "ASIN". If the word "detail' is present
(i.e. http://www.xyz.com/exec/obidos/tg/detail/-/0934419345/ ) then execute
formula abc else execute formula efg.

Note sure how to handle verification of of "detail"
=if(find("detail",a6)="detail",abc,efg)
Tried this = but not working??


  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

You were real close. Try either of these:

=IF(ISNUMBER(SEARCH("detail",$A$6)),abc,efg)

=IF(ISERROR(SEARCH("detail",$A$6)),efg,abc)

These will also execute formula "efg" if the cell is
blank. If you don't want that to happen:

=IF($A$6="","",IF(ISNUMBER(SEARCH("detail",$A$6)), abc,efg))

=IF($A$6="","",IF(ISERROR(SEARCH("detail",$A$6)),e fg,abc))

Biff

-----Original Message-----
I will have one of two statements - the first one might

contain the word
"detail" and the second the word "ASIN". If the

word "detail' is present
(i.e. http://www.xyz.com/exec/obidos/tg/detail/-

/0934419345/ ) then execute
formula abc else execute formula efg.

Note sure how to handle verification of of "detail"
=if(find("detail",a6)="detail",abc,efg)
Tried this = but not working??


.

Reply
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



All times are GMT +1. The time now is 08:45 AM.

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

About Us

"It's about Microsoft Excel"