DaraMurray
New Member
- Joined
- Feb 6, 2017
- Messages
- 14
Hi there,
I am trying to create a new column in my dataset that will display a "yes" if ANY of the three criteria are met and a "no" if none of the criteria are met. For example if someone participated in year 1 and scored a 2 or above OR participated in year 2 and scored a 2.5 or above OR participated in year 3 and scored a 3 or above I want the cell to read "Yes" because that person met the benchmark. They only need to meet one to display "Yes" not all three. If they meet none it should display "No" because they didn't meet the benchmark for their year.
Here is the last iteration of what I've tried:
This particular formula gives me an error for "you've entered too many arguments for this function".
In the beginning I got a bit closer by adding the OR function to the mix, but it returned the incorrect value (it returned "no" when it should have been "yes"). It was something like this, though this is giving me an error as well now:
I feel like I'm close, but it's so hard to search for help about "if" because it's such a common word.
Thanks in advance for your help!
Dara
I am trying to create a new column in my dataset that will display a "yes" if ANY of the three criteria are met and a "no" if none of the criteria are met. For example if someone participated in year 1 and scored a 2 or above OR participated in year 2 and scored a 2.5 or above OR participated in year 3 and scored a 3 or above I want the cell to read "Yes" because that person met the benchmark. They only need to meet one to display "Yes" not all three. If they meet none it should display "No" because they didn't meet the benchmark for their year.
Here is the last iteration of what I've tried:
Code:
=IF(AND(B2="Year 1", M2>=2),1,0,IF(AND(B2="year 2", M2>=2.5),1,0,IF(and(B2="Year 3", M2>=3.0),"Yes","No")))
This particular formula gives me an error for "you've entered too many arguments for this function".
In the beginning I got a bit closer by adding the OR function to the mix, but it returned the incorrect value (it returned "no" when it should have been "yes"). It was something like this, though this is giving me an error as well now:
Code:
=IF(OR(AND(B2="Year 1", M2>=2),AND(B2="year 2", M2>=2.5),AND(B2="Year 3", M2>=3.0),"Yes","No"))
I feel like I'm close, but it's so hard to search for help about "if" because it's such a common word.
Thanks in advance for your help!
Dara