How to tally counts in an table as below across 2 columns, please. Simplified worksheet below.
For each 'payor', I want to be able to count the number of each 'order type'.
Something to the effect of: COUNTIF (payor="GR" AND order_type="P")
There are only 2 payor values and 2 order type values, so I'm thinking I would create 4 formulas which specify the 4 possible combos.
Any help would be appreciated. Thank you!
[TABLE="width: 200, align: left"]
<tbody>[TR]
[TD]Order_type[/TD]
[TD]Payor[/TD]
[/TR]
[TR]
[TD]p[/TD]
[TD]GR[/TD]
[/TR]
[TR]
[TD]p[/TD]
[TD]GR[/TD]
[/TR]
[TR]
[TD]p[/TD]
[TD]GR[/TD]
[/TR]
[TR]
[TD]s[/TD]
[TD]GR[/TD]
[/TR]
[TR]
[TD]s[/TD]
[TD]GR[/TD]
[/TR]
[TR]
[TD]p[/TD]
[TD]JK[/TD]
[/TR]
[TR]
[TD]p[/TD]
[TD]JK[/TD]
[/TR]
[TR]
[TD]s[/TD]
[TD]JK[/TD]
[/TR]
[TR]
[TD]s[/TD]
[TD]JK[/TD]
[/TR]
[TR]
[TD]s[/TD]
[TD]JK[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
For each 'payor', I want to be able to count the number of each 'order type'.
Something to the effect of: COUNTIF (payor="GR" AND order_type="P")
There are only 2 payor values and 2 order type values, so I'm thinking I would create 4 formulas which specify the 4 possible combos.
Any help would be appreciated. Thank you!
[TABLE="width: 200, align: left"]
<tbody>[TR]
[TD]Order_type[/TD]
[TD]Payor[/TD]
[/TR]
[TR]
[TD]p[/TD]
[TD]GR[/TD]
[/TR]
[TR]
[TD]p[/TD]
[TD]GR[/TD]
[/TR]
[TR]
[TD]p[/TD]
[TD]GR[/TD]
[/TR]
[TR]
[TD]s[/TD]
[TD]GR[/TD]
[/TR]
[TR]
[TD]s[/TD]
[TD]GR[/TD]
[/TR]
[TR]
[TD]p[/TD]
[TD]JK[/TD]
[/TR]
[TR]
[TD]p[/TD]
[TD]JK[/TD]
[/TR]
[TR]
[TD]s[/TD]
[TD]JK[/TD]
[/TR]
[TR]
[TD]s[/TD]
[TD]JK[/TD]
[/TR]
[TR]
[TD]s[/TD]
[TD]JK[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Last edited: