Forum Discussion
AmGelain
Aug 18, 2023Copper Contributor
Sum by group
Hello, I would like to group the unit values of the products regardless of the order of the document: When changing the price order, calculate this way, as the formula is as follows:...
- Aug 21, 2023
A "traditional" formula for F5 could be
=IF(COUNTIFS(B$4:B5,B5,$C$4:C5,C5)=1,SUMIFS(E$4:E$1000,B$4:B$1000,B5,C$4:C$1000,C5),"")
Fill down. See the attached workbook, using PeterBartholomew1's example.
AmGelain
Aug 21, 2023Copper Contributor
peter Bartolomeu I believe that the problem is in =(IFC3=C2;""; which needs to consider the document and the supplier (even if out of order) to then apply the second part of the formula SUMIF(C:C;C3;E:E) ), to then maintain the structure of the first image of the question.
HansVogelaar
Aug 21, 2023MVP
A "traditional" formula for F5 could be
=IF(COUNTIFS(B$4:B5,B5,$C$4:C5,C5)=1,SUMIFS(E$4:E$1000,B$4:B$1000,B5,C$4:C$1000,C5),"")
Fill down. See the attached workbook, using PeterBartholomew1's example.
- AmGelainAug 22, 2023Copper ContributorThank you very much for helping me. I was having trouble with this formula.
- PeterBartholomew1Aug 21, 2023Silver Contributor
I think that will match the OP's expectations somewhat better!