-1
我有許多單元格的數據範圍。Excel刪除數據不在範圍內
1,2,3,4,5,6,7,8,9
,我想reuslt說我使用指定參數時,(範圍,3,7) 然後將數據更改此範圍。
3,4,5,6,7
像這個公式,除了實際的數據被刪除。
Public Function MakeAList(rng As Range, U As Long, L As Long) As String
Dim r As Range, s As String
For Each r In rng
If r.Value < L Or r.Value > U Then
s = s & "," & r.Value
End If
Next r
MakeAList = Mid(s, 2)
End Function
改善您的問題和示例 – AHC