Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Adjusting Filter with Regex

$
0
0

Original Problem:Need to count Multiple Criteria from one column in addition to a single piece of criteria from 2 other columns in one tab into a count on a separate tab of the same workbook in google sheets. I am using this to track progress in a project.

Suggested Solution (which worked! thanks @ErikTyler):

=COUNTA(FILTER(CCSS, CCSS="Number & Operations in Base Ten", REGEXMATCH(Grade&"","K|1|2"), REGEXMATCH(GoalStatus,"Assigned to Writer|Goal Ready for Quality Review|Goal Quality Review Complete|Goal Ready for Copy Edit|Copy Edit Complete")))

Current Challenge:

I tried to adjust the above REGEXMATCH formula by just changing it slightly and it did work successfully in 2 cells. But in another cell, I keep returning a count of 1, when I know it should be a count of 16. Any thoughts on what I am doing wrong?

In both of the below instances, I changed the Condition of Filter from CCSS to Phase, and changed the grade levels as well.

Adjustment that worked correctly:

=COUNTA(FILTER(Phase, Phase="Phase 2", REGEXMATCH(Grade&"","6|7|8"), REGEXMATCH(GoalStatus,"Assigned to Writer|Goal Ready for Quality Review|Goal Quality Review Complete|Goal Ready for Copy Edit|Copy Edit Complete")))

Adjustment that failed:

=COUNTA(FILTER(Phase, Phase="Phase 2", REGEXMATCH(Grade&"","K|1|2"), REGEXMATCH(GoalStatus,"Assigned to Writer|Goal Ready for Quality Review|Goal Quality Review Complete|Goal Ready for Copy Edit|Copy Edit Complete")))

Any thoughts would be greatly appreciated!


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>