Your layout in Columns A:D isn't good as far as Excel is concerned, better to have the months in seperate columns then each catagory can have it's own row.
However in I2
Drag Across then Down.![]()
=INDEX(INDEX($D:$D, MATCH(I$1,$A:$A,0),1):INDEX($D:$D, MATCH(I$1,$A:$A,0)+COUNTA($H:$H)-1,1),ROW($A1),1)
Bookmarks