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

Options
✭✭✭✭✭

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:

• ✭✭✭✭✭
Options

Hi @jmhoward ,

You're super close, try this.

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

Hope this helps,

Dave

• ✭✭✭✭✭
edited 11/15/23 Answer ✓
Options

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!

• ✭✭✭✭✭
Options

Hi @jmhoward ,

You're super close, try this.

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

Hope this helps,

Dave

• ✭✭✭✭✭✭
Options

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)

• ✭✭✭✭✭
edited 11/15/23 Answer ✓
Options

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!

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!