Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

193
Visualizações
I cant get the right result with if statement in excel using both IF with AND statement

I am trying to retrieve DIV 1, DIV 2, DIV 3 AND DIV 4 if the values meet the conditions of AND but it only returns DIV 3 even if the values don't meet the condition.

The If statement have created is as below

=IF(AND(O2<=6,V2<=6),"DIV 1",
 IF(AND(O2>=7,V2<=6),"DIV 2",
 IF(AND(O2>=7,V2>=7),"DIV 3",
 IF(AND(O2=9,V2=9),"DIV 4"))))

I want to get DIV 1 if cells O2 and V2 are less than or equal to 6,
I want to get DIV 2 if cells O2 is greater or equal to 7 and V2 is less than or equal to 6,
I want to get DIV 3 if cells O2 and V2 are greater or equal to 7,
I want to get DIV 4 if cells O2 and V2 are equal to 9.

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Try this, change the test order as I suggested:

=IF(AND(O2>=9,V2>=9),"DIV 4",IF( AND(O2>=7,V2>=7),"DIV 3",IF(AND(O2>=7,V2<=6),"DIV 2",IF(AND(O2<=6,V2<=6),"DIV 1"))))

Tested and works: enter image description here

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda