sum values occurring during weekly periods

Paul15

New Member
Joined
Jun 25, 2020
Messages
44
Office Version
  1. 2019
Platform
  1. Windows
Team, I have a working formula counting the number of occurrences of a value "yes" during any weekly period.

Excel Formula:
=COUNTIFS(CCIC_Log!$C:$C,">="&$A10,CCIC_Log!$C:$C,"<="&$B10,CCIC_Log!$AB:$AB,"Yes")

C: being an event date
A: being week start date
B: being week end date
AB: count all occurrences of "yes" during the weekly period

Where a date in C: falls between start and end dates at A and B, it counts the occurrences of "Yes" between those dates.

I am looking for a way to now 'Sum' values in column CCIC_Log!$P:$P for those same weekly dated periods and where AB: remains "yes". An example might be:

Weekly period
A: 30 Apr 2023
B: 6 May 2023

Between these dates there were entries where AB: "yes" on

C: 1 May 2023
C: 2 May 2023

With value at CCIC_Log!$P:$P being ( ) respectively for those dates

C: 1 May 2023 (10)
C: 2 May 2023 (15)

The formula should return a total of (25)

Hopefully this makes some sense and thanks in advance for any help

regards
Paul
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Try:
Excel Formula:
=SUMIFS(CCIC_Log!$P:$P,CCIC_Log!$C:$C,">="&$A10,CCIC_Log!$C:$C,"<="&$B10,CCIC_Log!$AB:$AB,"Yes")
 
Upvote 0
Solution

Forum statistics

Threads
1,214,875
Messages
6,122,039
Members
449,063
Latest member
ak94

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top