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

How to dynamically return values horizontally in Google Sheets

$
0
0

Say I have a column like this:

useritem
User1Item1
User1Item2
User1Item3
User1Item4
User1Item5
User2Item1
User3Item1

How can I return them like this in a filter/lookup formula:

user
User1Item1Item2Item3Item4Item5
User2Item1
User3Item1

I am familiar with regular vlookup and filter formulas but didn't find a way to achieve this.

For example, I tried =UNIQUE(C2:C) and =ARRAYFORMULA(TRANSPOSE(FILTER(D2:D, C2:C = G2:G))) but it only works if I don't have arrayformula and instead drag the formula down manually... What I want is for this to work automatically for all new data so I don't have to manually drag the formula down for each row.

Here is a screenshot: https://prnt.sc/g23fzJgPbv4O

Here is a test spreadsheet: https://docs.google.com/spreadsheets/d/1NyJZpBe-Btg1JI6DTwWmVcYgbBpC2m2QcxaWVqNW9EI


Viewing all articles
Browse latest Browse all 9788

Latest Images

Trending Articles

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