Calculating Average # of Procedures per Week

onecodevee01

New Member
Joined
Aug 5, 2024
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
What would be the easiest way to calculate the average # of procedures per week in the data set in the below screenshot? I would prefer that it be calculated via a Pivot Table but a formula in an additional column will work as well.
(note: each row is 1 procedure, so in this data set shown there are 44 procedures, and I have entered a formula in column C to pull in the week number based on the date in column B and week starting on a Monday.)
1722914724382.png
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
One way would be to make a list of unique week numbers in another column (say column D), then in column E have a COUNTIFS formula as
Excel Formula:
=COUNTIFS(C$2:C$24,D2)
Adjust ranges to suit.

Book1
CDE
1Week
222227
3222312
422244
522
622
722
822
923
1023
1123
1223
1323
1423
1523
1623
1723
1823
1923
2023
2124
2224
2324
2424
Sheet3
Cell Formulas
RangeFormula
E2:E4E2=COUNTIFS(C$2:C$24,D2)
 
Upvote 0
Indeed, as myall_blues said, maybe a helper column can get you the desired result like thus in cell G1 :

Book1
ABCDEFGHIJK
12244Total no of weeks = 6
2224Total no of Procs = 24
3224
4224
5235
6235
7235
8235
9235
10242
11242
12254
13254
14254
15254
16268
17268
18268
19268
20268
21268
22268
23268
24271
25
Sheet1
Cell Formulas
RangeFormula
E1:E24E1=COUNTIF(C1:C24,C1:C24)
G1G1=SUMPRODUCT(E1:E24,1/COUNTIF(C1:C24,C1:C24))/SUM(IF(FREQUENCY(C1:C24,C1:C24)>0,1))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,875
Messages
6,175,117
Members
452,613
Latest member
amorehouse

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