Re: Weighted Average with uneven splits
this is one approach
put this formula in cell D1
note this is an array formula and needs to be conformed by Ctrl+Shift+Enter
after copying into cell D1 and conforming as above you can copy it down to the other cells
=INDEX($B$5:$B$8,SUM(IF(ISNUMBER($B$15:B15)=TRUE,1,0)))*C15/IFERROR(SUM(($C$15:$C$26)*IF(ROW($B$15:$B$26)>=LARGE(ROW($B$15:$B$26)*(ISNUMBER($B$15:$B$26)=TRUE),SUM(IF(ISNUMBER($B$15:$B$26)=TRUE,1,0))-(SUM(IF(ISNUMBER($B$15:B15)=TRUE,1,0))-1)),1,0)*IF(ROW($B$15:$B$26)<LARGE(ROW($B$15:$B$26)*(ISNUMBER($B$15:$B$26)=TRUE),SUM(IF(ISNUMBER($B$15:$B$26)=TRUE,1,0))-SUM(IF(ISNUMBER($B$15:B15)=TRUE,1,0))),1,0)),SUM(($C$15:$C$26)*IF(ROW($B$15:$B$26)>=LARGE(ROW($B$15:$B$26)*(ISNUMBER($B$15:$B$26)=TRUE),1),1,0)))