Apr 06 2022 07:53 AM - edited Apr 06 2022 07:55 AM
Hi Experts,
I have 2 worksheets "Employee- For Employee records" and "Task- For task and ownership record".
I have applied a conditional formatting in "Resources" column of "Tasks" sheet to highlight the value not available in "Employee Name" column of Employee sheet.
It is working fine for single employee names in G column, but when I give multiple employees names separated by comma, it highlights that cell also, as conditional formatting looks for exact match.
Can I use any other workaround to have multiple resources in G column and still able to compare it in A column of Employee sheet?
Please help!
Regards
Rohit
Apr 06 2022 08:30 AM
What should happen if you have Engineer2, Engineer7 in a cell?
Apr 06 2022 08:45 AM
@Hans Vogelaar Thanks for reply, Engineer 7 is not in Employees worksheet, so the cell should be highlighted.
Apr 06 2022 08:52 AM
SolutionTry the following formula:
=SUM(--ISNUMBER(FIND(Employee!$A$2:$A$7,$G2)))-(LEN($G2)-LEN(SUBSTITUTE($G2,",","")))-1
Apr 06 2022 08:57 AM
@Hans Vogelaar Just wow, It is working like a charm.
Thanks a ton, you have saved me I don't know how many hours.
Grateful!
Apr 06 2022 08:19 PM - edited Apr 06 2022 09:22 PM
Hi @Hans Vogelaar,
Apologies for not stating the problem in dummy data correctly, when I applied the same formula in my project data, it is highlighting all the cells in G column, as A column of Employee sheet actually has duplicate employees for different dates.
I am not able to figure it out how to modify the formula to work in my condition!
Can you please help again?
Regards
Rohit
Apr 07 2022 03:42 AM
You can use the UNIQUE function to create a list of unique engineer names, and use that list in the formula instead of the range in column A.
Apr 07 2022 04:12 AM
Apr 07 2022 04:28 AM
Or use
=SUM(--ISNUMBER(FIND(UNIQUE(Employee!$A$2:$A$7),$G2)))-(LEN($G2)-LEN(SUBSTITUTE($G2,",","")))-1
Apr 06 2022 08:52 AM
SolutionTry the following formula:
=SUM(--ISNUMBER(FIND(Employee!$A$2:$A$7,$G2)))-(LEN($G2)-LEN(SUBSTITUTE($G2,",","")))-1