Nested Formula - Need to match a range and lookup different data for the negative range result

Prince88

New Member
Joined
Apr 20, 2022
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
On my spreadsheet pictured I want to populate column C/ "Result" with the data in Column I/ "Action" field. I need Column B/ "No." to be looked at first and I want the data to return N if the Column I/ "Action" is N. I then need Column A/ "Ref" to be looked at and return the result in Column I/ "Action". If neither Column A/ "Ref or Column B/ "No." are listed in Column H/"NC" it can just show #N/A as I will need to add the missing reference to the list.

Thanks

ABCDEFGHI
RefNo.ResultNCAction
MD18272220510N
MD40872184040N
MD40874017409N
OP3825403MD182Y
OP3930510MD408Y
PD1890510OP382N
PD1890510OP393N
PD1900510PD348Y
PD1900510PD349Y
PD3360510MD382Y
PD3487250MD386Y
PD3497250PD189Y
 

Attachments

  • Book 1.PNG
    Book 1.PNG
    18.7 KB · Views: 3

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCDEFGHI
1RefNo.ResultNCAction
2MD1827222Y510N
3MD4087218Y4040N
4MD4087401Y7409N
5OP3825403NMD182Y
6OP393510NMD408Y
7PD189510NOP382N
8PD189510NOP393N
9PD190510NPD348Y
10PD190510NPD349Y
11PD336510NMD382Y
12PD3487250YMD386Y
13PD3497250YPD189Y
Lists
Cell Formulas
RangeFormula
C2:C13C2=IFNA(VLOOKUP(B2,$H$2:$I$13,2,0),VLOOKUP(A2,$H$2:$I$13,2,0))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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