I got this code on the internet.
I want the amounts in column I (from row 9) to change to a minus amount (debit amount) if the value in column F (would be in the same row as the amount) is Debit-Outstanding.
Sub test()
Dim rcel As range
Dim Rng As range
Set Rng = range(ActiveCell, Cells(Rows.Count, _
ActiveCell.Column).End(xlUp))
For Each rcel In Rng
If rcel.Value <> "" And rcel.Value >= 0 Then
rcel.Value = rcel.Value * -1
End If
Next rcel
End Sub
I brought in this part to check the value in column F
And Text.Offset("-3, 0") = "Debit-Outstanding"