Jun 28 2023 07:19 PM
I have two tables
There are for instances unique employee ID in look up column and then dates like on column DB8.
Table 1 -
Table 2 - is the holiday table it matches the employee Id and date
I tried to conditional format:
=INDEX('Leave Chart - Weekly - Auto'!$I$1:$AI$293,MATCH('Forecast Data (Current) - HOL'!$E161,'Leave Chart - Weekly - Auto'!$A$1:$A$293,0),MATCH('Forecast Data (Current) - HOL'!DF$8,Table_Leave_Chart___Weekly___Auto[[#Headers],[01/07/2023]:[30/12/2023]],0))>8
What it shows is array area, match the employee id to table 1 match the date to table 2 , if greater than 8 highlight red so it trying to say if employee id 2 and 29/06/2023 books 16 hours that week. On the forecast employee id 2 and 29/06/2023 with be conditioned formatted red. But if employee id 2 on holiday table 2 had zero holidays booked on 30/06/2023 the forecast employee id would not be highlighted on 30/06/2023.
Could someone advise as nothing is working with formula it's put on conditional format button formulas
Jun 28 2023 11:16 PM
To apply conditional formatting using Index Match in Excel, you can follow these steps:
=INDEX(Table2, MATCH($A1, Table2[Employee ID], 0), MATCH(B$1, Table2[#Headers], 0))<>""
Note:
This formula uses the INDEX and MATCH functions together. It looks up the Employee ID in Table 1 and matches it with the Employee ID column in Table 2. Then it matches the date in Table 1 with the column headers in Table 2. If there is a match and the corresponding cell in Table 2 is not empty, the conditional formatting will be applied to the cell in Table 1.
Make sure to adjust the range references and table names in the formula to match your specific setup. The text was created with the help of AI.
Hope this will help you.
Jun 29 2023 01:20 AM
@NikolinoDE the formula unfortunately did not work
Jun 29 2023 01:40 AM
Maybe you can consider using the IF function to combine the conditions and apply the conditional formatting. Here is an example of how the formula could be structured using the IF function:
=IF(AND(MATCH('Forecast Data (Current) - HOL'!$E161, 'Leave Chart - Weekly - Auto'!$A$1:$A$293, 0),
MATCH('Forecast Data (Current) - HOL'!DF$8, Table_Leave_Chart___Weekly___Auto[[#Headers],[01/07/2023]:[30/12/2023]], 0)),
INDEX('Leave Chart - Weekly - Auto'!$I$1:$AI$293,
MATCH('Forecast Data (Current) - HOL'!$E161, 'Leave Chart - Weekly - Auto'!$A$1:$A$293, 0),
MATCH('Forecast Data (Current) - HOL'!DF$8, Table_Leave_Chart___Weekly___Auto[[#Headers],[01/07/2023]:[30/12/2023]], 0))>8,
FALSE)
This formula combines the two conditions using the AND function and returns TRUE if both conditions are met. Otherwise, it returns FALSE. You can apply conditional formatting based on the TRUE/FALSE values. Text and formula based on AI processing.
I hope these suggestions help you troubleshoot the issue with your conditional formatting formula.
Jun 29 2023 01:52 AM
Jun 29 2023 01:57 AM
Jun 29 2023 07:03 AM
Sep 14 2023 10:09 AM
You need to use the INDIRECT function for the table call outs. The conditional formatting formula block won't recognize your table name as a table so you need to input it as INDIRECT("Table1[Column]"), where Table 1 is the table name, and Column is the table column you're referencing. The table and column need to be in quotations.