简体   繁体   中英

How can a cell have 2 formula conditions in Google Sheets/Excel?

I'm trying to filter "confirmed" users.

I have a column ( DATA!A ) where all user names are found, those who confirmed their status are colored in green.

There's another column ( DATA!B ) where the specific status of the users can be found.

So I have 2 separated functions, one counts confirmed users: COUNTA(valuesByColor("#00ff00", "#000000", Data!A3:A260)

And the other one counts specific status, for example: COUNTIF(Data!B3:B200, "TOP")

Now what I want is a formula that for example counts all "TOP" cells in ( B ) that are confirmed, which means count only if their respective ( A ) is green.

Is there any way to do this?

in Google Sheets, you can't count by background color without addon or script and even with those, you won't be able to combine those two formulae mostly because the majority of scripts just counts it as total, not per row. the easiest solution would be to give up on counting background color and have a helper column. then you could just use FILTER or COUNTIFS .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM