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

Google sheets - Pivot table vs Query

$
0
0

I have a two-column table with the first column being "task description" and second column being "assignee". This is something I'm unable to influence.

I'd like to be able to create a pivot table in a different sheet with a unique column for each assignee, containing rows of task descriptions assigned to that person.

What I'd also like to do is having each cell in this table to actually be a =HYPERLINK(...) to the corresponding task description cell in the original sheet. This is something, as I understand, that is impossible with built-in pivot tables. I've tried constructing a pivot table with those specifications and succeeded, but the links were not clickable.

Is it possible to accomplish this via =QUERY(...)?

I've fiddled around with it with mixed success as I've been unable to automatically generate columns for the table. What I have so far is query that generates headers for the table, and a query that generates rows for that header, but I have to manually copy and paste the second query - it's not automatically applied to ALL columns.

This is an example of what I'd like to do. This is the closest I've gotten to the solution but still not quite right: https://docs.google.com/spreadsheets/d/1Md_niY1nrOPtOOv3TseLl-ftRUH5Vpr6OzPizM56-GE/edit?usp=sharing

Some screenshots of the example:

  • "Tasks" Sheet

Tasks sheet

  • Sheet with =QUERY

Sheet with QUERY

  • Sheet with pivot table

hyperlink formula is =HYPERLINK("#gid=0&range=A"& MATCH(Task, Tasks!A1:A, 0), Task)

enter image description hereenter image description here


Viewing all articles
Browse latest Browse all 9628

Trending Articles



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