hilight unique data

ExcellingAZ

New Member
Joined
Jul 19, 2020
Messages
19
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I am looking for a formula or a setting that will take the data from Column "C" and will ID those that do not have the same info in Column "A". So example, C2 has EX_Bill_ this same info also shows in cell A2. But cell C4 has M_Bill and it does not show in cell A4. So A4 I would like to hilight or flag as not matching. Is there a setting or formula that can do this?


1663861953390.png
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Conditional formatting with a new formula will do it. With A2 selected use the following:
=LEFT($A2,LEN($C2))<>$C2
Paste format to other cells.
 
Upvote 0
VBA approach:
VBA Code:
Sub ColorCells()
    Application.ScreenUpdating = False
    Dim v As Variant, i As Long, x As Long
    v = Range("A2", Range("A" & Rows.Count).End(xlUp)).Resize(, 3).Value
    For i = LBound(v) To UBound(v)
        x = WorksheetFunction.Find("^", WorksheetFunction.Substitute(v(i, 3), "_", "^", 2))
        If Left(v(i, 1), x) <> Left(v(i, 3), x) Then
            Range("A" & i + 1).Interior.ColorIndex = 6
        End If
    Next i
    Application.ScreenUpdating = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,947
Members
449,095
Latest member
nmaske

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