# Need help with a formula to sum all numbers in a column that have the same date?

✭✭✭✭✭

Hi there --

I'm working on a project where I need to track the total number of hours a person worked each day. A person may have three rows (log entries) with the same date, so I'd like the formula to count the hours column for each row that has the same date.

In the example above, the Total column would show the total number of hours for the day For example, the three rows that have 10/1/23 would show "8" in the Total column.

I'm using the formula =SUMIFS(Hours:Hours, Date:Date, @cell) but it's returning an "Invalid Data Type" error. I can't quite figure out what's causing the error. Any ideas?

Thank you!

Tags:

• ✭✭✭✭✭✭

Hi @jmhoward ,

You're super close, try this.

=SUMIF(Date:Date, Date@row, Hours:Hours)

Hope this helps,

Dave

• ✭✭✭✭✭

Ah! Thank you @jmyzk_cloudsmart_jp and @DKazatsky2 ! That was driving me crazy. I neglected to account for those blank rows.

I really appreciate the help!

• ✭✭✭✭✭✭

Hi @jmhoward ,

You're super close, try this.

=SUMIF(Date:Date, Date@row, Hours:Hours)

Hope this helps,

Dave

• ✭✭✭✭✭✭

If you remove all the blank rows, your formula should work; otherwise, add ISDATE(@cell).

=SUMIFS(Hour:Hour, Date:Date, ISDATE(@cell), Date:Date, Date@row)

• ✭✭✭✭✭