In my excel table, C:C values are the names of employees that worked hours T:T values…
- User
In my excel table, C:C values are the names of employees that worked hours T:T values are recorded dates of hours for each employee I:I values are names of employees I3 is employee X U:U values are the start dates V:V values are the end dates
I want a formula that will look at employee X in I3. Find the number of times employee X appears in C:C on the same row where the start period = U3 and the end period = V3, and total the number of hours recorded in column T:T on the same row as employee X
Assistant
Quite a specific and interesting question!
To achieve this, you can use a combination of the
SUMIFSandCOUNTIFSfunctions, but since you need to both count occurrences under specific conditions and sum hours from another column based on those same conditions, we'll focus on crafting aSUMIFSformula for the hours, as it implicitly counts the occurrences that match your criteria. Here's how you can do it:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.