Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Excel validate entries in list of lists

I have a master list of things (column A below), and I have a list of lists (column C below), where all sub-entries should exist in the master list. I would like to validate the list of lists (in column D). For example, the below screenshot shows a mock-up example of the data and the expected result in column D:

Excel example data set and expected result

https://www.dropbox.com/scl/fi/lqknilfbkfn5d52o5covs/Check-entries-in-lists-in-list-are-all-valid.xlsx?rlkey=ze5lmwp9bf2vh00b3l85yneew&st=vl6r6cdr&dl=0

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

What formula could I use for column D?

>Solution :

Here is one way of accomplishing the desired output using XMATCH() + TEXTSPLIT() + ISNUMBER() + AND() funtcions:

enter image description here


• Formula used in cell D2

=AND(ISNUMBER(XMATCH(TEXTSPLIT([@[List of lists]],","),Table1[Master List of Things])))

• Or bit shorter using 1-ISNA() instead of ISNUMBER() which does the same operation here:

=AND(1-ISNA(XMATCH(TEXTSPLIT([@[List of lists]],","),Table1[Master List of Things])))

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading