Formula?: IF ("Tyrion" is Here OR There) AND IF ("Crossbow" is over here) = "He will end Joffrey"

waxsublime

New Member
Joined
Jul 13, 2013
Messages
17
Okay first just let me say WOW AWESOME FORUM AND SITE!!! I'm really pretty new to Excel formulas, but I'm totally geeking out on it. It's so cool!

Anyway, I'm trying to get a formula to do the following:
[Example]
IF (there is the word "Tyrion" in either A1 OR A3) AND (there is the word "Crossbow" in A2) THEN value is "He will end Joffrey".
(e.g. if "Tyrion" is found in A1 but no "Lannister" in A2, then value is 0).

I know this simple formula works (If "Tyrion" is on A1 then value is "Lion"):

=IF(ISNUMBER(FIND("Tyrion",A1)),"Lion",)

But I'm having trouble figuring out how to combine an "OR" with an "AND"... if that makes sense.

Thanks in advance!
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
=IF(AND(OR(A1="Tyrion",A3="Tyrion"),A2="Crossbow"),"He will end Joffrey",0)

Though Joffrey will actually get... (Oops! Spoiler alert!)
 
Upvote 0
Searched Excel help for OR or AND?

IF(AND(condition-1,condition-2),true-value,false-value)

and then condition-1 itself can be a function such as OR(condition-3,condition-4)

Okay first just let me say WOW AWESOME FORUM AND SITE!!! I'm really pretty new to Excel formulas, but I'm totally geeking out on it. It's so cool!

Anyway, I'm trying to get a formula to do the following:
[Example]
IF (there is the word "Tyrion" in either A1 OR A3) AND (there is the word "Crossbow" in A2) THEN value is "He will end Joffrey".
(e.g. if "Tyrion" is found in A1 but no "Lannister" in A2, then value is 0).

I know this simple formula works (If "Tyrion" is on A1 then value is "Lion"):

=IF(ISNUMBER(FIND("Tyrion",A1)),"Lion",)

But I'm having trouble figuring out how to combine an "OR" with an "AND"... if that makes sense.

Thanks in advance!
 
Upvote 0
That worked! Thanks so much!!!

And I've Read all the books... no spoilers here though. I Hope Joffrey gets a much more....interesting end. Hehe.
 
Upvote 0

Forum statistics

Threads
1,214,877
Messages
6,122,051
Members
449,064
Latest member
scottdog129

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top