google spreadsheet - Extract matching data from varying number of row -
i trying build graphic indicators (potentially) large set of data using google-spreadsheet.
so far, i've used pivot table extract information raw data, , want build intermediate tables calculate different values need indicators.
so far, pivot table looks follow :
status1 | status2 | status3 | status4 ------------------------------------- country1 | domain1 | 1 | 2 | 1 | domain2 | | 2 | | ---------------------------------------------------------- country2 | domain1 | | | | 1 ---------------------------------------------------------- country3 | domain2 | | 1 | | 3 domain3 | | | 1 |
and generate following table (there fixed number of status & domain) :
status1 | status2 | status3 | status4 | domain1 | domain2 | domain3 ------------------------------------------------------------------- country1 | 1 | 4 | 1 | 0 | 4 | 2 | 0 ---------------------------------------------------------------------------- country2 | 0 | 0 | 0 | 1 | 1 | 0 | 0 ---------------------------------------------------------------------------- country3 | 0 | 1 | 1 | 3 | 0 | 4 | 1
as number of country , number of rows present in pivot table each country vary, unsure how generate table.
so far able generate 1st column using following formula : unique(filter('myrange',not(isblank('myrange'))))
, don't know how proceed afterward. there way dynamically extract such data ? should change pivot table ? maybe build pivot table using 1st pivot table ?
i think possible using formula:
={query(a2:d,"select a,count(d) <> '' group pivot c"),query(a2:d,"select count(d) <> ''group pivot b")}
here example sheet (the formula in cell f1): https://goo.gl/t9xi1v
Comments
Post a Comment