=SUM(INDEX(AB:AB,ROW()-1),INDEX(AA,ROW()))
I think will do what you need.