How about refering to pivot table? So: * input data, * refresh pivot table and * form is automatically filled with appropriate values.
See colored cells - yeloow first formula, then 2 orange (very similar) then green - I did for first 3 sizes 3 next are again similar
if you are fine with zeros in a table (could be swithed off either in workbook options or with custom formatting like: "0,0,,@") could be simpler - for instance F10:
and final blue one (could be similar to green ones, but just to refresh my own knowlegde, I played here with not-so-frequently-used GETPIVOTDATA and proposed):
Bookmarks