Match LEFT Characters in column

Utradeshow

Well-known Member
Joined
Apr 26, 2004
Messages
802
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

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
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,223,909
Messages
6,175,315
Members
452,634
Latest member
cpostell

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