- last edited on
My excel spreadsheet has ~50000 rows of names and ~25 columns of relevant information.
I would like to search, find and highlight ~2000 (of the 50000) names and relevant column information.
What is the easiest way to do it?
Any help in this regard is highly appreciated.
04-01-2018 10:04 AM
If the 2000 names are separate somewhere, and these names are unique identifiers, you can depend on them to return each name's info from the master dataset!
This is by using some lookup functions such as VLOOKUP, INDEX/MATCH.
If so, please attach a sample of them to show you how to do that.
04-01-2018 01:15 PM
If you have the list of 2000 names somewhere in the workbook, you can add a helper column to the original data table with a formula along the lines of
So, look at the name in the current table and find it in the list on the other sheet. Return TRUE if found and FALSE if not.
Now you can use conditional formatting on your table, using a formula that looks at the value in the helper column. Select the table and, assuming the current cell is in row 2 the Helper column is in column Z, use a formula like this
The value of Z2 is either TRUE of FALSE, so you don't need a complex formula. Just make sure that the column reference has a $ sign and the row number has NO $ sign in front of it. Then select a fill color to highlight and apply the rule to your whole table.
With this approach, you can add more names to your list of 2000 and they will automatically be highlighted in the table.
Let me know if that works for you.
04-01-2018 01:17 PM
Thanks for your response!
Please see the attached excel.
I have abridged my table here with ~1000 rows and 3 columns.
I need to find the 20 IDs highlighted in column 4 from column1.
How to use the index/match/vlookup in this case?
04-01-2018 02:04 PMSolution
in the following screenshot, I moved the list to column F and created a helper column in column D with the formula
in cell D2 and copied down.
Then I selected the whole table from row 2 to the bottom and created a new conditional formatting rule with the formula
I selected a yellow fill and confirmed all dialogs.
04-01-2018 08:41 PM
Please note that you have to use two techniques, one for highlighting, and one for lookup.
@Ingeborg Hawighorst has explained the first one.
But you don't have to create a helper column, you can directly put that formula into the Conditional Formatting rule.
With regards to the second one, you can depend on VLOOKUP function, with the support of COLUMNS function as follows:
$E2 is the lookup value;
$A$2:$C$1000 is the lookup range;
COLUMNS($A$1:B$1) is column index number;
0 represents FALSE which is turn on the exact match.
NOTE: I've used COLUMNS function in column index number argument to make the column index number expandable as you drag the formula to the right so that you don't have to change it manually for each column.
I've updated the workbook with the solution, please find it in the attachments.
Hope that helps
by wendi78 on May 28, 2020
by hersky on May 28, 2020
by Christine Karambelas on May 28, 2020
by cuong on May 27, 2020
by Ingeborg Hawighorst on May 13, 2020
Posted in Microsoft Ignite The Tour 2019 on October 10, 2019