将以下内容附加到工作表的更改事件...
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim ARng As Range
Dim myRng As Range
Dim iCnt As Long, iLoop As Long
Dim found As Boolean
Set ARng = ActiveSheet.UsedRange
Set ARng = ARng.Cells(ARng.Rows.Count, 1)
If Not Intersect(Target, ARng) Is Nothing Then 'Check the last cell in column A changed
Set myRng = ActiveSheet.UsedRange
iCnt = myRng.Rows.Count
found = False
Do While Not found And iCnt > 0 'Search for another instance from the bottom up
iCnt = iCnt - 1
found = Target.Value = myRng.Cells(iCnt, 1).Value
If found Then 'found another instance so populate the row
For iLoop = 2 To myRng.Columns.Count
myRng.Cells(myRng.Rows.Count, iLoop) = myRng.Cells(iCnt, iLoop)
Next iLoop
End If
Loop
End If
End Sub
从这个开始...

然后在单元格 A4 中输入 LON9501 得到这个......
