I have a Sheet that looks like this:
╔═══════╦═════════════════════════════════════╦══╗
║ ID ║ Users ║ ║
╠═══════╬═════════════════════════════════════╬══╣
║ 12345 ║ bob@domain.com,su'uzan@domain.com ║ ║
║ 99999 ║ steven@domain.com,rachel@domain.com ║ ║
╚═══════╩═════════════════════════════════════╩══╝
It's two column, one with an ID and one with comma-separated lists of emails. I need to look like this:
╔═══════╦════════════════════╦══╗
║ ID ║ Users ║ ║
╠═══════╬════════════════════╬══╣
║ 12345 ║ bob@domain.com ║ ║
║ 12345 ║ su'uzan@domain.com ║ ║
║ 99999 ║ steven@domain.com ║ ║
║ 99999 ║ rachel@domain.com ║ ║
╚═══════╩════════════════════╩══╝
I've tried using pivot tables and some query
operations but haven't been able to crack it. There's roughly 6,000 entries in the Sheet now. I also wasn't able to get anything from this question to work (I need something automatic, there's too much data to do manually.) This question also seems similar but is unanswered.
Best Answer
I modified the excellent code provided by Jacob Jan Tuinstra to fit your needs assuming your data starts at
A2
.Step 1
Open the
Script editor
from your sheet menu and paste this code:Step 2
Paste anywhere (
D1
orG1
or...) this formula:=result(A2:B5)
Step 3
Done
I believe it doesn't get more automatic.
If for any reason you cannot get it to work, please share the link to a test sheet in a comment so we can work it out.