# Help to count data

Options

We have lot of tasks completed on different months on that how to calculate number of tasks completed on specific month for example on Month July 2023 with a condition that value shows Current=YES.

• ✭✭✭
Options

Try this:

=COUNTIFS(Current2:Current10, "Yes", Date2:Date10, AND(YEAR(@cell) = 2023, MONTH(@cell) = 7))

You will have to set your ranges to be applicable with your data but it should work otherwise.

• ✭✭✭
Options

Try this:

=COUNTIFS(Current2:Current10, "Yes", Date2:Date10, AND(YEAR(@cell) = 2023, MONTH(@cell) = 7))

You will have to set your ranges to be applicable with your data but it should work otherwise.

• Options

@SJM1609 Thanks! Is there any way to calculate it dynamically without specifying Year & Month on formula? means anyway to calculate by using current date on formula and calculating the values.

• ✭✭✭
Options

Hi @Hariharan ,

Try this:

=COUNTIFS(Current1:Current9, "Yes", Date1:Date9, IF(ISDATE(@cell), MONTH(@cell)) = MONTH(TODAY()))

Again, you will have to set your ranges to be applicable with your data but it should work otherwise.

Feedback is appreciated! :)

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!