SUM of a column between two dates

Options

Hello. I am trying to write a formula that cross-references a sheet to calculate the sum of a column if the rows in the date column fall within a date range.

Here's a snapshot of the sheet I'm cross-referencing. I am trying to get the sum of "enrollment 1" if the "first visit" is within a certain date range or month (e.g. 4/1/2022 - 4/30/2022). I've tried a few different formulas including the one below, but I keep getting #unparseable.

 =SUMIFS({ENROLLMENT 1}:{ENROLLMENT 1}, {FIRST VISIT}:{FIRST VISIT}, AND(@cell>=DATE(2022, 4, 1), @cell<=DATE(2022, 4, 30)


Answers

  • Leibel S
    Leibel S ✭✭✭✭✭✭
    Options

    @nicolee

    Seems like you are missing some parentheses, also a cross sheet reference just needs to be shown once. See below:

    =SUMIFS({ENROLLMENT 1}, {FIRST VISIT}, AND(@cell >= DATE(2022, 4, 1), @cell <= DATE(2022, 4, 30)))

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!