google spreadsheet - Using ARRAYFORMULA with COUNTIFS? -
i wondering if there way not have manually drag equation out across whole spreadsheet.
currently, have in cell: =countifs(actorsofmovies, $k2,helpercolumns,l$1)
actorsofmovies , helpercolumns both 291x3
arrays.
right dragging formula b2 s32
in final_chart spreadsheet. wondering if there way using arrayformula
so not have drag it?
here document: https://docs.google.com/spreadsheets/d/1ilfbnxwioh4psz-6yfxpqhgukry8ag5-m3wybofbhzu/edit?usp=sharing
in spreadsheet shared, on new sheet (tab), try formula (making use of helper column created on sheet "question_3":
=query(arrayformula({transpose(split(concatenate(moviestats_med!e2:g&char(10)),char(10))),transpose(split(concatenate(rept(moviestats_med!d2:d&char(9), 3)),char(9)))&{"",""}}), "select col1, count(col2) col1 matches '"&join("|", question_3!f2:f)&"' , col2<>'' group col1 pivot col3")
if want same result, without use of helper column (on sheet question_3), try:
=query(arrayformula({transpose(split(concatenate(moviestats_med!e2:g&char(10)),char(10))),transpose(split(concatenate(rept(moviestats_med!d2:d&char(9), 3)),char(9)))&{"",""}}), "select col1, count(col2) col1 matches '"&join("|", query(query(arrayformula(transpose(split(concatenate(moviestats_med!e2:g&char(10)),char(10)))&{"",""}), "select col1, count(col2) col1<>'' group col1"), "select col1 col2 >4"))&"' , col2<>'' group col1 pivot col3")
hope helps ?
edit: forgot mention: can't have empty cells in actor's ranges (e2:g). instead use "/".
Comments
Post a Comment