I have a sheet (example here: Demo Sheet)
Sheet 1: contains a list of users with their email address and name.
Sheet 2: contains a list of and the groups that they are a member of.
Sheet 3: I want to 'flip' sheet 2, so rather than have the user and each group, I want the group with each member listed.
I have tried =TRANSPOSE(FILTER(Sheet2!A2:A11,Sheet2!B2:E11=A2))
But Filters need to be a single column, I tried to flatten and get the unique values and use that but it came back with a mismatched quantity.
Anyone have any clue how to do this?
Here's one way you can do it:
=index(split(trim(transpose(query(if(regexmatch(
substitute(substitute(trim(transpose(query(transpose(
substitute(Sheet2!B2:E," ","❄️")),,9^9)))," ",","),"❄️"," "),
transpose(filter(A2:A,A2:A<>""))),Sheet2!A2:A,),,9^9)))," "))
Related
following problem:
I have a column with wrong Ids
Now I want to watch those wrong Ids with another sheet where I have same Ids and the correct link I want to match with those Ids:
So what I same up with is the following ->
=IFERROR(VLOOKUP(A2,'extract base'"B:F),"")"))
But obviously doesn't work haha. So basically very easy -> if the Id from Sheet 1 matches with the Id from Sheet two put in the second column (in my example custom_label) the value of sheet two column 2
Any help is appreciated, thank you so much!
Your current VLOOKUP formula is not structured correctly at all, and your sheet reference 'extract base'"B:F is also not written correctly. Have you read the basic documentation on VLOOKUP usage and syntax?
Delete B2:B entirely.
Then place the following in B2:
=ArrayFormula(IF(A2:A="",,IFERROR(VLOOKUP(A2:A,'extract base'!B:F,5,FALSE))))
This formula should provide results, if any, for all rows (assuming that your second sheet is, in fact, called exactly extract base).
In a Google Sheet there are two pages with correlated data. On a third page, how can I get a list of all user names that are associated with an account that has a subscription_type=1?
Page1 (users) has columns A (name) and B (account_id).
Page2 (accounts) has columns A (account_id) and B (subscription_type)
Unfortunately, the QUERY function can only work on one sheet at a time.
You can use the FILTER function to extract from Page 1 the account-id of anybody who has a subscription_type=1
After that, you can get the name with a simple INDEX-MATCH
You can find an example here.
try:
=FILTER(A:A, IFNA(VLOOKUP(B:B, Page2!A:B, 2, 0))=1)
I have a spreadsheet which captures responses from a Google Form where user can select multiple options from pre-defined options. For an example, say question is which days do you work? and options are {"Sunday", "Monday", "Tuesday", "Wednesday","Thursday","Friday","Saturday"} and user can either select only 1 or multiple.
User 1: "Sunday","Tuesday","Wednesday"
User 2: "Monday","Friday","Saturday"
User 3: "Wednesday","Thursday","Friday","Saturday"
User 4: "Monday","Tuesday","Wednesday","Thursday","Friday"
And I want to find the list of Users who are working on say "Tuesday". In response Spreadsheet, all the above responses for each users are saved in single column (for example column E) like:
E1: Sunday,Tuesday,Wednesday
E2: Monday,Friday,Saturday
E3: Wednesday,Thursday,Friday,Saturday
E4: Monday,Tuesday,Wednesday,Thursday,Friday
and user names are also in a single column (say in Column B)
B1: User 1
B2: User 2
B3: User 3
B4: User 4
Now I want to use something similar to Filter() where array is filtered and displayed (like B1:B) where E1:E contains "Tuesday"
How can I achieve this?
Try something like
=query('Responses'!A:E, "Select B where E contains 'Tuesday'", 1)
Change sheet name and range to suit.
I'm using Filter function using Google Sheets but can't use it the way I want, it has been 3 days...
Basically I have Sheet 1 with a column "e-mail" and column "Lead ID". The Sheet 2 has the same "Lead ID", but it's filtered. Meaning, Sheet 1 it' sequential with 1,2,3,4,5...and sheet 2 it's not, it's like 2,4,5,23,41... What I want to to find the right e-mail address that's in Sheet 1, that has the same Lead ID in both. I've used Filter function which works really well because it updated the rows and I dont need to drag the cell. But in this case this is not working:
ABD!C:C it's the E-mail Column.
ABD!T:T it's the Lead ID Column Sheet 1
A:A It's Lead ID Column Sheet 2.
=FILTER(ABD!C:C,ABD!T:T=A:A)
It returns the name of the column (e-mail) and not the actual e-mail address. If I use A2 instead of the column A:A, it works. But I can't use that way because I need to drag that cell and that causes a problem. I need to use this as the filter works which doesn't require to drag the cell.
=FILTER(ABD!C:C,ABD!T:T=A2)
https://docs.google.com/spreadsheets/d/1MKXCAc1-d8OU008OEHI2Tu7AObvaOueUD30jl5iG6W8/edit?usp=sharing
Any advice?
use:
=ARRAYFORMULA(IFNA(VLOOKUP(A2:A, {ABD!T:T, ABD!B:B}, 2, 0)))
I tried to find if someone had a similar request but I really can't find anything anymore. Basically, I got the following set up:
I got 2 named Ranges, both with 1 column called "ID":
Named Range 1: Rank, Real Name, ID
Named Range 2: UserName, Email, Tag, ID
Now in the second Range, I would like to add a column with the rank of the user but only if that ID also appears in range 1.
What I tried to do was a MATCH function, but I can only get a string to come out if the IDs match, not the rank which is in a different column (column A of the second range).
=ArrayFormula(IF(ISERROR(MATCH(D2:D200,'Top 100 List'!C2:C151,0)),"No","Yes"))
I got it to write "Yes" to all the items that are also in the other named sheet but instead of that, I would like to give me the value of the named range in A from that specific cell.
Edit: I made a copy of the sheet because of sensitive information so you can see it In the sheet "Registrations" column H I would like to get the ranks from the other sheet:
https://docs.google.com/spreadsheets/d/1PzItmS3j-orH74E2zFlNWbvw39GdDGwuYL_jgzNAi7U/edit?usp=sharing
=ARRAYFORMULA(IF(LEN(C2:C),IF(ISERROR(MATCH(D2:D200,'Top 100 List'!C2:C151,0)),"No",
VLOOKUP(D2:D,{'Top 100 List'!C2:C151,'Top 100 List'!A2:A151},2,0)),))