السلام عليكم اخي فضل
اولاً
هذا الشرح لما طلبت انت والاخ الفاضل الشهابي
ثانياً هذا الكود الجديد (مع التعديل الصحيح)
Sub Abu_Ahmed1()
Application.ScreenUpdating = False
Dim cl As Range
For Each cl In [C2:C20]
If cl = [K5] Then
m = m & Trim(cl.Offset(0, -1)) & ","
Min_V = Trim(cl.Offset(0, -1))
End If
Next
No_V = UBound(Split(m, ","))
For Each c In Split(Mid(m, 1, Len(m) - 1), ",")
If Val(c) > Val(max_V) Then max_V = c
If Val(c) < Val(Min_V) Then Min_V = c
Next
[j9] = Min_V: [K9] = max_V: [L9] = No_V
Application.ScreenUpdating = True
End Sub