IfAND help

Hooah_Bath

New Member
Joined
Dec 22, 2021
Messages
3
Office Version
  1. 2016
Hello. I created a VLOOKUP to find matches between 2 sheets in my workbook. For the cells without a match, it returned #N/A. I now need to get a formula to return these in another cell. I was trying something like this,
IF(A2="#N/A", Declined!B2, "Good") but I keep getting #N/A. Any help is greatly appreciated.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi

Probably something like IFNA(A2),Declined!B2,"Good").
 
Upvote 0
Maybe one of these formulas will work for you.
Book1
ABCDE
1List 1List 2Not in list 2Not in list 2
2FrankBill Mary
3BillFrank Jean
4MaryFredMaryKathy
5SamSam  
6JeanJudyJean 
7KathyKathy 
Sheet1
Cell Formulas
RangeFormula
C2:C7C2=IF(ISERROR(VLOOKUP(A2,$B$2:$B$6,1,0)),A2,"")
E2:E7E2=IFERROR(INDEX($A$2:$A$7,AGGREGATE(15,6,(ROW($A$2:$A$7)-ROW($A$2)+1)/(ISNA(MATCH($B$2:$B$7,$A$2:$A$7,0))),ROWS($E$2:E2))),"")
 
Upvote 0
Solution
So I have tried all responses so far. It's not grabbing exactly what I want.
B2 from Sheet2 needs to look at the entire column of B in Sheet1 to see if there is a match. If so then it should say Good. If not then I need it to say what is in B2 from Sheet2.
I then need to copy this formula down to cover B2, B3, B4, and so on.
 
Upvote 0
Excel Formula:
=IF(ISNA(A2),Declined!B2,"Good"))
 
Upvote 0
I believe I figured it out using the info you two provided. Thanks a lot. I'll post the results tomorrow.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,262
Members
449,075
Latest member
staticfluids

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