If you are looking for code you could try this.
It would go in the sheet module of 'HEA Mass Calculator' and will be triggered when a formula is entered in B3.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rngDst As Range
Dim RegExp As Object
Dim matches As Object
Dim match As Object
Dim strFormula As String
If Target.Address(0, 0) = "B3" Then
Application.EnableEvents = False
strFormula = Target.Value
Set RegExp = CreateObject("VBScript.RegExp")
RegExp.Pattern = "[A-Za-z]+"
RegExp.Global = True
Set matches = RegExp.Execute(strFormula)
Set rngDst = Range("B7")
For Each match In matches
rngDst.Value = match.Value
Set rngDst = rngDst.Offset(, 1)
Next match
RegExp.Pattern = "[.0-9]+"
Set matches = RegExp.Execute(strFormula)
Set rngDst = Range("B8")
For Each match In matches
rngDst.Value = Val(match.Value)
Set rngDst = rngDst.Offset(, 1)
Next match
Application.EnableEvents = True
End If
End Sub
Bookmarks