How to sum a specific type in a specific date range from another sheet

Aaron Kennedy
โญโญโญ
This is an update to the question I asked the other day but I want to sum the total hours of certain types of employees for each month from another sheet, my columns are: Date, Title, Straight Time, and Overtime.
So if I wanted to sum the total straight hours for someone who is a Foreman, what could I use?
I assume its SUMIFS but I just wonder how to make it.
Answers
-
something like:
=SUMIFS([Straight Time]:[Straight Time],Title:Title,@cell="Foreman")
If you wanted to add a date range you would do something like the below:
=SUMIFS([Straight Time]:[Straight Time], Title:Title, @cell = "Foreman", Date:Date, AND(@cell >= DATE (2024, 12, 1), @cell <= DATE(2024, 12, 31)))
This would give you everything within the month of December 2024