Quantcast
Channel: Chandoo.org - Learn Excel & Charting Online - Forums Topic: extract number with decimal from a sentence or words
Viewing all articles
Browse latest Browse all 6

Marc L on "extract number with decimal from a sentence or words"

$
0
0

Another VBA way :

Function ExtractQty(Rg As Range)
         P = InStr(Rg(1), "(")

         Do While P
             Q = Q + Val(Mid(Rg(1), P + 1))
             P = InStr(P + 1, Rg(1), "(")
         Loop

         ExtractQty = Q
End Function

Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images