small_wonder
New Member
- Joined
- Sep 29, 2012
- Messages
- 3
Hi
I need to write an If Statement for a sports picking list that accomodates the following rules:
Display error if:
1 - Term 1 = Rowing + Term 2 = Swimming
2 - Term 1 = Rowing + Term 2 = Swimming + Term 3 = Tennis
3 - Term 1 = Rowing + Term 2 = Swimming + Term 3 = Tennis + Term 4 = Squash
4 - OR Term 1-4 = Goals > 2
My columns are:
C2 (Term 1) D2 (Term 2) E2 (Term3) F2 (Term 4)
How would I go about doing this? I'm sure there is a simple solution, my excel skills are very rusty.
So far I have: =IF(C2="Rowing"+D2="Swimming","Clash",IF(C2="Rowing"+D2="Swimming"+E2="Tennis","Clash",IF(C2="Rowing"+D2="Swimming"+E2="Tennis"+F2="Squash","Clash","")))
But it returns a #VALUE error and is missing criteria 4 from my list.
Thank you
I need to write an If Statement for a sports picking list that accomodates the following rules:
Display error if:
1 - Term 1 = Rowing + Term 2 = Swimming
2 - Term 1 = Rowing + Term 2 = Swimming + Term 3 = Tennis
3 - Term 1 = Rowing + Term 2 = Swimming + Term 3 = Tennis + Term 4 = Squash
4 - OR Term 1-4 = Goals > 2
My columns are:
C2 (Term 1) D2 (Term 2) E2 (Term3) F2 (Term 4)
How would I go about doing this? I'm sure there is a simple solution, my excel skills are very rusty.
So far I have: =IF(C2="Rowing"+D2="Swimming","Clash",IF(C2="Rowing"+D2="Swimming"+E2="Tennis","Clash",IF(C2="Rowing"+D2="Swimming"+E2="Tennis"+F2="Squash","Clash","")))
But it returns a #VALUE error and is missing criteria 4 from my list.
Thank you