Using the 'If' function to match two columns with the same first three letters of text

Laurence D

New Member
Joined
Sep 14, 2016
Messages
31
Hi all,

I just want to perform a quick quality check on some of my data and I am after a bit of help to make the proper formula as I keep getting too fewer arguments with my formula.
ABC
1Food CodeFoodMatches?
2MARTOAMarmiteYes
3JAMTOAJamYes
4HONTOAMarmiteNo
5CORMILCornflakesYes

<tbody>
</tbody>

What I am after is an if formula that will search for the first three letters (to the left) of text in column A1 and see if matches with the first three letters (to the left) of text in column B1. Then if the columns matches to spit out in column C1 a "Yes" or if it does not match then "No".

Thanks,

Laurence
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
you dont need if here, you just say

Code:
=[B]left(a2,3)=left(b2,3)

[/B]
excel will evaluate itself.
 
Last edited:
Upvote 0
you dont need if here, you just say

Code:
=[B]left(a2,3)=left(b2,3)

[/B]
excel will evaluate itself.

Unless "Yes"/"No" is specifically needed rather than True/False
 
Upvote 0

Forum statistics

Threads
1,215,274
Messages
6,123,998
Members
449,137
Latest member
abdahsankhan

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