Forum Discussion

rafi97cteep's avatar
rafi97cteep
Copper Contributor
Apr 12, 2022
Solved

PROCV and IF

Hi guys,

 

I have this table 1 in my excel, who that contains the information I'm looking for in the procv!!

 

I need to extract this information (which is in a tab) and bring it to another tab.

 

In the column "Tipo do Objeto" object type will be entered, and from that, a filter is performed on table 1 that will return variables that are related to this type, such as the part ("Parte Descrição") and the defect ("Tipo Descrição"), and each variable returns a number referring to the value contained in table 1

 

like that:

 

 

to do that i use some ifs =/ but however I know that I can using procv or even 2 procv... 

the problem is how do i do it! I've tried many ways and nothing...

 

help me guys!

 

 

 

 

 

  • rafi97cteep 

    =VLOOKUP(H18,CHOOSE({1,2},$B$2:$B$8,$A$2:$A$8),2,FALSE)

    Maybe with this formula. Enter the formula with ctrl+shift+enter if you don't work with Office365 or 2021. It is also possible to look for the "Parte Descrição" and the "Tipo de Equipamento" and then return "Parte Código" with PROCV. There are different possibilities in the attached file.

     

    If you work with Office365 or 2021 you can use XLOOKUP (PROCX) to do this. 

6 Replies

  • jitinm's avatar
    jitinm
    Iron Contributor
    You can also use "Xlookup" instead. It is an alternate to Inde-x-Match.
  • rafi97cteep 

    =INDEX($B$2:$B$8,MATCH(1,($A$2:$A$8=N6)*($E$2:$E$8=Q6),0))
    =VLOOKUP(N2&Q2,CHOOSE({1,2},$A$2:$A$8&$E$2:$E$8,$B$2:$B$8),2,0)

    Is this what you want to do? Enter the formula with ctrl+shift+enter if you don't work with Office365 or 2021.

    • rafi97cteep's avatar
      rafi97cteep
      Copper Contributor

      OliverScheurich 

       

      Yes it is 🙂

       

      But the text returns the number, that is, when looking for the "Parte Descrição" the procv must return "Parte Código"

      Can you help me again?

      Spoiler
      Spoiler



      like this:


       

       

      • OliverScheurich's avatar
        OliverScheurich
        Gold Contributor

        rafi97cteep 

        =VLOOKUP(H18,CHOOSE({1,2},$B$2:$B$8,$A$2:$A$8),2,FALSE)

        Maybe with this formula. Enter the formula with ctrl+shift+enter if you don't work with Office365 or 2021. It is also possible to look for the "Parte Descrição" and the "Tipo de Equipamento" and then return "Parte Código" with PROCV. There are different possibilities in the attached file.

         

        If you work with Office365 or 2021 you can use XLOOKUP (PROCX) to do this. 

Resources