Ir para o conteúdo principal

Como retornar valor em outra célula se uma célula contiver determinado texto no Excel?

Conforme o exemplo abaixo, quando a célula E6 contém o valor “Sim”, a célula F6 será automaticamente preenchida com o valor “aprovar”. Se você alterar “Sim” para “Não” ou “Neutralidade” em E6, o valor em F6 será alterado para “Negar” ou “Reconsiderar” imediatamente. Como você pode fazer para alcançá-lo? Este artigo coleta alguns métodos úteis para ajudá-lo a resolvê-lo facilmente.


Retorna o valor em outra célula se uma célula contiver determinado texto com fórmula

Para retornar o valor em outra célula se uma célula contiver apenas um texto específico, tente a seguinte fórmula. Por exemplo, se B5 contém “Sim”, então retorne “Aprovar” em D5, caso contrário, retorne “Não qualificado”. Por favor faça o seguinte.

Selecione D5 e copie a fórmula abaixo nele e pressione o Entrar chave. Veja a imagem:

Fórmula: Retorna o valor em outra célula se uma célula contiver determinado texto

= SE (ISNUMBER (SEARCH ("Sim",D5)), "Aprovar","Sem qualificação")

Observações:

1. Na fórmula, “Sim" D5"aprovar"E"Sem qualificação”Indicam que se a célula B5 contiver o texto“ Sim ”, a célula especificada será preenchida com o texto“ aprovar ”, caso contrário, será preenchida com“ Sem qualificação ”. Você pode alterá-los de acordo com suas necessidades.

2. Para retornar o valor de outras células (como K8 e K9) com base em um valor de célula especificado, use esta fórmula:

= SE (ISNUMBER (SEARCH ("Sim",D5)),K8,K9)

Selecione facilmente linhas inteiras ou linhas inteiras na seleção com base no valor da célula em uma determinada coluna:

A Selecione células específicas utilidade de Kutools for Excel pode ajudá-lo a selecionar rapidamente linhas inteiras ou linhas inteiras na seleção com base no valor de célula específico em uma determinada coluna no Excel.  Baixe agora a trilha gratuita completa de 60 dias do Kutools para Excel!


Retorna valores em outra célula se uma célula contiver textos diferentes com fórmula

Esta seção mostrará a fórmula para retornar valores em outra célula, se uma célula contiver texto diferente no Excel.

1. Você precisa criar uma tabela com os valores específicos e valores de retorno localizados separadamente em duas colunas. Veja a imagem:

2. Selecione uma célula em branco para retornar o valor, digite a fórmula abaixo nela e pressione o botão Entrar chave para obter o resultado. Veja a imagem:

Fórmula: Retorna valores em outra célula se uma célula contiver textos diferentes

= VLOOKUP (E6,B5: C7,2,FALSO)

Observações:

Na fórmula, E6 é a célula que contém o valor específico em que você retornará o valor com base, B5: C7 é o intervalo da coluna que contém os valores específicos e os valores de retorno, o 2 número significa que os valores de retorno localizados na segunda coluna no intervalo da tabela.

A partir de agora, ao mudar o valor em E6 para um valor específico, o valor correspondente será devolvido em F6 imediatamente.


Retorna facilmente valores em outra célula se uma célula contiver textos diferentes

Na verdade, você pode resolver o problema acima de uma maneira mais fácil. o Procure um valor na lista utilidade de Kutools for Excel pode ajudá-lo a alcançá-lo com apenas alguns cliques sem se lembrar da fórmula.

1. Da mesma forma que o método acima, você também precisa criar uma tabela com os valores específicos e valores de retorno localizados separadamente em duas colunas.

2. Selecione uma célula em branco para produzir o resultado (aqui eu seleciono F6) e clique em Kutools > Fórmula Helper > Fórmula Helper. Veja a imagem:

3. No Fórmula Helper caixa de diálogo, configure da seguinte maneira:

  • 3.1 no Escolha uma fórmula caixa, encontre e selecione Procure um valor na lista;
    Tips: Você pode verificar o filtros caixa, digite determinada palavra na caixa de texto para filtrar a fórmula rapidamente.
  • 3.2 no Tabela_array caixa, selecione a tabela sem cabeçalhos que você criou na etapa 1;
  • 3.2 no Valor_procurado , selecione a célula que contém o valor específico no qual você retornará o valor com base;
  • 3.3 no Coluna caixa, especifique a coluna da qual você retornará o valor correspondente. Ou você pode inserir o número da coluna na caixa de texto diretamente, conforme necessário.
  • 3.4 Clique no OK botão. Veja a imagem:

A partir de agora, ao mudar o valor em E6 para um valor específico, o valor correspondente será devolvido em F6 imediatamente. Veja o resultado abaixo:

  Se você quiser ter um teste gratuito (30 dias) deste utilitário, por favor clique para fazer o downloade, em seguida, aplique a operação de acordo com as etapas acima.


Kutools para Excel - Ajuda você a sempre terminar o trabalho antes do tempo, ter mais tempo para aproveitar a vida
Você costuma se surpreender com o trabalho, falta de tempo para gastar com você e sua família?  Kutools for Excel pode ajudá-lo a lidar com 80% Supere os quebra-cabeças e melhore a eficiência do trabalho em 80%, dando a você mais tempo para cuidar da família e aproveitar a vida.
300 ferramentas avançadas para 1500 cenários de trabalho, tornam seu trabalho muito mais fácil do que nunca.
Não é mais necessário memorizar fórmulas e códigos VBA, dê um descanso ao seu cérebro de agora em diante.
Operações complicadas e repetidas podem ser realizadas em um único processamento em segundos.
Reduza milhares de operações com teclado e mouse todos os dias, diga adeus às doenças ocupacionais agora.
Torne-se um especialista em Excel em 3 minutos, ajude você a ser reconhecido rapidamente e receba uma promoção de aumento de salário.
110,000 pessoas altamente eficazes e mais de 300 opções de empresas de renome mundial.
Faça seus $ 39.0 valerem mais do que $ 4000.0 para treinamento de outras pessoas.
Avaliação gratuita de todos os recursos por 30 dias. Garantia de devolução do dinheiro em 60 dias sem motivo.

Comments (98)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
What would I need to add to this formula (Method A) to get a third BLANK option? And where would it go?
Example:
If the cell I'm searching is blank, I would like it to return no value in the other cell. I do not want the "if false" value to populate.
This comment was minimized by the moderator on the site
i want a cell to automatically choose a number based on the drop-down option in the cell before, e.g drop-down, half meal, full meal, if I select half meal drop-down, the next cell should show 50% while the full meal drop-down will reflect 100%. please help
This comment was minimized by the moderator on the site
Hi Josh,
In the cell where you want to output the percentage, enter the following formula and press the Enter key. Hope I can help.
=IF(C15="half meal", "50%", IF(C15="full meal", "100%", ""))
This comment was minimized by the moderator on the site
Is it possible to return a certain value in 1 column based on another?


What I currently have: On a differnt tab (same worksheet):
Column A Column B
Location Name Dept Location Name Location Code
Miami 4455 Miami 123


What I want to happen:
Location Name Dept
Miami 11234455

In Coumn B, I want it to first add a 1, then take what is in Column A, see what is the Location Code on then different tab, insert that location code, and add that to the front of the current data in Column B.

1 + 123 + 4455
This comment was minimized by the moderator on the site
Hi Jen Rader,
You can apply the following formula to get it done.
=IFERROR(1&VLOOKUP(A9,Sheet2!$A$2:$B$5,2, 0)&VLOOKUP(Sheet1!A9,Sheet1!$A$2:$B$5,2, 0),"")
In this formula,
1. A9 is the cell contains the value you want to return values based on;
2. Sheet2 is the tab name contains the "Location Code"; If the tab name contains space, please enclose the tab name in single quotes, such as 'tab name'.
3. Sheet1 is the tab name contains the "Dept";
4. $A$2:$B$5 is the range containing the table data (include both search values and return values ).
See screenshots below:
https://www.extendoffice.com/images/stories/comments/comment-picture-zxm/return1.png
https://www.extendoffice.com/images/stories/comments/comment-picture-zxm/return2.png
This comment was minimized by the moderator on the site
OMG Crystal! You are amazing! Show me your ways! Thank you so much - it worked exactly like I was hoping!
This comment was minimized by the moderator on the site
I am trying to find out the formula to copy the number shown in B2 on cell D2 if the Cell C2 has a letter "S". Can anyone help me?
This comment was minimized by the moderator on the site
Hi Aurora,
Please enter the following formula in cell D2.
=IF(ISNUMBER(SEARCH("S",C2)),B2,"No qualify")
This comment was minimized by the moderator on the site
Bonjour à tous, j'ai un tableau Excel et j'aimerais réaliser via une macro l'opération suivante: si une cellule contient une date, me renvoyer une valeur dans une autre cellule. Pourriez vous m'aider s'il vous plait? Je vous remercie par avance
This comment was minimized by the moderator on the site
STALLS D 25 Palais - Stalls SR
STALLS M 19 Palais - Stalls SR
LOUNGE E 22 Palais - Lounge SR
LOUNGE G 23 Palais - Lounge SL
ORCH K 40 Palais - Orchestra SR
For each line in a spreadsheet I need to evaluate against a table like above and find the value that matches all of the first 3 values.
Normally I would use sumifs for this type of problem but the answer is a text string so it returns 0
This comment was minimized by the moderator on the site
I need a formula that makes column N equal the text “OTO” if column K equals MCS TRAINING how do I do that???
This comment was minimized by the moderator on the site
Hi Abby,Please apply the following formula in the cells of column N:=IF(ISNUMBER(MATCH("MCS TRAINING",K1)),"OTO","NULL")
This comment was minimized by the moderator on the site
Hi - This is my formula that I am working with.  Currently it works, but where B21 is being returned, the value of B21 is a link to another place altogether.  I want to keep the display text but would like to include the link as well.  Can this be done?  =IF(ISNUMBER(SEARCH("DATA_MAPPING",general_report!AJ21)),general_report!B21,"")
This comment was minimized by the moderator on the site
Is it possible to split the return value to a different tab? IE: columns B and C are located on one tab, and values in columns E and F are located on a different tab?
This comment was minimized by the moderator on the site
Hi

Is it possible to populate another cell, not the cell with the formula.

Example
A1 Yes
A2 3
A3 Formula searches A1, Grabs value at A2 and if Yes Paste it in A4
A4 3 
This comment was minimized by the moderator on the site
Hi,
Sorry can't help you with the problem. I suggest you post the problem to the forum below to get help from other Excel enthusiasts.
https://www.extendoffice.com/forum/kutools-for-excel.html 
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations