COUNTIFS function on google sheets

SLVoyou

New Member
Joined
Oct 6, 2015
Messages
12
=COUNTIFS(G3:G57="D60",A3:A57="★")

This is currently what I have, and for some reason it just always equals 1.
I know the formula works a little differently in google sheets than in drive, but if someone could please give a hand that would be great.

Also; that star is actually a star -- not "*" for containing any text. This might be the issue I guess since it is an alt code.

Thank you!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Not having worked with google sheets, but the syntax is quite different from ordinary excel. Sure that that is right?

I'd expect something more like:

=COUNTIFS(G3:G57,"D60",A3:A57,"★")
 
Upvote 0
Oops you're right.
When I changed it to that, they went to 0 with no errors -- but when I try testing it, the 0 never changes.
 
Upvote 0
I'm not familiar with that star-thingy you're using. Could you substitute the star with a more normal character and test the formula again.
 
Upvote 0
Yeah I'm testing with regular letters and it stilll isn't working.
=COUNTIFS($G$3:$G$57,"D60",$A$3:$A$57,"FB")

 
Upvote 0
=COUNTIF(A3:A57,"FB") in one cell yields 1
=COUNTIF(G3:G57,D60) in another cell yields 1
=COUNTIFS($G$3:$G$57,"D60",$A$3:$A$57,"FB")yields 0


 
Upvote 0
I just realized now that there's no way of specifying what I'm actually wanting.

I want it to count rows where the A and G column both fit the criteria.
 
Upvote 0
I just realized now that there's no way of specifying what I'm actually wanting.

I want it to count rows where the A and G column both fit the criteria.
Ok, but then the formula would make sense, unless there is not a single row which holds both 'FB' in the A range as "D60" in the G range?

I just noticed that in your test, you actually typed an error. You forgot the quotation marks on the second countif:

=COUNTIF(A3:A57,"FB") in one cell yields 1
=COUNTIF(G3:G57,D60) in another cell yields 1
=COUNTIFS($G$3:$G$57,"D60",$A$3:$A$57,"FB")yields 0
As a result, your countif matched range G3:G57 against the value in D60, not against 'D60'.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,196
Members
449,072
Latest member
DW Draft

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