Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Something like,
cLastA = Cells(Rows.Count,"A").End(xlUp).Row cLastC = Cells(Rows.Count,"C").End(xlUp).Row) Set testRange = Range(C1:C" & cLastC) For Each cell in Range("A1:A" & cLastA) On Error Resume Next Set oFind = testRange.Find(cell.Value) on error goto 0 If oFind Is Nothing Then Cells(cLastC+1,"C").Value = cell.Value cLastC = cLastC + 1 End If Set oFind = Nothing Next cell -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Todd Huttenstine" wrote in message ... Hey guys I need a code that will simply return true or false if a value is found in a range. Range C:C contains a list of values. Range A:A also contains a list of values. What is a code that will look at each value in range A:A and determine wheather or not its in Range C:C. If the value is detected in range C:C then do nothing. If the value is NOT detected in range C:C then add it to the range at the bottom. What is the code for this? Thank you Todd Huttenstine |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find Last cell in Range when range is date format | Excel Discussion (Misc queries) | |||
Find %ontime & SUMIF ontime ie: find matching sets within Range... | Excel Worksheet Functions | |||
Find the MAX number in range, then find... | Excel Discussion (Misc queries) | |||
Find a range of values in a range of cells | Excel Worksheet Functions | |||
Find dates in a range; then sum values in that range by a criteria | Excel Discussion (Misc queries) |