View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Claus Busch Claus Busch is offline
external usenet poster
 
Posts: 3,872
Default Complex Sumproduct formula

Hi Ray,

Am Mon, 1 Feb 2021 21:08:57 -0800 (PST) schrieb Ray Smart:

I am trying to figure out how to do the following:

Sheet1 - Breakdown of item by type
Col-A,B,C,D,E
Row
1-Item, Total, Fee, Other, Allowables
2-1, 45293, 21745,20610,2938
3-2, 45612, 30287, 12366, 2959
4-3,94517, 68329, 119732, 6455

Sheet2 - Breakdown of item by month
Col-A,B,C,D,E
Row
1-Item, Nov, Dec, Jan, Feb, Mar
2-1, 8569, 36724, 0, 0, 0
3-2, 0, 12583, 33030, 0, 0
4-3,2508, 38869, 38869, 35107, 2508


try:
=SUMPRODUCT((Sheet2!$A$2:$A$10=A2)*Sheet2!$B$2:$F$ 10)
or
=SUM(INDEX(Sheet2!$B$2:$F$10,MATCH(A2,Sheet2!$A$2: $A$10,0),))


Regards
Claus B.
--
Windows10
Microsoft 365 for business