Re: Need help with IF function
- From: BenjieLop <BenjieLop.1uwmad_1125954305.3434@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 5 Sep 2005 16:02:38 -0500
There maybe a more elegant solution but meantime, this should work for
you:
<< Is there any way for me to run an IF function that meets the
following
criteria:
If column C INCLUDES the word "German", then return "German" in this
cell.
Right now I have =IF(C:C="German","German", 0), but it's not working.
The problem is that column C is a long string of text that may or may
not include the word German anywhere in the text string. The text is
seperated by colons so I could break the column out into multiple
columns, but the word "German" doesn't always appear in the same node
of the text string.
blah : blah : German : blah
Blah : German : blah : blah >>
=IF(SUMPRODUCT(--(ISNUMBER(SEARCH(\"GERMAN\",C1:C100))))>0,\"GERMAN\",0)
<< And just curious, is there a way to run the following:
If column C doesn't include "English", return "Other" ?? >>
=IF(SUMPRODUCT(--(ISNUMBER(SEARCH(\"ENGLISH\",C1:C100))))=0,\"OTHER\",\"\")
The second formula will return a blank if the word "English" is found
in Column C.
As I mentioned earlier, there might be a more elegant (and also,
efficient) formula for your situation. BTW, out of curiosity ... what
result would you like to have IF the word "German" is found in the
column AND the word "English" is not in the column?
Regards.
--
BenjieLop
------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=11019
View this thread: http://www.excelforum.com/showthread.php?threadid=401986
.
- References:
- Need help with IF function
- From: broken
- Need help with IF function
- Prev by Date: Re: Grouping cells
- Next by Date: Re: Macro's with Ctrl or Ctrl-Shift?
- Previous by thread: Re: Need help with IF function
- Index(es):
Relevant Pages
|