Checking Data, Help Please

D

DaveM

Hi

Sheet1, Column A as Names in the cells as in A1 John Smith, A2 Joe Brown
etc.
In Column T there is the same name in each row, yet the name is in a
Sentence.
How is a good way of checking the cells have the same name in each row.

A1 John Smith - T1 John Smith was out today (could have text here)

A2 Joe Brown - T2 Joe Brown was in today (could have text here)

A3 Albert Jones - T3 New Albert Jones on holiday (could have text here)

Etc

Thanks in advance

All the best

Dave

Thought for the Day:
"There are many ways of going forward, but only one way of standing still."
Franklin D. Roosevelt
 
J

Jim Cone

Dim blnThere As Boolean
blnThere = (InStr(1, Range("T1").Value, Range("A1").Value, vbTextCompare) > 0)
MsgBox blnThere
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)




"DaveM"
wrote in message
Hi
Sheet1, Column A as Names in the cells as in A1 John Smith, A2 Joe Brown
etc.
In Column T there is the same name in each row, yet the name is in a
Sentence.
How is a good way of checking the cells have the same name in each row.

A1 John Smith - T1 John Smith was out today (could have text here)

A2 Joe Brown - T2 Joe Brown was in today (could have text here)

A3 Albert Jones - T3 New Albert Jones on holiday (could have text here)

Etc
Thanks in advance
All the best
Dave

Thought for the Day:
"There are many ways of going forward, but only one way of standing still."
Franklin D. Roosevelt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Matching Names 5
Payroll,formulas and Macros? 2
Deleting duplicated rows based on data in two columns 5
VBA Help 2
Transpose Text to Columns 2
ListBox Remove Certain Text 6
Sorting Problem 1
VLookup help 8

Top