IF Formula to check 2 Colums for Correct Data

Double Cross

New Member
Joined
Sep 15, 2011
Messages
9
Good Morning,

I am trying to create an IF formula to check if data in 2 columns match. The criteria is if column A has a "-V" at the end of the document number and column B is attributed it's correct. If column A document number has a "-V" at the end and column B is not attributed it's incorrect (like row 2). If column A document number doesn't have a "-V" at the end and column B is attriuted it's incorrect (like row 3).
Column A
Row 1 005B-230-05-A01-0001-V
Row 2 005B-230-05-A01-0002-V
Row 3 005B-230-05-A01-0003
Column B
Row 1 SDR-ALL TAGS-1
Row 2
Row 3 DR-230HI501-1

Thanks
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
=IF(AND(RIGHT(A2,2)="-V",B2<>""),"Correct",IF(OR(AND(RIGHT(A2,2)="-V",B2=""),AND(RIGHT(A2,2)<>"-V",B2<>"")),"Incorrect","Unsure"))
 
Upvote 0

Forum statistics

Threads
1,224,596
Messages
6,179,807
Members
452,944
Latest member
2558216095

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