countifs referencing another sheet
Hi.
I want to insert a formula in one sheet that references a column in another sheet where is counts if the symbol is Yellow, green or red. I can get it to count for yellow but unsure how to add green and red.
Thanks,
Best Answer
-
@Edit Kalb In that case you have two options. You can count all three together or you can count everything that is not blue.
All three together:
=COUNTIFS({Sheet Reference}, OR(@cell = "Red", @cell = "Yellow", @cell = "Green"))
Everything except for blue:
=COUNTIFS({Sheet Reference}, @cell <> "Blue")
Answers
-
Hi,
I think you're looking for a COUNTIFS formula such as: =COUNTIFS({Sheet Reference}, "Yellow", {Sheet Reference}, "Green", {Sheet Reference}, "Red"). Hopefully that helps!
Cheers,
Brad
-
Thank you. Here is my formula:
=COUNTIFS({noww}, "Yellow", {noww}, "Green", {noww}, "Red")
It returns a value of zero which isn't correct. (This is an improvement. I was getting imparseable before. :) )
Thanks!
-
Tat is because COUNTIFS has "AND" built in to the back end. Your formula is essentially saying to count where a cell is equal to each of the three colors all at the same time which is not possible.
Are you trying to count all three of those colors and exclude certain data, or are you wanting individual counts for each color?
-
Ahhh, ok.
So I want to count all three together. I have a blue color also that I want to be excluded from the count.
-
@Edit Kalb In that case you have two options. You can count all three together or you can count everything that is not blue.
All three together:
=COUNTIFS({Sheet Reference}, OR(@cell = "Red", @cell = "Yellow", @cell = "Green"))
Everything except for blue:
=COUNTIFS({Sheet Reference}, @cell <> "Blue")
-
Thank you! That worked!❤️
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!