Double IF statement and Vlookup

ldashev

New Member
Joined
Mar 24, 2016
Messages
49
Need some help with a formula and I'm going to try to formulate what I'm trying to achieve and write down the logic below in steps:
1) Take value in TABLE 1 and Lookup for matching value in TABLE 2
2) If value is found then go 5 fields across (to the right) and bring back the value (value are either "blank", "Yes" or "No")
3) When value is blank record in the field as " ", when value is "No" record it as "N", when value is "Yes" go 2 cells over and bring back the value in the cell.

so far I have the formula covering steps 1 and 2, but struggling to get step 3, here's the formula below:

=IF(ISBLANK(VLOOKUP(D2,'QA Sheet'!$A$2:$AM$339,5,FALSE))," ",VLOOKUP(D2,'QA Sheet'!$A$2:$AM$339,5,FALSE))

TABLE 1 - is where the output goes
TABLE 2 - contains all of the data
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
If I'm recreating your spreadsheet properly, then this should work:

ABCDEFGHI
1N
213A
32YesB
43NoC
54YesD
65E
76NoF
87YesG
98NoH
10

<tbody>
</tbody>
QA Sheet

Worksheet Formulas
CellFormula
I1=IFERROR(CHOOSE(MATCH(VLOOKUP(D2,'QA Sheet'!$A$2:$AM$339,5,FALSE),{" ","No","Yes"},0)," ","N",VLOOKUP(D2,'QA Sheet'!$A$2:$AM$339,7,FALSE)),"")

<tbody>
</tbody>

<tbody>
</tbody>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top