For Each help needed to calculate

check RegEx: Global and Wiki