Forum Discussion
Drop down list - highlights cells
- Mar 18, 2020
Hello Justin_Blush,
Is it possible to share a sample of the data that you are working with? That would be a tremendous help for me to find you a solution.
Attached is a sample file so that you can follow along. I hope this is what you're looking for...
- Create individual tables with headers as topics of U.S. policy (replace each space with "_")
- Under each table, enter key words that you wish to find for each topic
- Individually name each table the same as headers
- Create a data validation table as a list from each of the headers.
- Create a table full of government documentation and quotes.
- Select upper left most cell of table and create Conditional Formatting. Use the formula:
=SUMPRODUCT(--ISNUMBER(SEARCH(IF(INDIRECT($A$11)<>"",INDIRECT($A$11)),A14)))>0
- In this formula, $A$11 is the cell with data validation list and A14 is first cell of table.
- Format fill color to green.
- Apply conditional format to entire table range
If you have any question, please do not hesitate to ask.
Its very close and will work great when I overcome this error.
- PReaganMar 06, 2020Bronze Contributor
Could you share your updated workbook so that I can search for the issue? (please remove any sensitive information)
- Justin_BlushMar 06, 2020Copper Contributor
I figured it out, thank you. This works well.
One more question. Lets say I wanted to have another filter added. Another dropdown box that isolated which "description" columns to search for the keywords. For example on your sheet you have description, description2, and description3. Say particular "descriptions" were useful to certain government agencies/organizations i.e. Army, Navy, FBI, CIA, etc. Each agency might have multiple description columns that were useful, but no agency would need information from all the description columns. So if I had another dropdown box for the user to isolate an agency and the respective useful description columns for the other dropdown box (homeland_defense, federal_law_enforcement, etc.) to search for the keywords.
Hopefully this makes sense. Thank you again. This is the last part for this project I would hope to achieve.
- PReaganMar 08, 2020Bronze Contributor
- Add an additional data validation list with the headings of each "Description" column.
- Changing each "Description" column to it's own table will allow the list to be dynamic (like done with each U.S. Policy column above
- You will have to change the formula and "applies to" section for each column.
Change "Description" column to:
=AND($A$13=$B$11,SUMPRODUCT(--ISNUMBER(SEARCH(IF(INDIRECT($A$11)<>"",INDIRECT($A$11)),A14)))>0)
- Applies to $A$14:$A$17
Change "Description2" column to:
=AND($B$13=$B$11,SUMPRODUCT(--ISNUMBER(SEARCH(IF(INDIRECT($A$11)<>"",INDIRECT($A$11)),B14)))>0)
- Applies to $B$14:$B$17
- Change "Description3" column to:
=AND($C$13=$B$11,SUMPRODUCT(--ISNUMBER(SEARCH(IF(INDIRECT($A$11)<>"",INDIRECT($A$11)),C14)))>0)
- Applies to $C$14:$C$17
Review the following workbook and let me know if you have any other questions or concerns.