Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Don,
Thanks for the solution you had send to me (and which is included below). It works as needed :) Regards, Johan. ================ '======== Option Explicit Sub GetDataSAS() Dim c As Range Dim mf As Range Dim i As Long Application.ScreenUpdating = False Cells(2, "e").Resize(100, 3).ClearContents For Each c In Sheets("sheet2").Range("b2:b5") For i = 2 To 4 Set mf = Columns(i).Find(What:=c, LookIn:=xlValues, _ LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _ MatchCase:=False, SearchFormat:=False) If Not mf Is Nothing Then Cells(mf.Row, "f") = Cells(mf.Row, "f") & " " & c Cells(mf.Row, "e") = Cells(mf.Row, "e") & " " & c.Offset(, -1) Cells(mf.Row, "g") = Cells(mf.Row, "g") + 1 End If Next i Next c Columns.AutoFit Application.ScreenUpdating = True End Sub '======== |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reading a list of names to update their records | Excel Discussion (Misc queries) | |||
How do I calculate a mark up margin in Excel - price= List - 40% | Excel Discussion (Misc queries) | |||
Excel 2007 - need to mark, not remove, duplicate records. | Excel Discussion (Misc queries) | |||
create a random list of names from a list of names in EXCEL | Excel Worksheet Functions | |||
using conditional formatting to mark repeated names in list? | Excel Discussion (Misc queries) |