One way would be to use a user-defined function. To implement ..
1. Right click the sheet name tab and choose "View Code".
2. In the Visual Basic window use the menu to Insert|Module
3. Copy and Paste the code below into the main right hand pane that opens at step 2.
4. Close the Visual Basic window.
5. Enter the formula as shown in the screen shot below and copy down.
6. Your workbook will need to be saved as a macro-enabled workbook (*.xlsm)
Code:
Function GetMax(s As String) As Variant
Dim m As Variant
GetMax = "N/A"
With CreateObject("VBScript.RegExp")
.Global = True
.Pattern = "\d+(\.\d*)?"
For Each m In .Execute(s)
If Val(m) > GetMax Or GetMax = "N/A" Then GetMax = Val(m)
Next m
End With
End Function
Sheet1
| A | B |
abc12334.12nvdv cdv5123.12ncdbcv234564.35 | | |
| | |
| | |
gfdgfdh | | |
asdfsaf8779fs1.2356985628df9sdf8f9fsdf9sd90f | | |
<tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]1[/TD]
[TD="align: right"]234564.35[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]2[/TD]
[TD="align: right"]2356[/TD]
[TD="align: right"]2356[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]3[/TD]
[TD="align: right"]N/A[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]4[/TD]
[TD="align: right"]N/A[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]5[/TD]
[TD="align: right"]8779[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4