Hi Adam,
You'll need to change the scenario 1 code as follows. The reason is that the .Rows.Count instruction finds the very last row on the sheet and the .end(xlup) then only finds the next available row in scenario 2 since you've stacked this underneath the scenario 1. Therefore you need to start in row 13 for scenario 1.
Sub AddCost()
Dim r As Range
Set r = Sheet2.Range("YearsScenario1").Find(Range("Year1").Value, LookIn:=xlValues)
r.Cells(10, 1) = Range("Cost1")
With Sheet1
.Range("E13").End(xlUp).Cells(2, 1) = Range("Cost1")
.Range("F13").End(xlUp).Cells(2, 1) = Range("Year1")
End With
End Sub
Regards
Bookmarks