I need help with building a formula for the below
only if A1=1 and B1= M or H then C1 would return a 1 result
the other A1 options would be blank and the other B1 options would be a L or none
I need help with building a formula for the below
only if A1=1 and B1= M or H then C1 would return a 1 result
the other A1 options would be blank and the other B1 options would be a L or none
Hi,
Welcome to the Forum.
Please paste the following formula in C1:
=IF(AND(A1=1,B1="M"),1,"")
I think you've missed the condition for "H" - try this amendment:
=IF(AND(A1=1,OR(B1="M",B1="H")),1,"")
Hope this helps.
Pete
agh thank you - trying it now
Worked beautifully thank you both![]()
You're welcome - glad to be able to help.
If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.
Also, since you are relatively new to the forum, I would like to inform you that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).
Pete
Updated one, missed to see B1 = M or H
=IF(AND(A1=1,OR(B1="M",B1="H")),1,"")
Hi, thank you for the welcome - clearly i was putting the AND in the wrong place
could I add the H as below?
=IF(AND(A1=1,B1="M","H"),1,"")
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks