+ Reply to Thread
Results 1 to 4 of 4

Realizando buscas no Excel com dois critérios vba

  1. #1
    Registered User
    Join Date
    12-03-2020
    Location
    Brasil
    MS-Off Ver
    2010
    Posts
    2

    Realizando buscas no Excel com dois critérios vba

    Eu tenho uma tabela("tbcliente" o nome da tabela) com Três registro na seguinte sequencia (código, cliente e empresa) e ela se localiza na segunda aba (Sheets("Plan2") eu preciso de uma maneira onde eu digito o nome do cliente e a empresa na primeira aba (Sheets("Plan1") na célula "A2" e "B2" e ela me retorne o código na célula "C2" .
    Teria como alguém me ajudar nesse projeto?
    Que Deus abençoe a todos em nome de Jesus Cristo!!!

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Realizando buscas no Excel com dois critérios vba

    I believe that what you are looking for is something along the lines of:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that the formula is modeled in the attached file.
    Let us know if you have any questions.

    Translation (I hope):
    Acredito que o que você está procurando é algo nos moldes de: =ÍNDICE(Plan2! A$2:A$11,AGGREGATE(15,6,(ROW(A$2:A$11)-ROW (A$1))/(Plan2! B$2:B$11=A2)/(Plan2! C$2:C$11=B2),1))
    Observe que a fórmula está modelada no arquivo anexado.
    Deixe-nos saber se você tem alguma dúvida.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    12-03-2020
    Location
    Brasil
    MS-Off Ver
    2010
    Posts
    2

    Re: Realizando buscas no Excel com dois critérios vba

    A busca seria.
    Mas preciso no comando VBA e a busca teria de ser feito em cima de uma tabela que sempre está sendo renovada!

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Realizando buscas no Excel com dois critérios vba

    If you convert the range (A1:C11) into a table then the formula should update as new rows are added. I don't know enough about VBA to be of help you with that. If you can use an online translator to make posts in English, then you could ask one of the moderators to move this thread to the VBA forum for you.
    I hope that you have a blessed day.

    Se você converter o intervalo (A1:C11) em uma tabela, a fórmula deve ser atualizada à medida que novas linhas forem adicionadas. Não sei o suficiente sobre a VBA para ajudá-lo com isso. Se você pode usar um tradutor online para fazer postagens em inglês, então você pode pedir a um dos moderadores para mover este tópico para o fórum VBA para você.
    Espero que tenha um dia abençoado.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Juntar dois livros num só (Português)
    By zetuga in forum Non English Excel
    Replies: 1
    Last Post: 09-02-2014, 04:17 PM
  2. want to filter the data with 2 criterios.
    By aravindhan_31 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2008, 02:52 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1