Compare first 3 characters in 2 columns

eezo89

New Member
Joined
Aug 2, 2019
Messages
3
Hello everyone,

I'm kind of in a pickle. So here's what I need:

[TABLE="width: 303"]
<colgroup><col span="3"></colgroup><tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]R5[/TD]
[TD]R6L+[/TD]
[TD]FALSE[/TD]
[/TR]
[TR]
[TD]R5[/TD]
[TD]R6L+[/TD]
[TD]FALSE[/TD]
[/TR]
[TR]
[TD]R5[/TD]
[TD]R6L+[/TD]
[TD]FALSE[/TD]
[/TR]
[TR]
[TD]R5[/TD]
[TD]R6L+[/TD]
[TD]FALSE[/TD]
[/TR]
[TR]
[TD]R6L[/TD]
[TD]R6L+[/TD]
[TD]FALSE[/TD]
[/TR]
[TR]
[TD]R5[/TD]
[TD]R6L+[/TD]
[TD]FALSE[/TD]
[/TR]
[TR]
[TD]R5[/TD]
[TD]R6L+[/TD]
[TD]FALSE[/TD]
[/TR]
[TR]
[TD]R6L[/TD]
[TD]R6L+[/TD]
[TD]FALSE[/TD]
[/TR]
[TR]
[TD]R6L[/TD]
[TD]R6L+[/TD]
[TD]FALSE
[/TD]
[/TR]
</tbody>[/TABLE]


So there are my columns for example. I need a formula to compare first three characters in columns A and B. If they match, come up as TRUE instead of FALSE. Basically I want to ditch the + sign. It's irrelevant. I have thousands of these rows, so I can't do it manually.

Help! :D

Thank you! ^^
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Welcome to the Board!

Some of your entries only contain two characters, so depending on how you are comparing, always taking three characters might not work.
Are you always comparing the same row when comparing columns A and B?

Note, if you really don't care about the "+" sign, you can easily remove them all at once, using Find/Replace and replacing + with nothing, and updating all at once.
Then you don't need to worry about coming up with special formulas.
 
Upvote 0
Sorry, my bad, that didn't really work in the end :/
I got really different results throughout the column.

I know about the replacement, I need the + signs for another tab. It has to stay unfortunately.
 
Upvote 0
Did you try Joe's idea, or mine? The formula I provided compares the 2 columns for the length of the value in the first column. So if the value has 2 characters or 3, that's what it compares. You shouldn't need to remove the + sign.
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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