Home |
Search |
Today's Posts |
#3
![]() |
|||
|
|||
![]()
You would need to use a User-Defined-Function - see code below.
Used like =myMax(A1) HTH, Bernie MS Excel MVP Function myMax(incell As Range) As Double Dim myArr As Variant Dim myDbl() As Double Dim i As Integer myArr = Split(incell.Value, ",") ReDim myDbl(LBound(myArr) To UBound(myArr)) For i = LBound(myArr) To UBound(myArr) myDbl(i) = CDbl(myArr(i)) Next i myMax = Application.Max(myDbl) End Function "Hells" wrote in message ... Hello, Can anyone help me, I wish to return the higest number in a string of numbers (all in the same cell) seperated by commas. Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Seed numbers for random number generation, uniform distribution | Excel Discussion (Misc queries) | |||
How do I align numbers where one number has a dollar sign? | Charts and Charting in Excel | |||
How to compare 3 numbers and return value | Excel Worksheet Functions | |||
finding the second largest number in a list | Excel Discussion (Misc queries) | |||
Lookup closest number in list | Excel Discussion (Misc queries) |