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)


NameCakeFruit SaladCakeJuiceFruit SaladJuice
Apple
BlankNoNoYesBlankNo
AppleNoNoNoYesNoNo
AppleYesBlankNoYesBlankNo
OrangeYesNoBlankNoYesYes
OrangeBankNoYesNoYesYes
GrapesNoYesBlankYesNoNo
GrapesYesBlankBlankNoNoyes
GrapesYesNoBlankNoYesYes

<tbody>
</tbody>

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.

JuiceJuiceJuiceFruit SaladFruit SaladFruit SaladCakeCakeCake
BlankYesNoBlankYesNoBlankYesNo
Apple
Orange
Grapes

<tbody>
</tbody>

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

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
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,214,825
Messages
6,121,787
Members
449,049
Latest member
greyangel23

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