Forum Discussion
AllyDee
Feb 13, 2020Copper Contributor
Excel formula error
Please help! So this is my formula "=SUM(COUNTIFS(Feb!H2:H28,{"CHSP"},Feb!A2:A28,{">=03/02/2020"})-COUNTIF(Feb!A2:A28,">07/02/2020"))". Essentially I am trying to calculate whenever we enter CHSP wit...
Twifoo
Feb 13, 2020Silver Contributor
You can simplify your formula like this:
=COUNTIFS(Feb!H2:H28,"CHSP",
Feb!A2:A28,">="&StartDate,
Feb!A2:A28,"<="&EndDate)
Note that StartDate and EndDate in the foregoing formula must be either Named Cells or Cell addresses wherein the dates are stored.