SOLVED

PROCV and IF

Occasional Contributor

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!

6 Replies

Re: PROCV and IF

``=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.

Re: PROCV and IF

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:

Re: PROCV and IF

sorry the spoilers
best response confirmed by rafi97cteep (Occasional Contributor)
Solution

Re: PROCV and IF

``=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.

Re: PROCV and IF

You can also use "Xlookup" instead. It is an alternate to Inde-x-Match.

Re: PROCV and IF

Thanks ur the best