I fixed the error i was having by always having the first cell containing some information (either a number or "-"). I also tried to use index per your suggestion but it doesnt seem to be producing any results.