Source Data: 
Data to be pop: 
I have a String like:
AV0(25CS,10P,5X)
AV0(10P,5X)
AV0(10P)
AV0(5X)
I have a table with column AV , CS, P , X I want to populate 0 in the cell below AV , 25 in the cell below CS , 10 in the cell below, 5 in the cell below X.
Please help.
I tried for CS:
str = Cells(1, 1).Value 'String Value
openPos = InStr(str, "(")
closePos = InStr(str, ")")
Cells(2, 2) = Mid(str, openPos + 1, closePos - openPos - 1) 'String value to cells
