Function HighestValue(NameToSearch As String, ListOfNames As Range)
Dim lRow, x As Long
lRow = Cells(Rows.Count, MyRange.Column).End(xlUp).Row
For x = lRow To 1 Step -1
If Cells(x, MyRange.Column) = sValue Then
HighestValue = Cells(x, MyRange.Column + 1).Value
Exit Function
End If
Next x
End Function
Glad we were able to help! Love us? Write us a review! Rate CCM
6897 users have said thank you to us this month
Function HighestValue(NameToSearch As String, ListOfNames As Range)
Dim lRow, x As Long
lRow = Cells(Rows.Count, ListOfNames.Column).End(xlUp).Row
For x = lRow To 1 Step -1
If Cells(x, ListOfNames.Column) = NameToSearch Then
HighestValue = Cells(x, ListOfNames.Column + 1).Value
Exit Function
End If
Next x
End Function
Glad we were able to help! Love us? Write us a review! Rate CCM
6897 users have said thank you to us this month
- Posts
- 2519
- Registration date
- Sunday September 12, 2010
- Status
- Moderator
- Last seen
- September 3, 2019
361 -Sorry for the very late response, didn't mean to leave you hanging.
It looks to me as you would have to use a semi-colon instead of a comma. That would depend on the Excel regional version you have. I have to use the semi-colon, but most people here have to use the comma.
So try:
=HigestValue(E2;B:B)
Best regards,
Trowa
- Posts
- 7
- Registration date
- Monday July 15, 2019
- Status
- Member
- Last seen
- August 26, 2019
-Didn't work neither. Got an error.
- Posts
- 12936
- Registration date
- Monday June 3, 2013
- Status
- Moderator
- Last seen
- September 3, 2019
1342 > anitatelecon- Posts
- 7
- Registration date
- Monday July 15, 2019
- Status
- Member
- Last seen
- August 26, 2019
-- Posts
- 7
- Registration date
- Monday July 15, 2019
- Status
- Member
- Last seen
- August 26, 2019
> ac3mark- Posts
- 12936
- Registration date
- Monday June 3, 2013
- Status
- Moderator
- Last seen
- September 3, 2019
-- Posts
- 7
- Registration date
- Monday July 15, 2019
- Status
- Member
- Last seen
- August 26, 2019
-