MichaelRSnow
Active Member
- Joined
- Aug 3, 2010
- Messages
- 409
I'm not sure why this doesn't work but I'm trying to write 4 conditional formatting formulas but I'm getting multiple results
I want to A) look at cell for a specific value (looking to match 1 or none), could be multiple options in that one cell, if true or false then B) check another cell for one of two values. In my head there are 4 possible outcomes
A) Finds Value and B) Finds Value 1
A) Does not find any Values and B) Finds Value 1
A) Finds Value and B) Finds Value 2
A) Does not finds any Values and B) Finds Value 2
I was using IF(AND(OR with ISNUMBER to match or ISERROR to not match but something isn't right as I'm seeing duplicate results being matched
Example Results, what am I doing wrong?
I want to A) look at cell for a specific value (looking to match 1 or none), could be multiple options in that one cell, if true or false then B) check another cell for one of two values. In my head there are 4 possible outcomes
A) Finds Value and B) Finds Value 1
A) Does not find any Values and B) Finds Value 1
A) Finds Value and B) Finds Value 2
A) Does not finds any Values and B) Finds Value 2
I was using IF(AND(OR with ISNUMBER to match or ISERROR to not match but something isn't right as I'm seeing duplicate results being matched
Excel Formula:
=IF(AND(OR(ISERROR(SEARCH("*One*",A1)),ISERROR(SEARCH("*Two*",A1)),ISERROR(SEARCH("*Three*",A1)),ISERROR(SEARCH("*Four*",A1))),C1="Yes"),1,0)
=IF(AND(OR(ISERROR(SEARCH("*One*",A1)),ISERROR(SEARCH("*Two*",A1)),ISERROR(SEARCH("*Three*",A1)),ISERROR(SEARCH("*Four*",A1))),C1="No"),1,0)
=IF(AND(OR(ISNUMBER(SEARCH("*One*",A1)),ISNUMBER(SEARCH("*Two*",A1)),ISNUMBER(SEARCH("*Three*",A1)),ISNUMBER(SEARCH("*Four*",A1))),C1="Yes"),1,0)
=IF(AND(OR(ISNUMBER(SEARCH("*One*",A1)),ISNUMBER(SEARCH("*Two*",A1)),ISNUMBER(SEARCH("*Three*",A1)),ISNUMBER(SEARCH("*Four*",A1))),C1="No"),1,0)
Example Results, what am I doing wrong?
One | Yes | 1 | 0 | 1 | 0 |
Two | Yes | 1 | 0 | 1 | 0 |
Three | Yes | 1 | 0 | 1 | 0 |
One | No | 0 | 1 | 0 | 1 |
Two | No | 0 | 1 | 0 | 1 |
Three | No | 0 | 1 | 0 | 1 |
Four | Yes | 1 | 0 | 1 | 0 |
Four | No | 0 | 1 | 0 | 1 |
Five | Yes | 1 | 0 | 0 | 0 |
Five | No | 0 | 1 | 0 | 0 |
Yes | 1 | 0 | 0 | 0 | |
No | 0 | 1 | 0 | 0 |