Help needed for "find"

Neitrino

New Member
Joined
Aug 13, 2011
Messages
10
I have a huge column A with some data, on another sheet or on the same sheet I have another column B with some other data...

Is it possible and how should I tell excel to search individualy all values from column "A" in column "B" and if column "B" contains values that exist in column "A" then let the next right neighbouring cell to column "A" cell turn into green or let there appear "ok" notification...


May u pls help i need this urgently
thank u
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
You mean like this? You could also build this into conditional formatting so that the cells turn green.

Excel Workbook
ABC
1Random text 1blahOK
2Random text 2blah 
3Random text 3Random text 1 
4Random text 4blah 
5Random text 5blah 
6Random text 6Random text 9 
7Random text 7blah 
8Random text 8blah 
9Random text 9blahOK
10Random text 10blah 
Sheet1
 
Upvote 0
Conditional Formatting example
Excel Workbook
AB
1ThisFormatting
2isStuff
3atest
4test
5of
6Conditional
7Formatting
Sheet
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A11. / Formula is =AND(A1<>"",COUNTIF(B:B,A1))Abc
A21. / Formula is =AND(A2<>"",COUNTIF(B:B,A2))Abc
A31. / Formula is =AND(A3<>"",COUNTIF(B:B,A3))Abc
A41. / Formula is =AND(A4<>"",COUNTIF(B:B,A4))Abc
A51. / Formula is =AND(A5<>"",COUNTIF(B:B,A5))Abc
A61. / Formula is =AND(A6<>"",COUNTIF(B:B,A6))Abc
A71. / Formula is =AND(A7<>"",COUNTIF(B:B,A7))Abc
 
Upvote 0
This marks column A (and puts ok in column B) of Sheet3
Info it compares with is in Sheet2, column A

Code:
Sub CheckFromSheet2ToSheet3()
'remove any previous coloring
  Range("A:A").Interior.ColorIndex = 0
  Set chsht = Sheets("sheet2")
  For Each ce In Range("A2:A" & Cells(Rows.Count, 1).End(xlUp).Row)
    If WorksheetFunction.CountIf(chsht.Range("A:A"), ce.Value) > 0 Then
      ce.Interior.ColorIndex = 4
        ce.Offset(, 1).Value = "ok"
    End If
  Next ce
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,628
Members
452,933
Latest member
patv

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