Would you give an example for such a count?
=SUM(IF($A$2:$A$10=H1;IF($B$2:$F$10=I1;1)))
which you must confirm with control+shift+enter, not just enter.
Thank you very much! Array formula does it much easier than my longer solution. I'm not very familiar with array formula's but maybe I'll figure it out with much appriciated help like yours!
To clear longer solution with COUNTIFS, here is how it goes.
[TABLE="width: 516"]
<TBODY>[TR]
[TD][/TD]
[TD]
A</SPAN>
[/TD]
[TD]
B</SPAN>
[/TD]
[TD]
C</SPAN>
[/TD]
[TD]
D</SPAN>
[/TD]
[TD]
E</SPAN>
[/TD]
[TD]
F</SPAN>
[/TD]
[/TR]
[TR]
[TD]
1</SPAN>
[/TD]
[TD]
Cancer</SPAN>
[/TD]
[TD]
Metastasis1</SPAN>
[/TD]
[TD]
Metastasis2</SPAN>
[/TD]
[TD]
Metastasis3</SPAN>
[/TD]
[TD]
Metastasis4</SPAN>
[/TD]
[TD]
Metastasis5</SPAN>
[/TD]
[/TR]
[TR]
[TD]
2</SPAN>
[/TD]
[TD]
Breast</SPAN>
[/TD]
[TD="align: right"]1</SPAN>
[/TD]
[TD="align: right"]2</SPAN>
[/TD]
[TD="align: right"]3</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
3</SPAN>
[/TD]
[TD]
Prostata</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
4</SPAN>
[/TD]
[TD]
Lung</SPAN>
[/TD]
[TD="align: right"]1</SPAN>
[/TD]
[TD="align: right"]5</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
5</SPAN>
[/TD]
[TD]
Liver</SPAN>
[/TD]
[TD="align: right"]4</SPAN>
[/TD]
[TD="align: right"]1</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
6</SPAN>
[/TD]
[TD]
Brain</SPAN>
[/TD]
[TD="align: right"]3</SPAN>
[/TD]
[TD="align: right"]2</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
7</SPAN>
[/TD]
[TD]
Breast</SPAN>
[/TD]
[TD="align: right"]2</SPAN>
[/TD]
[TD="align: right"]1</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
8</SPAN>
[/TD]
[TD]
Prostata</SPAN>
[/TD]
[TD="align: right"]4</SPAN>
[/TD]
[TD="align: right"]5</SPAN>
[/TD]
[TD="align: right"]3</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
9</SPAN>
[/TD]
[TD]
Lung</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
10</SPAN>
[/TD]
[TD]
Liver</SPAN>
[/TD]
[TD="align: right"]4</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
11</SPAN>
[/TD]
[TD]
Brain</SPAN>
[/TD]
[TD="align: right"]3</SPAN>
[/TD]
[TD="align: right"]2</SPAN>
[/TD]
[TD="align: right"]1</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
12</SPAN>
[/TD]
[TD]
Breast</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
13</SPAN>
[/TD]
[TD]
Prostata</SPAN>
[/TD]
[TD="align: right"]5</SPAN>
[/TD]
[TD="align: right"]1</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
14</SPAN>
[/TD]
[TD]
Lung</SPAN>
[/TD]
[TD="align: right"]2</SPAN>
[/TD]
[TD="align: right"]3</SPAN>
[/TD]
[TD="align: right"]5</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
15</SPAN>
[/TD]
[TD]
Liver</SPAN>
[/TD]
[TD="align: right"]2</SPAN>
[/TD]
[TD="align: right"]3</SPAN>
[/TD]
[TD="align: right"]4</SPAN>
[/TD]
[TD="align: right"]5</SPAN>
[/TD]
[TD="align: right"]1</SPAN>
[/TD]
[/TR]
[TR]
[TD]
16</SPAN>
[/TD]
[TD]
Brain</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
17</SPAN>
[/TD]
[TD]
Breast</SPAN>
[/TD]
[TD="align: right"]5</SPAN>
[/TD]
[TD="align: right"]3</SPAN>
[/TD]
[TD="align: right"]2</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
18</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
19</SPAN>
[/TD]
[TD]
Cancer</SPAN>
[/TD]
[TD]
1</SPAN>
[/TD]
[TD]
2</SPAN>
[/TD]
[TD]
3</SPAN>
[/TD]
[TD]
4</SPAN>
[/TD]
[TD]
5</SPAN>
[/TD]
[/TR]
[TR]
[TD]
20</SPAN>
[/TD]
[TD]
Breast</SPAN>
[/TD]
[TD]2</SPAN>
[/TD]
[TD]3</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
21</SPAN>
[/TD]
[TD]
Prostata</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
22</SPAN>
[/TD]
[TD]
Lung</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
23</SPAN>
[/TD]
[TD]
Liver</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
24</SPAN>
[/TD]
[TD]
Brain</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
=SUM(COUNTIFS(B2:B17;B19;A2:A17;A20);COUNTIFS(C2:C17;B19;A2:A17;A20);COUNTIFS(D2:D17;B19;A2:A17;A20);COUNTIFS(E2:E17;B19;A2:A17;A20);COUNTIFS(F2:F17;B19;A2:A17;A20))
--> result: 2
Above formula counts how many conditions: breast & 1 happens in area defined. But in this formula I have to individually count all the columns that might contain number what I'm counting. In actual data there is 8 columns and your formula does it easier. Thanks!
Do you think it is not possible to do with COUNTIFS easier way that I did? I'm not sure if array formula is the best solution because it might use more resources than possible COUNTIFS solution in case it is a possibility.