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:

ABC
R5R6L+FALSE
R5R6L+FALSE
R5R6L+FALSE
R5R6L+FALSE
R6LR6L+FALSE
R5R6L+FALSE
R5R6L+FALSE
R6LR6L+FALSE
R6LR6L+FALSE

<colgroup><col span="3"></colgroup><tbody>
</tbody>


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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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,216,235
Messages
6,129,650
Members
449,524
Latest member
RAmraj R

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