=RIGHT("#568775",6)
=MID(A1,2,LEN(A1)-1)
SUM(LEN(A1)-LEN(SUBSTITUTE(A1,{1,2,3,4,5,6,7,8,9},"")))-LEN(A1)
=MID(A1,LEN(A1)-SUM(LEN(A1)-LEN(SUBSTITUTE(A1,{1,2,3,4,5,6,7,8,9},"")))+1,SUM(LEN(A1)-LEN(SUBSTITUTE(A1,{1,2,3,4,5,6,7,8,9},""))))
=LEFT(A1,LEN(A1)-SUM(LEN(A1)-LEN(SUBSTITUTE(A1,{"A","B","C","D","E","F","G","H"},""))))
=MID(A2,LEN(A2)-SUM(LEN(A2)-LEN(SUBSTITUTE(A2,{"A","B","C","D","E","F","G","H"},""))),LEN(A2)-SUM(LEN(A2)-LEN(SUBSTITUTE(A2,{"A","B","C","D","E","F","G","H"},""))))
=MID(A3,LEN(A3)-SUM(LEN(A3)-LEN(SUBSTITUTE(A3,{"A","B","C","D","E","F","G","H"},"")))-1,LEN(A3)-9)&""&MID(RIGHT(A3,SUM(LEN(A3)-LEN(SUBSTITUTE(A3,{"A","B","C","D","E","F","G","H"},"")))-2),1,2)
Sub myTest()
x = Array("A", "B", "C", "D", "E", "F", "G", "H", "I")
For i = 0 To UBound(x)
For j = 1 To Cells(Rows.Count, 1).End(xlUp).Row
Cells(j, 1).Replace _
What:=x(i), Replacement:="", _
SearchOrder:=xlByColumns, MatchCase:=True
Next j
Next i
End Sub
Sub myTest()
x = Array("A", "B", "C", "D", "E", "F", "G", "H", "I")
For i = 0 To UBound(x)
For j = 1 To Cells(Rows.Count, 1).End(xlUp).Row
Cells(j, 1) = Application.Substitute(Cells(j, 1), _
x(i), "")
Next j
Next i
End Sub
Check the uploaded workbook.=NPV(-0.9,,IFERROR(MID(A1,1+LEN(A1)-ROW(OFFSET(A$1,,,LEN(A1))),1)%,""))
Hi,
Here is a formula gem from Lori that does the same thing. Again, for a string in cell A28:
=NPV(-0.9,,IFERROR(MID(A28,1+LEN(A28)-ROW(OFFSET(A$1,,,LEN(A28))),1)%,""))&""
enter with Ctrl + Shift + Enter
Cheers,
Sajan.
The NPV function then does some magic by which all these individual divided by 100 values are combined together to give one single number !