Hi
I'm not quite sure what you mean by "displayed"
this macro will hide all rows in the selected cells not contaning "top":
Sub hide_rows()
Dim cc As Range
For Each cc In Selection.Cells
If Replace(cc, "top", "") = cc Then cc.EntireRow.Hidden = True
Next cc
End Sub
and this will copy all cells including "top" into a new column, starting at cell D2 (or change "destcell" to suit)
Sub copy_values()
Dim cc As Range, x As Long, DestCell As Range
Set DestCell = Range("D2")
For Each cc In Selection.Cells
If Replace(cc, "top", "") <> cc Then
cc.Copy Destination:=DestCell
Set DestCell = DestCell.Offset(1, 0)
End If
Next cc
End Sub
Bookmarks