Multiple COUNTIF(S)

mingandmong

Active Member
Joined
Oct 15, 2014
Messages
339
Hi im using excel 2016
i am having problems with my formula

[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]'=COUNTIFS(full_extract!E:E,full_extract!G:G"1",A1)

count value from sheet column E:E, when column G=1 against the data in A1.. i get a syntax error

thankyou
[/FONT]
 
or you're trying quasi-nested COUNTIFS?
maybe use SUMPRODUCT() instead?
anyway example file with detailed description is a good option
 
Last edited:
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
COUNTIFS () does not return a value from a cell, but the number of times a value occurs within the criteria range that matches the criteria.

SUMPRODUCT() will return the sum of values from the defined range according to the criteria. In the extreme case, it will return the value of a single cell. All non-numeric values are treated as 0.

For the above cases, the same size range applies.

You can use the INDEX / MATCH formula to get values from a defined range that matches a defined criterion.

Example:

A
B
C
D
E
F
G
H
1
2​
1​
5​
1​
=COUNTIFS(A1:A10,--(C1:C10=1))
2
20​
40​
10​
8​
=SUMPRODUCT(--($A$1:$A$10=--($C$1:$C$10=1)),$E$1:$E$10)
3
22​
41​
11​
4
24​
42​
12​
5
26​
43​
13​
6
1​
1​
8​
7
30​
45​
15​
8
32​
46​
16​
9
34​
47​
17​
10
2​
1​
7​
11
12
13
1​
1​
5​
3​
=COUNTIFS(A13:A22,--(C13:C22=1))
14
20​
40​
10​
20​
=SUMPRODUCT(--($A$13:$A$22=--($C$13:$C$22=1)),$E$13:$E$22)
15
22​
41​
11​
16
24​
42​
12​
17
26​
43​
13​
18
1​
1​
8​
19
30​
45​
15​
20
32​
46​
16​
21
34​
47​
17​
22
1​
1​
7​

in cases above formulas are overcombined :LOL:
 
Upvote 0
Hi sandy666
Thankyou for your help, as yousaid i was missing a crieria, i have now moved on wth my SUMIFS
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=SUMIFS(sheet1!$C:$C,sheet1!$G:$G,"3",sheet1!$E:$E,Sheet2!$A3)[/FONT]
 
Upvote 0
Hi sandy666

i have managed to use [FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=COUNTIFS(sheet1!$F:$F,"1",sheet1!$D:$D,Sheet2!$A3) the sheet name and columns have changed but it works..thank you very much[/FONT]
 
Upvote 0

Forum statistics

Threads
1,215,721
Messages
6,126,456
Members
449,314
Latest member
MrSabo83

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