#1   Report Post  
Derek Y via OfficeKB.com
 
Posts: n/a
Default SEARCH IF


I want a function that can do this:

IF O2 CONTAINS "ABC" AND "DEF" THEN ABC/DEF, IF O2 CONTAINS ABC and NOT DEF
THEN "ABC", etc etc

is this pssible with IF(search(???)


--
Message posted via http://www.officekb.com
  #2   Report Post  
Derek Y via OfficeKB.com
 
Posts: n/a
Default


Derek Y wrote:
I want a function that can do this:

IF O2 CONTAINS "ABC" AND "DEF" THEN ABC/DEF, IF O2 CONTAINS ABC and NOT DEF
THEN "ABC", etc etc

is this pssible with IF(search(???)



I know i wasn't very specific but if you can help with this i will be able to
figure out the rest for my more complicated function.


--
Message posted via http://www.officekb.com
  #3   Report Post  
Derek Y via OfficeKB.com
 
Posts: n/a
Default


So far this is the best i can come up with.....


=IF(ISNUMBER(AND(FIND("*VA*",O2),FIND("*FHA*",O2)) ),"something",IF(ISNUMBER
(FIND("*VA*",O2),VA, etc etc)

but this doesn't work


--
Message posted via http://www.officekb.com
  #4   Report Post  
Derek Y via OfficeKB.com
 
Posts: n/a
Default


YAY I GOT IT....

=IF(AND(ISNUMBER(FIND("FHA",O2)),ISNUMBER(FIND("VA ",O2))),"something",
"something else")

thanks anyways


--
Message posted via http://www.officekb.com
  #5   Report Post  
Derek Y via OfficeKB.com
 
Posts: n/a
Default


gosh i feel so smart when i have a formula like this...

=IF(AND(ISNUMBER(SEARCH("FHA",O2)),ISNUMBER(SEARCH ("VA",O2))),"FHA/VA",IF
(ISNUMBER(SEARCH("FHA",O2)),"FHA",IF(ISNUMBER(SEAR CH("VA",O2)),"VA",IF(OR
(ISNUMBER(SEARCH("conforming",O2)),ISNUMBER(SEARCH ("zero",O2))),"NON_CON",IF
(OR(ISNUMBER(SEARCH("GOVT",O2)),ISNUMBER(SEARCH("3 0K",O2))),"FHA/VA","CONV")))
))

hehehe like i actually accomplished something today


--
Message posted via http://www.officekb.com


  #6   Report Post  
Sandy Mann
 
Posts: n/a
Default

FIND is case sensitive, you may be better off with SEARCH:

=IF(AND(ISNUMBER(SEARCH({"FHA","VA"},O2))),"someth ing","something else")

--
HTH

Sandy

Replace@mailinator with @tiscali.co.uk


"Derek Y via OfficeKB.com" wrote in message
...

YAY I GOT IT....

=IF(AND(ISNUMBER(FIND("FHA",O2)),ISNUMBER(FIND("VA ",O2))),"something",
"something else")

thanks anyways


--
Message posted via
http://www.officekb.com


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wildcard search functions within Vlookup Benn Excel Worksheet Functions 2 July 26th 05 01:12 PM
How do I print a Find-all search in Excel 2002? Pughy Excel Discussion (Misc queries) 3 March 30th 05 07:05 PM
FAQ Spreadsheet with search function murphyz Excel Discussion (Misc queries) 0 March 19th 05 09:24 PM
how to search in excel with condition David Excel Discussion (Misc queries) 1 February 8th 05 09:23 PM
Search problems BigPig Excel Worksheet Functions 0 December 29th 04 08:11 PM


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