I am using Ubuntu 22.04 and LibreOffice 7.5.7.1. I have a LibreOffice Calc Spreadsheet in which there is a column which contains text such as “INDIAN PENAL CODE–” There may be some other text before “INDIAN PENAL CODE–” and there may be some other text after “INDIAN PENAL CODE-- then a three digit number.” Then may or may not be a comma and another three digit number and so on. In another sheet there is a column in which certain three digit numbers are given.
I want a formula which will check whether there is a text “INDIAN PENAL CODE–” in the cell and if the numbers separated by a comma with “INDIAN PENAL CODE–” are found in the column of a different sheet.
If it is found it would return the value “Compoundable” and if the number with “INDIAN PENAL CODE–” are not found in the column it should return “Non-Compoundable”
My Spreadsheet is attached herewith.
Compoundable Section Checker Query.ods (49.9 KB)
Example:- In “INDIAN PENAL CODE–323,324,448,504,506” 324 is not compoundable and it is not in the list of CompoundableSection. Therefore I want that in front of “INDIAN PENAL CODE–323,324,448,504,506” “Non Compoundable” should be written.