Hi!
I have a table where I have 4 columns (3 criteria and 1 value to sum if the criteria are meet), but I need that the value only sums at the end of the match (so it will only be shown ones that are "true" and empty when false)
[TABLE="class: grid, width: 50"]
<tbody>[TR]
[TD]criteria 1[/TD]
[TD]criteria 2[/TD]
[TD]criteria 3[/TD]
[TD]values to sum[/TD]
[TD]wishing for:[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Alpha[/TD]
[TD]Blue[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Alpha[/TD]
[TD]Blue[/TD]
[TD]3[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Beta[/TD]
[TD]Blue[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Beta[/TD]
[TD]Blue[/TD]
[TD]9[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Beta[/TD]
[TD]Green[/TD]
[TD]8[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Delta[/TD]
[TD]Green[/TD]
[TD]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Delta[/TD]
[TD]Green[/TD]
[TD]6[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Alpha[/TD]
[TD]Yellow[/TD]
[TD]10[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Alpha[/TD]
[TD]Blue[/TD]
[TD]11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Alpha[/TD]
[TD]Blue[/TD]
[TD]1[/TD]
[TD]12[/TD]
[/TR]
</tbody>[/TABLE]
I have tried this (but is sums up in every cell, and I need it to be empty when it repeats and only show the value ONCE):
=IF(AND(COUNTIF(B$2:B390;B218)=COUNTIF(B:B;B218);COUNTIF(T$2:T390;T218)=COUNTIF(T$2:T390;T218);COUNTIF(U$2:U390;U218)=COUNTIF(U$2:U390;U218));SUMIFS(V:V;B:B;B218;T:T;T218;U:U;U218);" ")
Can somebody help? (I need a formula, not pivot table)
Thanks!
I have a table where I have 4 columns (3 criteria and 1 value to sum if the criteria are meet), but I need that the value only sums at the end of the match (so it will only be shown ones that are "true" and empty when false)
[TABLE="class: grid, width: 50"]
<tbody>[TR]
[TD]criteria 1[/TD]
[TD]criteria 2[/TD]
[TD]criteria 3[/TD]
[TD]values to sum[/TD]
[TD]wishing for:[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Alpha[/TD]
[TD]Blue[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Alpha[/TD]
[TD]Blue[/TD]
[TD]3[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Beta[/TD]
[TD]Blue[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Beta[/TD]
[TD]Blue[/TD]
[TD]9[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Beta[/TD]
[TD]Green[/TD]
[TD]8[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Delta[/TD]
[TD]Green[/TD]
[TD]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Delta[/TD]
[TD]Green[/TD]
[TD]6[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Alpha[/TD]
[TD]Yellow[/TD]
[TD]10[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Alpha[/TD]
[TD]Blue[/TD]
[TD]11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Alpha[/TD]
[TD]Blue[/TD]
[TD]1[/TD]
[TD]12[/TD]
[/TR]
</tbody>[/TABLE]
I have tried this (but is sums up in every cell, and I need it to be empty when it repeats and only show the value ONCE):
=IF(AND(COUNTIF(B$2:B390;B218)=COUNTIF(B:B;B218);COUNTIF(T$2:T390;T218)=COUNTIF(T$2:T390;T218);COUNTIF(U$2:U390;U218)=COUNTIF(U$2:U390;U218));SUMIFS(V:V;B:B;B218;T:T;T218;U:U;U218);" ")
Can somebody help? (I need a formula, not pivot table)
Thanks!