Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Google Sheets Conditional Formatting w/ Multiple Criteria

$
0
0

I'm trying to format a spreadsheet containing timesheet data to flag certain conditions.

Each row of data represents a single pair of clock-in and clock-out times for an employee.

There can be several rows for a single employee representing each time they switched jobs, took a break, etc.

The columns are as follows:

ABCDEFGHI
First NameLast NameDateDayStart TimeEnd TimeHoursJobNotes

I need a conditional formatting rule to highlight any row that does not have the word 'Done' in Column I Notes if the following conditions are also met:

  1. Column H Job contains the word 'shop' or 'warehouse' anywhere in the cell contents.
  2. There is at least one other row that has matching values for all of the following columns:
    1.   Column A  First Name
    2.   Column B  Last Name
    3.   Column C  Date
    4.   Column H  Job

I started with the following formula for the same First Name, Last Name and Job, but I can't figure out how to build on it for the text matches in Job and Notes:

=COUNTIF(ARRAYFORMULA($A$2:$A$983& $B$2:$B$983& $C$2:$C$983& $H$2:$H$983), $A2&$B2& $C2& $H2)>1

Viewing all articles
Browse latest Browse all 9782

Trending Articles