View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ric0999 Ric0999 is offline
external usenet poster
 
Posts: 7
Default simple IF question

On 16 maio, 13:53, bokey wrote:
How do I write a formula that would evaluate a cell and return different
values?

IF cell = 1 or 2, return "A", if cell = 3, 4 or 5, return "B"


Try this:

=IF(OR(Cell=1;Cell=2);"A";IF(OR(Cell=3;Cell=4;Cell =5);"B";"")).