Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- B104=MAX(($A$2:$A$101*100+$B$1:$CW$1<B103)*($B$2:$CW$101=TargetValue)*($A$2:$A$101*100+$B$1:$CW$1))
- Dim arr As Range
- Dim tempval As Range
- Dim op As Integer
- Set arr = Worksheets("sheet1").Range("b2:ao41")
- op = 1
- Range("B53:D153").ClearContents
- For Each tempval In arr
- If Round(tempval.Value, 0) = Round(Range("b50").Value, 0) Then
- Range("b52").Offset(op, 0).Value = Range("a" & tempval.Row).Value
- Range("b52").Offset(op, 1).Value = Cells(tempval.Column, 1).Value
- Range("b52").Offset(op, 2).Value = tempval.Value
- op = op + 1
- End If
- Next
- Range("b50").Select
Add Comment
Please, Sign In to add comment