Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Oops! I deleted too much.
I added the "On error" back here. Function Complement(Rng1, Rng2) '// Elements in Rng1 that are not in Rng2 Dim D Dim C As Range Set D = CreateObject("Scripting.Dictionary") On Error Resume Next For Each C In Rng1.Cells If C < vbNullString Then D.Add C.Value, 1 Next C For Each C In Rng2.Cells If D.exists(C.Value) Then D.Remove (C.Value) Next C Complement = D.keys End Function = = = Dana DeLouis <snip |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Combining two ranges based on common a common value | Excel Discussion (Misc queries) | |||
Comparing two ranges of data and identify the common/like informat | Excel Discussion (Misc queries) | |||
Find rows with a common item and find or highlight difference | Excel Programming | |||
Find Common names in multi ranges | Excel Worksheet Functions | |||
How do I find the number of elements in an Array of Strings? | Excel Programming |