Trying to update a formula field of table row when a reference field is updated

Thanks Rob!!! I am able to update formula field on table row, but when I click on save button, its doesn’t update the formula field, on refresh of page it shows the old value. This issue is coming for formula field only, when i tried the same thing for some editable text field, this issue is not coming. Please suggest.