Sum of a text from table when met two criterias

Dilshan Anandan

New Member
Joined
Nov 14, 2018
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I am being trying to get the some of "Blanks, Yes and No" from a table. But it has to match the "A" Column and the "1" Row. (More like Count ifs)


[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Cake[/TD]
[TD]Fruit Salad[/TD]
[TD]Cake[/TD]
[TD]Juice[/TD]
[TD]Fruit Salad[/TD]
[TD]Juice[/TD]
[/TR]
[TR]
[TD]Apple
[/TD]
[TD]Blank[/TD]
[TD]No[/TD]
[TD]No[/TD]
[TD]Yes[/TD]
[TD]Blank[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]No[/TD]
[TD]No[/TD]
[TD]No[/TD]
[TD]Yes[/TD]
[TD]No[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Yes[/TD]
[TD]Blank[/TD]
[TD]No[/TD]
[TD]Yes[/TD]
[TD]Blank[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Yes[/TD]
[TD]No[/TD]
[TD]Blank[/TD]
[TD]No[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Bank[/TD]
[TD]No[/TD]
[TD]Yes[/TD]
[TD]No[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Grapes[/TD]
[TD]No[/TD]
[TD]Yes[/TD]
[TD]Blank[/TD]
[TD]Yes[/TD]
[TD]No[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]Grapes[/TD]
[TD]Yes[/TD]
[TD]Blank[/TD]
[TD]Blank[/TD]
[TD]No[/TD]
[TD]No[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]Grapes[/TD]
[TD]Yes[/TD]
[TD]No[/TD]
[TD]Blank[/TD]
[TD]No[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[/TR]
</tbody>[/TABLE]

The order of the columns and the rows can be changed.
Apple, Orange and Grapes can be in multiple rows, Cake, Fruit Salad and Juice can be in multiple columns as well.

I want to get how many "Yes" are there when Apple and Cakes are met. And How many "Blanks" when Fruit Salad and Orange are met.
I have put down all possible outcome in a table.

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Juice[/TD]
[TD]Juice[/TD]
[TD]Juice[/TD]
[TD]Fruit Salad[/TD]
[TD]Fruit Salad[/TD]
[TD]Fruit Salad[/TD]
[TD]Cake[/TD]
[TD]Cake[/TD]
[TD]Cake[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Blank[/TD]
[TD]Yes[/TD]
[TD]No[/TD]
[TD]Blank[/TD]
[TD]Yes[/TD]
[TD]No[/TD]
[TD]Blank[/TD]
[TD]Yes[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]Apple
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Grapes[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

If I can fill down the Table two with a formula, Would be very helpful,
I tried using Index,Match,Countifs together. No Luck:confused:
And the Data used is and example.


Thanks in Advance for the help.

Cheers
Dilshan
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
try this


Book1
ABCDEFGHIJ
1NameCakeFruit SaladCakeJuiceFruit SaladJuice
2AppleNoNoYesNo
3AppleNoNoNoYesNoNo
4AppleYesNoYesNo
5OrangeYesNoNoYesYes
6OrangeBankNoYesNoYesYes
7GrapesNoYesYesNoNo
8GrapesYesNoNoyes
9GrapesYesNoNoYesYes
10
11
12
13JuiceJuiceJuiceFruit SaladFruit SaladFruit SaladCakeCakeCake
14YesNoYesNoYesNo
15Apple033303114
16Orange022022120
17Grapes033123321
2
Cell Formulas
RangeFormula
B15=SUM(SUMPRODUCT((B$13=$B$1:$G$1)*($A15=$A$2:$A$9)*($B$2:$G$9=B$14)))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,815
Messages
6,181,135
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top