Ir para o conteúdo principal

Como criar sua própria caixa de pesquisa no Excel?

Exceto usando a função Localizar no Excel, na verdade você pode criar sua própria caixa de pesquisa para pesquisar os valores necessários facilmente. Este artigo mostrará dois métodos para criar sua própria caixa de pesquisa no Excel em detalhes.

Crie sua própria caixa de pesquisa com Formatação Condicional para destacar todos os resultados pesquisados
Crie sua própria caixa de pesquisa com fórmulas para listar todos os resultados pesquisados


Crie sua própria caixa de pesquisa com Formatação Condicional para destacar todos os resultados pesquisados

Você pode fazer o seguinte para criar sua própria caixa de pesquisa usando a função Formatação Condicional do Excel.

1. Selecione o intervalo com os dados que você precisa pesquisar pela caixa de pesquisa e clique em Formatação condicional > Nova regra sob a Início aba. Veja a imagem:

2. No Nova regra de formatação caixa de diálogo, você precisa:

2.1) Selecione Use uma fórmula para determinar quais células formatar opção no Selecione um tipo de regra caixa;

2.2) Insira a fórmula = ISNUMBER (PROCURAR ($ B $ 2, A5)) no Formate os valores onde esta fórmula for verdadeira caixa;

2.3) Clique no Formato botão para especificar uma cor destacada para o valor pesquisado;

2.4) Clique no OK botão.

Notas:

1. Na fórmula, $ B $ 2 é uma célula em branco que você precisa para usá-la como uma caixa de pesquisa e A5 é a primeira célula do intervalo selecionado na qual você precisa pesquisar os valores. Altere-os conforme necessário.

2. A fórmula não faz distinção entre maiúsculas e minúsculas.

Agora a caixa de pesquisa é criada, ao digitar os critérios de pesquisa na caixa de pesquisa B2 e pressionar a tecla Enter, todos os valores correspondidos no intervalo especificado são pesquisados ​​e destacados imediatamente conforme a imagem abaixo mostrada.


Crie sua própria caixa de pesquisa com fórmulas para listar todos os resultados pesquisados

Supondo que você tenha uma lista de dados localizada no intervalo E4: E23, que você precisa pesquisar, se quiser listar todos os valores correspondentes em outra coluna após pesquisar com sua própria caixa de pesquisa, você pode tentar o método abaixo.

1. Selecione uma célula em branco adjacente à célula E4, aqui eu seleciono a célula D4 e, a seguir, insiro a fórmula = IFERROR (PROCURAR ($ B $ 2, E4) + LINHA () / 100000, "") na barra de fórmula e, em seguida, pressione o Entrar chave. Veja a imagem:

Note: Na fórmula, $ B $ 2 é a célula que você precisa para usá-lo como uma caixa de pesquisa, E4 é a primeira célula da lista de dados que você precisa pesquisar. Você pode alterá-los conforme necessário.

2. Continue selecionando a célula E4 e arraste a alça de preenchimento para a célula D23. Veja a imagem:

3. Agora selecione a célula C4, insira a fórmula = IFERROR (RANK (D4, $ D $ 4: $ D $ 23,1), "") na barra de fórmulas e pressione o botão Entrar chave. Selecione a célula C4 e arraste a alça de preenchimento para baixo até C23. Veja a imagem:

4. Agora você precisa preencher a faixa A4: A23 com o número de série que aumenta em 1 de 1 a 20 conforme a captura de tela abaixo:

5. Selecione uma célula em branco que você precisa para exibir o resultado pesquisado, insira a fórmula = IFERROR (PROCV (A4, $ C $ 4: $ E $ 23,3, FALSO), "") na Barra de Fórmula e pressione o Entrar chave. Continue selecionando a célula B4, arraste a alça de preenchimento para baixo até B23, como mostrado na imagem abaixo.

A partir de agora, ao inserir dados na caixa de pesquisa B2, todos os valores correspondidos serão listados no intervalo B4: B23 conforme a imagem abaixo mostrada.

Note: este método não faz distinção entre maiúsculas e minúsculas.

Melhores ferramentas de produtividade de escritório

🤖 Assistente de IA do Kutools: Revolucionar a análise de dados com base em: Execução Inteligente   |  Gerar Código  |  Crie fórmulas personalizadas  |  Analise dados e gere gráficos  |  Invocar funções do Kutools...
Recursos mais comuns: Encontre, destaque ou identifique duplicatas   |  Excluir linhas em branco   |  Combine colunas ou células sem perder dados   |   Rodada sem Fórmula ...
Super pesquisa: VLookup de múltiplos critérios    VLookup de múltiplos valores  |   VLookup em várias planilhas   |   Pesquisa Difusa ....
Lista suspensa avançada: Crie rapidamente uma lista suspensa   |  Lista suspensa de dependentes   |  Lista suspensa de seleção múltipla ....
Gerenciador de colunas: Adicione um número específico de colunas  |  Mover colunas  |  Alternar status de visibilidade de colunas ocultas  |  Compare intervalos e colunas ...
Recursos em destaque: Foco da Grade   |  Vista de Design   |   Grande Barra de Fórmula    Gerenciador de pastas de trabalho e planilhas   |  Biblioteca (Auto texto)   |  Data Picker   |  Combinar planilhas   |  Criptografar/Descriptografar Células    Enviar e-mails por lista   |  Super Filtro   |   Filtro Especial (filtro negrito/itálico/tachado...) ...
15 principais conjuntos de ferramentas12 Texto Ferramentas (Adicionar texto, Remover Personagens, ...)   |   50+ de cores Tipos (Gráfico de Gantt, ...)   |   Mais de 40 práticos Fórmulas (Calcule a idade com base no aniversário, ...)   |   19 Inclusão Ferramentas (Insira o código QR, Inserir imagem do caminho, ...)   |   12 Conversão Ferramentas (Números para Palavras, Conversão de moedas, ...)   |   7 Unir e dividir Ferramentas (Combinar linhas avançadas, Dividir células, ...)   |   ... e mais

Aprimore suas habilidades de Excel com o Kutools para Excel e experimente uma eficiência como nunca antes. Kutools para Excel oferece mais de 300 recursos avançados para aumentar a produtividade e economizar tempo.  Clique aqui para obter o recurso que você mais precisa...

Descrição


Office Tab traz interface com guias para o Office e torna seu trabalho muito mais fácil

  • Habilite a edição e leitura com guias em Word, Excel, PowerPoint, Publisher, Access, Visio e Project.
  • Abra e crie vários documentos em novas guias da mesma janela, em vez de em novas janelas.
  • Aumenta sua produtividade em 50% e reduz centenas de cliques do mouse para você todos os dias!
Comments (29)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
me pueden apoyar en cual es la formula para solo buscar
porfa
This comment was minimized by the moderator on the site
Hi, for the second part: "Create Your Own Search Box With Formulas To List All Searched Results", it doesn't say what to do with the search box, my search box has no formula in it. I am trying to do it with multiple columns as well, does it work too?
This comment was minimized by the moderator on the site
Insert data from example. Copy formula in indicated cell, but delete space from formula. Easy!
This comment was minimized by the moderator on the site
i have tried using this but is dose not wont to highlight the box I am searching for why is this
This comment was minimized by the moderator on the site
Can you create a formula that captures two cells worth of information in retrospect i am using a set up that captures user names and badge data so i need it to when it filters that it carries both cells of information not just one
This comment was minimized by the moderator on the site
hi! I used the basic highlight search bar, but am having a couple of issues. it is predicting my search and finding it with no issues... however, it always highlights the cell a couple below or above the searched one. Are you able to help me with this please?
This comment was minimized by the moderator on the site
Hi! Is this applicable to Google Sheets? I'm trying to make a search box with formulas to list all searched results. I followed every steps listed above but the results shows nothing. There is an error tho, it says "change Iterative calculation". But whatever I do, it doesn't show anything - just blank. Can you help me with this, please... Thank you!
This comment was minimized by the moderator on the site
Good day,
This is only applicable to Microsoft Excel application. Sorry for the inconvenience.
This comment was minimized by the moderator on the site
Hi! Is this applicable to Google Sheets? I'm trying to make a search box with formulas to list all searched results. I followed every steps listed above but the results shows nothing. There is an error tho, it says "change Iterative calculation". But whatever I do, it doesn't show anything - just blank. Can you help me with this, please... Thank you!
This comment was minimized by the moderator on the site
Hello, I am using to search between my vendors (one column) and brands (another column). With this setup, there are brands (like Microsoft) that can have more vendors (vendor A, vendor B, vendor C,...). I would like to search for the brand (microsoft) name and would like to see all possible vendors (A, B & C as well). But now the result is only the first vendor and that's all. How can I change/fix that?

Many thanks!
This comment was minimized by the moderator on the site
Hi Tomas,
Maybe you can rearrange your data and create a dynamic drop down list to solve the problem. You can browse the below article for more details.
https://www.extendoffice.com/documents/excel/1350-excel-create-dynamic-drop-down-list.html
This comment was minimized by the moderator on the site
i followed the resulted search method and it worked perfectly however the results are hyperlinked and it shows me the result without the hyperlink is there a way i can make it show me the result with the link connection?
This comment was minimized by the moderator on the site
After entering the formula =ISNUMBER(SEARCH($B$1,A4)) for conditional formatting, if the cell I used for the search function is blank, all the cells that are searched (A4:C368) are highlighted. But once a string is entered for the search criteria the cells containing the search criteria are highlighted correctly. Is there a way to tweak the formula to not highlight until search criteria is entered? Or did I do something wrong?

Also, using the formula in step 5 on another sheet within the workbook isn't working. What I'm trying to do is perform a search and show results of that search on one sheet named Search & Results while having the information to be searched on a sheet named Index. The formula I'm using is =IFERROR(VLOOKUP(A3,Index!$A$4:$C$368,5,FALSE),"") where A3 is the beginning of my numbered cells on the Search & Results sheet and the search is taking place throughout cells A4:C368 on the Index sheet.
This comment was minimized by the moderator on the site
same had been having the same issue with the formula,try this in your conditional formatting rule "=AND($I$1<>"",ISNUMBER(SEARCH($I$1,$B4)))", it works for me
I1 is my search box, B4 is first cell of selected range
This comment was minimized by the moderator on the site
Hi Colby. Your vlookup formula=IFERROR(VLOOKUP(A3,Index!$A$4:$C$368,5,FALSE),"") refers to range from A4 to C368 in Sheet name index which have only 3 column but you are entering 5 right after $C$368 which tells the vlookup formula to display value of column 5 which does not exists in your selected range. Fix this and I believe that your problem will be solved.
This comment was minimized by the moderator on the site
I have the same problem. Did you get an answer?
This comment was minimized by the moderator on the site
also me. i have the same problem
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