Hi Venkata,
Nice!
You can shorten it slightly as follows:
=MID(A1,LEN(A1)-SUM(LEN(A1)-LEN(SUBSTITUTE(A1,{1,2,3,4,5,6,7,8,9},"")))+1,LEN(A1))
Give some thought to how you would extract numbers from the following strings also:
1234ABC --> result should be 1234
ABC1234DEF --> result should be 1234
AB12CD34EFG --> result should be 1234
-Sajan.
Sub myTest()
   Dim myCel As Range
   With CreateObject("VBScript.Regexp")
         .Global = True
         .Pattern = "\D+"
  For Each myCel In Selection
           myCel.Value = .Replace(myCel.Value, "")
  Next
  End With
End SubTry this in C4 with revised in highlighted red and Ctrl+Shift+Enter copied down,Sajan,
I am using the formula below:
=NPV(-0.9,,IFERROR(MID(B11,1+LEN(B11)-ROW(OFFSET(B$4,,,LEN(B11))),1)%,""))&""
and it works fine (i even understand portions of it) until I reach cell b25...then it suddenly starts cutting off the last 3 digits of the return number. Can anyone help me understand why it is failing at this cell/row
Attaching the file:
Can someone tell me why this works if I copy both the cell and the cell it is referencing but if I try to manually input the formula in a different worksheet, it doesn't work?

Hi and Welcome to the forum
It is an {array} formula, you need to press Ctrl+Shift+Enter (not just enter) upon edit.
Regards,

