Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, Iwant to search 10 columns of data one row at a time (50 rows). If the row contains the value "SL" then I want to add the value of the first column of the current row to a variable. I've tried looping through the entire range, but I then end up with duplicated data. I need to move to the next row once the first instance of "SL" is found. I have this so far (but it does not work Sub test Dim SickStaff As String Dim d As Range For Each d In ThisWorkbook.Sheets("AWD Grid").Range("G2:BB1000") If d.Value = "SL" Then SickStaff = SickStaff & Cells(d.Row, 1).Value & ", " End If Next d End sub Hope you can help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Complex search, copy, and move opperation. Please HELP!!! | Excel Discussion (Misc queries) | |||
Move names from Search to Excel | Excel Discussion (Misc queries) | |||
Search and Move - Cannot Figure This Out - Please Help | Excel Programming | |||
Search and move?? | Excel Programming | |||
How do I move data based on a conditional column search? | Excel Programming |