Two countif statements in one formula?

Hello,

I am pretty new to Smartsheet, and I've created a metrics dashboard. If anyone can point me in the right direction, I'd appreciate it.

I am trying to use two different criterion to find a value for my dashboard. One of them is a title, such as "Medical Student".

I've used =COUNTIF({Reference Sheet}, "Medical Student"). That returns all Medical Students. I would like to find the Medical Students only from January. How do I get it to return only Medical Students that started in January of 2023? I have a date column to key on. Can you reference two different columns on the same sheet for two different criterion in the same formula?

I have used this formula on another sheet to pull numbers by month. I tried combining the first COUNTIF with this one using AND, but it doesn't work.

=COUNTIF({Reference Sheet}, AND(IFERROR(MONTH(@cell), 0) = 1, IFERROR(YEAR(@cell), 0) = 2023))

Thank you!

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!