• 469K Members
• 4,537 Online
• 567K Conversations
SOLVED

New Contributor

COUNTIF Dates within dates plus condition.

Hi,

I´m struggling a bit with the formula to calculate my conditions. I´ve attached an example file to giv an understanding.

My conditions are two date columns (A & B) and one date row (H6:ID6). I have four hypothetical sales persons (C6:F6) whom get marked with an "x" (C7:F7 and down) if they do a sale within the given date range in my columns.

My headache is how to calculate the number of "ongoing sales" per day each salesman have (HI:ID4).

So the critera of an "x" within a date range needs to meet that the dates in the date row occurs during the range and then calcuate the number of occurrences of "x" during that specific date.

Anyone that has some valuable input on how to build this formula?

Kind regards,

Viktor

3 Replies
Solution

Re: COUNTIF Dates within dates plus condition.

In the attached file, the formula in H1 is:

=COUNTIFS(\$A\$8:\$A\$334,"<="&H\$6,
\$B\$8:\$B\$334,">="&H\$6,
\$C\$8:\$C\$334,"x")

The formulas in H2:H4 are similar, then copied across columns until Column ID.

Re: COUNTIF Dates within dates plus condition.

Thank you so much for this!!! This solved the problem.

Kind regard,

Viktor

Re: COUNTIF Dates within dates plus condition.

You’re very much welcome!
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies