如何根据单元格内容在特定行中断转置?

How to break transpose at specific rows depending on the cell content?

所以我正在从事这个 excel/spreadsheet 项目,我必须实现:

FROM:(假设 Fruit 在单元格 A1 中)

收件人:(假设 Fruit Summary 在单元格 I1 中)

=QUERY (A1:G11,"select A, Count (A),Sum(G),sum(D) group by A")