COUNTIFS for specific years

Hi, Im working on a countifs formula i which I would like to get the sum values for both 2024 and 2025. Below is my original formula for 2025… and now, I would like the same formula to also capture 2024.. Thanks in advance for the help! 😊

=COUNTIFS({MMR EQSW Function/Project Date Requested}, ISDATE(@cell ), {MMR EQSW Function/Project Date Requested}, YEAR(@cell ) = 2025, {MMR EQSW Function/Project Code}, "EP", {MMR Engineering Function/Project Status}, "Complete")

Best Answers

  • Jeremy_D
    Jeremy_D ✭✭✭✭
    Answer βœ“

    Hi @regina.quality I think to do that you'll have to add the formula you have to the same formula but with 2024. So if your formula works then it'll be:

    =COUNTIFS({MMR EQSW Function/Project Date Requested}, ISDATE(@cell ), {MMR EQSW Function/Project Date Requested}, YEAR(@cell ) = 2025, {MMR EQSW Function/Project Code}, "EP", {MMR Engineering Function/Project Status}, "Complete") + COUNTIFS({MMR EQSW Function/Project Date Requested}, ISDATE(@cell ), {MMR EQSW Function/Project Date Requested}, YEAR(@cell ) = 2024, {MMR EQSW Function/Project Code}, "EP", {MMR Engineering Function/Project Status}, "Complete")

    I know it's quite wordy, there may be a better way but this will work.

  • regina.quality
    regina.quality ✭✭✭
    Answer βœ“

    @Jeremy_D Hi Jeremy, sorry for the late feedback. Much appreciate your advise/suggestion. And yes, it did work!

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!