What are you trying to do with the formula in C9?
=IFERROR(IF(COUNTIF('e-plan'!$H$2:$H$33,B9)>=2,INDEX('e-plan'!$G$2:$G$33,MATCH(B9,'e-plan'!$H$2:$H$33,0))+INDEX(OFFSET('e-plan'!$G$1,MATCH(B9,'e-plan'!$H$1:$H$33,0),0):'e-plan'!$G$33,MATCH(B9,OFFSET('e-plan'!$H$1,MATCH(B9,'e-plan'!$H$1:$H$33,0),0):'e-plan'!$H$33,0)),IF(COUNTIF('e-plan'!$H$2:$H$33,B9)=1,(INDEX('e-plan'!$G$2:$G$33,MATCH(B9,'e-plan'!$H$2:$H$33,0))),"")),0)
Almost looks like this would do the same thing?
=SUMIF('e-plan'!$H:$H,$B9,'e-plan'!$G:$G)
(for the main part of that formula)
Then for the next 1, either this...
=SUMPRODUCT(--('e-plan'!$H$1:$H$33=$B9)*'e-plan'!$I$1:$J$33)
Bookmarks