I have a spreadsheet that is used to track whether expenses can be billed back to our clients. When I enter "Billable" in column T, I would like the same of four cells in the same row (G, I, L, O) to be placed in a column named "Billable" in the same row; if I enter "Non-billable", I would like that sum to be placed in a column named "Non-billable" in the same row.
This is what I've come up with so far; if it worked I wouldn't be here
If (Range(ActiveCell.Value) = "Billable") Then
Range("R" & (ActiveCell.Row)) = WorksheetFunction.Sum(Range("G" & (ActiveCell.Row)) + Range("I" & (ActiveCell.Row)) + Range("L" & (ActiveCell.Row)) + Range("I" & (ActiveCell.Row)))
End If
Thanks in advance for your help!
This is what I've come up with so far; if it worked I wouldn't be here
If (Range(ActiveCell.Value) = "Billable") Then
Range("R" & (ActiveCell.Row)) = WorksheetFunction.Sum(Range("G" & (ActiveCell.Row)) + Range("I" & (ActiveCell.Row)) + Range("L" & (ActiveCell.Row)) + Range("I" & (ActiveCell.Row)))
End If
Thanks in advance for your help!