# Help with SUMIF

Options

Hello,

I am hoping to get some guidance on constructing a formula.

I am trying to calculate the number of days each person have been allocated for projects. This will help me in understanding monthly/annual labour allocation and available free time.

I have made column for each person on the right and entered the results I expect .

My logic for the calculation is - SUMIF(Primary Column = "John", get the value from Duration, and scan this through all the rows and add them)

I have attached a sample sheet.

Any help would be appreciated. Thank You

Ash

Tags:

• ✭✭✭✭✭✭
Options

Try something like this...

=SUMIFS(Duration:Duration, [Primary column]:[Primary Column], @cell = "John")

• ✭✭✭✭✭✭
Options

Try something like this...

=SUMIFS(Duration:Duration, [Primary column]:[Primary Column], @cell = "John")

• Options

Thank you, Paul, that worked! Appreciate your help.

• ✭✭✭✭✭✭
Options

Happy to help. 👍️

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!