# Hi, I would like to count the occurrences in the current month and previous month. We use Australian

Hi, I would like to count the occurrences in the current month and previous month. We use Australian date format. I have tried IFERROR(MONTH(@cell), 0) = MONTH(TODAY()), but this is not giving accurate information.

• ✭✭✭✭✭✭

Try something like this.

=COUNTIF(Date:Date; IFERROR(MONTH(@cell); 0) = MONTH(TODAY())) + COUNTIF(Date:Date; IFERROR(MONTH(@cell); 0) = MONTH(TODAY()) - 1)

The same version but with the below changes for convenience.

=COUNTIF(Date:Date, IFERROR(MONTH(@cell), 0) = MONTH(TODAY())) + COUNTIF(Date:Date, IFERROR(MONTH(@cell), 0) = MONTH(TODAY()) - 1)

Depending on your country/region, you'll need to exchange the comma to a period and the semi-colon to a comma.

Did that work?

I hope that helps!

Be safe and have a fantastic week!

Best,

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

• Hi Andree,

That almost works but I need to make sure it's 2020 only.

Lauren

• I worked out the 2020 bit and the previous month formula works well but for some reason it is only counting 1 item in the current month when it should be counting 2.

• ✭✭✭✭✭✭

Can you describe your process in more detail and maybe share the sheet(s)/copies of the sheet(s) or some screenshots? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, andree@workbold.com)

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!