If statement referencing column to find match and reference second column

justin_n84

Board Regular
Joined
Jan 29, 2017
Messages
59
I am looking for the right input for the bleow. I am struggling to get my head round this one, however I know it will be simple for somebody out there.

Please see attached image. All will make sense.

Sheet 1 column D, If Column A is listed in Column B of Sheet 2, reference column E (of the line it is listed) for input “V”. If this is true “Accept”, if not “reject”
 

Attachments

  • Excel Question.jpg
    Excel Question.jpg
    185.7 KB · Views: 10

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
please let us know what version of excel you use, and update your profile to display?
if you have excel 365:

try: (I may have typos)
Excel Formula:
=IFERROR(xlookup(A2,Sheet2!B:B,Sheet2!E:E)="V","Accept","Reject"),"Not Found")
 
Upvote 0
here are two options:

mr excel questions 12.xlsm
ABCDEF
1ManifoldXlOOKUPINDEXMATCHWeldAccept
2HDNo MatchNo MatchAA
3LYNo MatchNo MatchECV
4ECAcceptAcceptBB
5BSRejectRejectBSY
6SRRejectRejectCC
7QMNo MatchNo MatchDD
8KUNo MatchNo MatchSRX
9DGNo MatchNo MatchEE
10CMNo MatchNo MatchQQ
11AENo MatchNo MatchTT
Sheet29
Cell Formulas
RangeFormula
B2:B11B2=IFERROR(IF(XLOOKUP($A2,$E$2:$E$11,$F$2:$F$11)="V","Accept","Reject"),"No Match")
C2:C11C2=IFERROR(IF(INDEX($F$2:$F$11,MATCH($A2,$E$2:$E$11,0))="V","Accept","Reject"),"No Match")
 
Upvote 0
Solution
please let us know what version of excel you use, and update your profile to display?
if you have excel 365:

try: (I may have typos)
Excel Formula:
=IFERROR(xlookup(A2,Sheet2!B:B,Sheet2!E:E)="V","Accept","Reject"),"Not Found")
Hi, thank you soo much for putting this together. I am using Excel 365.

I have entered your formular, however, Excel states too many arguments? Sorry I am not so clued up around these types of formulas.....
 
Upvote 0
Happy to help. Best wishes. If you thing one of the posts has provided you with a solution please mark that particular post as the answer.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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