M
MT
I need some help with the IF function, What I am trying
to do is to set the following conditions, it is like a 4Q
matrix:
- If Cell A2 is greater than 5 AND cell B2 is Greater
than 5 then answer to cell C2 is equal to RED
- If Cell A2 is greater than 5 AND cell B2 is less or
equal to 5 then answer to cell C2 is equal to ORANGE
- If Cell A2 is less or equal to 5 AND cell B2 is Greater
than 5 then answer to cell C2 is equal to YELLOW
- If Cell A2 is less or equal to 5 AND cell B2 is less or
equal to 5 then answer to cell C2 is equal to GREEN
The formula I have put in as follow but doesn't seems to
work probably, please help
=IF(A2>5&B2>5,"Red",IF(A2>5&B2<=5,"Orange",IF
(A2<=5&B2>5,"Yellow",IF(A2<=5&B2<=5,"Green"))))
Many thanks!
to do is to set the following conditions, it is like a 4Q
matrix:
- If Cell A2 is greater than 5 AND cell B2 is Greater
than 5 then answer to cell C2 is equal to RED
- If Cell A2 is greater than 5 AND cell B2 is less or
equal to 5 then answer to cell C2 is equal to ORANGE
- If Cell A2 is less or equal to 5 AND cell B2 is Greater
than 5 then answer to cell C2 is equal to YELLOW
- If Cell A2 is less or equal to 5 AND cell B2 is less or
equal to 5 then answer to cell C2 is equal to GREEN
The formula I have put in as follow but doesn't seems to
work probably, please help
=IF(A2>5&B2>5,"Red",IF(A2>5&B2<=5,"Orange",IF
(A2<=5&B2>5,"Yellow",IF(A2<=5&B2<=5,"Green"))))
Many thanks!