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]
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
did you read about syntax of COUNTIFS function?
your syntax from post#1 is wrong

Important: Each additional range must have the same number of rows and columns as the criteria_range1 argument. The ranges do not have to be adjacent to each other.

and read Remarks there.
 
Last edited:
Upvote 0
hi sandy666
i was not aware your answer was a hyperkink
but i cannot get this to wrk
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]'=COUNTIF(full_extract!D:D,full_extract!G:G"1",full_extract!W3)
count d:d where're g=1 and w 3 = (preset data )

[/FONT]
 
Upvote 0
SYNTAX: =COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2]…)

=COUNTIFS(full_extract!D:D,full_extract!G:G"1",full_extract!W3) (error: no comma)

range1: full_extract!D:D
criteria1: ?
range2: full_extract!G:G but not full_extract!G:G"1"
criteria2: "1"
what is it?: full_extract!W3

don't forget about commas

eg. =COUNTIFS(B5:D5,"=Yes",B3:D3,"=Yes")

read carefully whole description about COUNTIFS (and examples there)
 
Last edited:
Upvote 0
Something like this?

=COUNTIFS(full_extract!D:D,full_extract!G:G,"1",full_extract!W:W,3)

Also note that you have the 1 in quotes "1", indicating that it is a text field, and the 3 without them, indicating a numeric field. Make sure you have those correct to match your data.


Edit: upon rereading your question, I'm unsure as to what you actually are asking. Are you looking to search column W for a 3, or are you looking to see if W3 contains a specific value?
 
Last edited:
Upvote 0
would be better if you post a link to shared (use GoogleDrive, OneDrive or any similar) excel file with representative source data (desensitized) and expected result
detailed description what you want to do is very welcome
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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