0

I have a column in google spreadsheet name domains which contains the array of values like ['non work', 'work', 'work', 'non work'], is there a way to find the count within that column which equals to work

Below is the screenshot of what I want to achieve. enter image description here In Work Domain Count column values should be respectively 3, 2 and 0

1
  • please give a sample sheet or a screenshot. Commented Feb 8, 2018 at 10:07

1 Answer 1

2
=SUMPRODUCT(REGEXMATCH(TRIM(SPLIT(REGEXREPLACE(A1,"[\[\]\']",""),",")),"^work$")) 
  • REPLACE the non word characters like ',[ with null
  • SPLIT by the comma ,
  • Check whether each of the words MATCHes only work
  • SUM up the TRUEs of such MATCH.
Sign up to request clarification or add additional context in comments.

1 Comment

Value is in single cell not in different cells

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.