Forum Discussion
littlevillage
Jan 03, 2023Iron Contributor
Combinating of sumifs and countifs.
Hi,
I Countifs with criterias "BCT", "LT", "232A01" (1).
Sumifs of sales for that criterias( 2).
The expected result:= (2)/(1)
Hope for your help
Thank you.
It looks like we need to check Position in the current row to receive expected result (row at the bottom)
=IF( OR([@Position] = {"BCT", "LT"}), SUM(SUMIFS([Sales], [ID], [@ID], [Position], {"BCT", "LT"})) / SUM(COUNTIFS([ID], [@ID], [Position], {"BCT", "LT"})), 0 )
7 Replies
Sort By
- Detlef_LewinSilver Contributor
=SUM(SUMIFS([Sales],[ID],[@ID],[Position],{"BCT","LT"}))/SUM(COUNTIFS([ID],[@ID],[Position],{"BCT","LT"}))
- littlevillageIron Contributor
It looks like we need to check Position in the current row to receive expected result (row at the bottom)
=IF( OR([@Position] = {"BCT", "LT"}), SUM(SUMIFS([Sales], [ID], [@ID], [Position], {"BCT", "LT"})) / SUM(COUNTIFS([ID], [@ID], [Position], {"BCT", "LT"})), 0 )
- littlevillageIron Contributor
Thank you very much. It's worked