# Using COUNTIFS

Options
edited 07/13/21

Hi All,

Newbie posting. Been using smartsheet for my projects and keen to delve more into the reporting side for Board information. I have a Smartsheet that I use to record installs of certain types of products, we have three different types. I have used a formula to count the number of each type of product with an example below:

=COUNTIF(Product:Product, ="Big Yin")

The above is working fine. Recent price changes have resulted in me being asked to report on each product installed from a certain date, 27/06/21, below is the formula I have at the moment that does not work:

=COUNTIFS(Product:Product, ="Big Yin", AND(>=DATE(2021, 6, 26)))

Getting IVALID OPERATION and no idea why, probably something obvious. Any help greatly appreciated.

Tags:

• ✭✭✭✭✭✭
Options

Try somethign more like this...

=COUNTIFS(Product:Product, ="Big Yin", [Install Date]:[Install Date], @cell >= DATE(2021, 6, 26))

• ✭✭✭✭✭✭
Options

You would add in another range/criteria set following the syntax of the other two range/criteria sets.

=COUNTIFS(Product:Product, ="Big Yin", [Install Date]:[Install Date], @cell >= DATE(2021, 6, 26), Complete:Complete, @cell = "Yes")

• ✭✭✭✭✭✭
Options

Try somethign more like this...

=COUNTIFS(Product:Product, ="Big Yin", [Install Date]:[Install Date], @cell >= DATE(2021, 6, 26))

• Options

Thank you so much Paul, worked a treat.

One other question though and something I should of mentioned in my original post. There is a another column called Complete that should return either a Yes or No answer. I want to only count those entries in the Smartsheet that meet the conditions in your provided formula and also have "Yes" marked in this column, how can I work that in?

Thank you again for your help, it much appreciated.

Kenny

• ✭✭✭✭✭✭
Options

You would add in another range/criteria set following the syntax of the other two range/criteria sets.

=COUNTIFS(Product:Product, ="Big Yin", [Install Date]:[Install Date], @cell >= DATE(2021, 6, 26), Complete:Complete, @cell = "Yes")

• Options

Thanks again Paul, works perfectly. I did try the syntax but must of been making an error somewhere. Thank you so much.

• ✭✭✭✭✭✭
Options

Happy to help. 👍️

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!