Match LEFT Characters in column

Utradeshow

Well-known Member
Joined
Apr 26, 2004
Messages
800
Office Version
  1. 365
I have a column that contain serial Numbers. I need to match the ones that the LEFT 14 characters match.

Asset Status Report 06.20.24.xlsx
AB
1YESXOM14287469874
2YESXOM14287469874M
3NOXBO15478715455
4NOXBO15478715451X
Sheet1
 
The formulae in posts 2 & 5 do not need to be copied down. Just put one in A1 & it will spill down.
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
If you only ever need to look at the row above and below because your data is sorted, then perhaps a formula like this for cell A2 (assuming your have a header row in row 1):
Excel Formula:
=IF(OR(LEFT(B2,14)=LEFT(B1,14),LEFT(B2,14)=LEFT(B3,14)),"YES","NO")
and copy down.
 
Upvote 0
If you only ever need to look at the row above and below because your data is sorted, then perhaps a formula like this for cell A2 (assuming your have a header row in row 1):
Excel Formula:
=IF(OR(LEFT(B2,14)=LEFT(B1,14),LEFT(B2,14)=LEFT(B3,14)),"YES","NO")
and copy down.
Actually, this one works great I think. It is also LIGHT on the resources.
 
Upvote 0

Forum statistics

Threads
1,221,602
Messages
6,160,739
Members
451,669
Latest member
Peaches000

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