Average ONLY for current days in month

redspanna

Well-known Member
Joined
Jul 27, 2005
Messages
1,604
Office Version
  1. 365
Platform
  1. Windows
Hi all

I'm sure there is a simple answer to this but can't seem to figure it out.
I simply just need a formula to give the AVERAGE of Sales values stored thru C2:C32, but ONLY up until the current day of the month.

NDA.xlsm
BC
1DAYSALES
2170
320
43545
544695
650
76140
8770
980
109950
111070
1211820
13120
14130
15140
16150
17160
18170
19180
20190
21200
22210
23220
24230
25240
26250
27260
28270
29280
30290
31300
32310
33AVERAGE237
34669
35
Sheet2
Cell Formulas
RangeFormula
C2:C32C2=SUMIFS(Data!$F$2:$F$8000,Data!$A$2:$A$8000,DATE(YEAR(TODAY()),MONTH(TODAY()),B2))
C33C33=AVERAGE(C2:C32)
C34C34=AVERAGE(C2:C12)


So in the example if today was day 11 then the average I would like returned would be the AVERAGE OF C2:C12 thus giving the return of 669
If I use the =AVERAGE(C2:C32) formula , the return is 237

Thanks in advance for any help
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
try this

=AVERAGEIF(B2:B32,"<="&DAY(TODAY()),C2:C32)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,908
Messages
6,175,304
Members
452,633
Latest member
DougMo

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