Compare Dates

Laura J
Laura J ✭✭✭✭
edited 03/10/23 in Formulas and Functions

I want to count rows if the Original Target Year was 2022, but the Estimated Complete date is > 2022. My formula is only bringing back the items estimated to complete in 2023 and not including all items estimates for 2024 and beyond.

=COUNTIFS({Risk Management - Original Target Year}, "2022", {Risk Management - Estimated Complete}, (2022))

Thanks

Answers

  • Hi @Laura J

    How is your source sheet formatted? If the "Estimated Complete" column only has numbers in it, such as 2022 or 2023, then you'll just need to adjust the end of the formula to show exactly what you wrote out: > 2022

    Try this:

    =COUNTIFS({Risk Management - Original Target Year}, "2022", {Risk Management - Estimated Complete}, > 2022)

    Cheers,

    Genevieve

    Need more help? 👀 | Help and Learning Center

    こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!