I'm attempting to collect data across sheets and am having a hard time getting my formula right. I want to collect the number of sites in a program that falls into a particular date range. So, I want to pull from our intake sheet all sites in Program A that are due between 1/9/23 and 1/13/23.
I've tried a couple of different formulas (see below) with no luck. I welcome any feedback or suggestions on a formula to try.
=COUNTIF({Program Name: Program Name}, "Program A" and (COUNTIFS({Due Date:Due Date}, <=DATE(2023, 1, 13), {Due Date:Due Date}, >=DATE(2023, 1, 9)))
=SUM(COUNTIFS({Program Name: Program Name}, "Program A", {Due Date:Due Date, <=DATE(2023, 1, 13), {Due Date:Due Date}, >=DATE(2023, 1, 9}))
=COUNTIFS({Program Name: Program Name}, "Program A", {Due Date:Due Date}, <=DATE(2023, 1, 13), {Due Date:Due Date}, >=DATE(2023, 1, 9))