need to know how to use the functions IF and OR when used together
I have a survey and that have two possible answers - if a Yes then I want one message, if a No answer than I want a different message.
need to know how to use the functions IF and OR when used together
I have a survey and that have two possible answers - if a Yes then I want one message, if a No answer than I want a different message.
A typical formula would be
)![]()
=IF(OR(A1=1,B1=1,....),"Message 1","Message 2"
But to be able to help you we need more information on the cells and values
If you are looking to have 3 options (yes, no and other) then the below formula will work. Replace the Message One and Message Two text with the appropriate message.
If you are just doing Yes and No then you could use the shorter formula below with one IF statement![]()
C3=IF(B3="Yes","Message One",IF(B3="No","Message Two",""))
Let me know if this is what you were looking for!![]()
C3=IF(B3="Yes","Message One","Message Two")
Thanks!
Evertjvr has the correct answer although the last parenthesis has "slipped" slightly. The OP was asking for IF & OR.
=IF(OR(A1="Yes",A2="Yes"),"Wow","Shame")
If I helped, please don't forget to add to my reputation. (click on the star below the post)
If the problem is solved, please: Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.
Failure is not falling down but refusing to get up.
A1 will be Yes or No...and I want to get a text mesage from another cell based on the Yes/No response
Simply substitute the quotes for the cells where the text messages are
=IF(OR(A1="Yes",A2="Yes"),G1,H1)
Input the messages in G1 and H1 as required
If and or will not help you.
With A1 as the only variable the a double IF will be your answer.
Where B1 and C1 is the cells with message to fetch and that will be displayed in A1![]()
=IF(A1="YES",B1,IF(A1="NO",C1,"")
Got it...Thanks
Burdette - please post your workbook or sample
Have not figured out how to Post in this form.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks