Link to home
Start Free TrialLog in
Avatar of Doug Van
Doug VanFlag for Canada

asked on

Copying Names in a grid to a single column, then comparing against master list (column)?

I have a Google Sheet where I have five columns and 20 rows of names, and I am looking for a way to collect all the names, sort them, and list them in a single column, then compare the list against another list to find the missing names.

I searched for an example of how to accomplish this and found nothing similar. :(
To be specific, I need to find a way to do this using a formula and without add-ons macros. Is it possible?

To make this easier, I am including a working sheet:
Here is the example sheet.
Avatar of Doug Van
Doug Van
Flag of Canada image

ASKER

Apologies, I used the wrong link. Corrected now. :)
Avatar of Ben Personick (Previously QCubed)
You can create a combined column from mulriple columns in excel, not sure if google sheets offers ths sams functional method to do so..
ASKER CERTIFIED SOLUTION
Avatar of Ben Personick (Previously QCubed)
Ben Personick (Previously QCubed)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Super awesome!

Thank you to both Ben, for the conversion of the table to the list! Just brilliant!

Thank you to Norie (again!) for the matching formula. Another brilliant answer!

For Norie, combining Ben's solution with yours, I changed your solution to simply:
=IF(ISNA(MATCH(L5,sort(FILTER({Sheet1!$J$2:$J$93}, LEN({Sheet1!$J$2:$J$93}))),0)), "Not Found", "Found")

Works like a charm!

I can't thank you all, enough. :)
So happy with your answers!
Avatar of Norie
Norie

The first formula I posted was to convert the table to a list.

The second was to show you how to use that formula along with MATCH to compare to the list on Sheet2.
Thanks Norie.

As an extension of your formula, I decided that I would rather list out just the missing names.

So, instead of:
=IF(ISNA(MATCH(L2,sort(FILTER({Sheet1!$J$2:$J$93}, LEN({Sheet1!$J$2:$J$93}))),0)), "Not Found", "Found")

I used:
=IF(ISNA(MATCH(L2,sort(FILTER({Sheet1!$J$2:$J$93}, LEN({Sheet1!$J$2:$J$93}))),0)), L2, "")

Then I sorted the column with:
=sort(FILTER({Sheet1!N1:N94}, LEN({Sheet1!N1:N94})))

It works perfectly, but I am sure there is a way to simplify and possibly even eliminate the intermediary column "N".

But I am very happy with the results... once I remove the column "M" and hide columns "L" and "N".

https://docs.google.com/spreadsheets/d/1Q2nN-MVD_iwJi2Se-PFWcNbMGb-EF6gQWQCruhnWW-Q/edit#gid=0
Do you mean one formula that would return only the people on Sheet1 that are found in the list on Sheet2?

That might be possible using FILTER, perhaps by adding a second criteria.

Might get a bit complicated though.:)

If I get a chance I'll take a look at it later.
Thanks Norie, I was just thinking out loud. I am not expecting any further effort.

I really appreciate the results, as is. :)

Take care.