[Formula Help] - Countif department and not blank?

Hi everyone - I'm stuck trying to figure out how to format this question better. I'm working on building a dashboard for some reporting. The dashboard captures metrics from different quarters. (Average number of training hours). I'm trying to figure out how to set up a formula so that empty cells aren't counted as part of the average. I'm hoping you can help me. Here's some example data

Person

Department

Q1 Learning Hours

Q2 Learning Hours

Jane

Finance

10

5

John

Operations

15

8

Bill

Litigation

10

10

Tim

Litigation

20

20

Sam

Litigation

30

In this example, Sam onboarded in Q2 and should not be counted in the average for Q1. I'm currently using this equation:

=SUMIF(Department:Department, "Litigation", [First Quarter]:[First Quarter]) / COUNTIF(Department:Department, "Litigation")

I imagine I need to add "not" & "isblank" to the Countif Section to exclude empty cells in Q1 - but I don't know how to do that. Any help would be appreciated.

Tags:

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!