You need a worksheet change event handler in the sheet where you are making changes:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim lLR As Long
Dim rInterest As Range, cell As Range
lLR = Range("R" & Rows.Count).End(xlUp).Row
lLR = IIf(lLR < 11, 11, lLR) ' minimum range R11
Set rInterest = Range("R11:R" & lLR) ' minimum range R11
' ignore any changes outside the "range of interest"
If Intersect(Target, rInterest) Is Nothing Then Exit Sub
' for every cell in the range, add the formula
Application.EnableEvents = False
For Each cell In Target
Range("U" & cell.Row).Formula = _
"=IFERROR(T" & cell.Row & "/S" & cell.Row & ","""")"
Next 'cell
Application.EnableEvents = True
End Sub
Regards, TMS
Bookmarks