Countifs Formula

Hi Smartsheet Team,
I have captured this student id no. 2307647 Programming session hours is 1.5 hours. (see below)
Then, I worked on the metrics sheet to show the hours on the programming session - Complete. It shows only 1 hour, even though I added the decimal spaces. the formula for Programming sessions - Complete is
=COUNTIFS({Merit Scholars- Reporting Student ID no}, [Student ID]@row, {Merit Scholars- Reporting Program or Events}, "Programming Session")
Can you please review my formula and adjust it to display 1.5 hours instead of just 1 hour? Thank you!
Best Answer
-
The COUNTIFS is counting the number of rows where the criteria are true.
If looks like you want to count hours if
{Merit Scholars- Reporting Student ID no} equals [Student ID]@row
and
{Merit Scholars- Reporting Program or Events} equals "Programming Session"
I think you need a SUMIFS instead. This will let you sum the total of a given column (hours) if the criteria are met.
Change the parts in bold from
=COUNTIFS({Merit Scholars- Reporting Student ID no}, [Student ID]@row, {Merit Scholars- Reporting Program or Events}, "Programming Session")
to
=SUMIFS({reference for the hours column},{Merit Scholars- Reporting Student ID no}, [Student ID]@row, {Merit Scholars- Reporting Program or Events}, "Programming Session")
Answers
-
The COUNTIFS is counting the number of rows where the criteria are true.
If looks like you want to count hours if
{Merit Scholars- Reporting Student ID no} equals [Student ID]@row
and
{Merit Scholars- Reporting Program or Events} equals "Programming Session"
I think you need a SUMIFS instead. This will let you sum the total of a given column (hours) if the criteria are met.
Change the parts in bold from
=COUNTIFS({Merit Scholars- Reporting Student ID no}, [Student ID]@row, {Merit Scholars- Reporting Program or Events}, "Programming Session")
to
=SUMIFS({reference for the hours column},{Merit Scholars- Reporting Student ID no}, [Student ID]@row, {Merit Scholars- Reporting Program or Events}, "Programming Session")
-
Thank you, KPH.. Now I got it.
-
Great news! Glad to have helped.
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.8K Get Help
- 474 Global Discussions
- 202 Use Cases
- 515 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 82 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives