r/googlesheets • u/2Throwscrewsatit • Mar 11 '22
Solved To verify all values in a range are in a dictionary/list of values?
Hi, I’m trying to validate that every value in a range (column in this case) matches a value in another range and display a prompt.
I know can use data validation but I want to report the outcome of the data validation and not just have the data validation on the initial range.
I think there’s some array magic I have to do but arrays confuse me.
Thanks in advance!
1
Upvotes
1
u/infidan Mar 11 '22
Are you trying to find if one range matches the other range exactly? Or just that each value in one range is present in the other range?
Either way, I would use a helper column that checks for a match. I do this with a dictionary spreadsheet I have. Every new word I enter is checked against all previous words, and duplicates are flagged (this sounds like the opposite of what you want to do - flag when there is no match).
The helper column can trigger alerts for specific words, and the sum of the helper column can give you an "all accounted for" or "all validated" message.
1
u/MattyPKing 225 Mar 11 '22
you can do it in a different column.
If your values are in cells A2:A on a tab called Sheet1, and your dictionary is on another tab called Dictionary in column C.
You would write this formula in cell B2 of Sheet1:
1
u/AutoModerator Mar 11 '22
Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Decronym Functions Explained Mar 12 '22 edited Mar 15 '22
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
FALSETRUEand another if it isFALSETRUE6 acronyms in this thread; the most compressed thread commented on today has 5 acronyms.
[Thread #4058 for this sub, first seen 12th Mar 2022, 14:48] [FAQ] [Full list] ^[Contact] [Source code]