AverageIFS with =today()

Bandito1

Board Regular
Joined
Oct 18, 2018
Messages
237
Office Version
  1. 2016
Platform
  1. Windows
Hello all,

Want the average of the numbers in column D based on the month it is.
Made this formula for it;
Excel Formula:
=AVERAGEIFS(D338:D368;A338:A368;">="&E338;A338:A368;"<="&EOMONTH(E338;0))

Now when i enter 1-12-2022 in cell E338 it works
But when i place =today() there and the value 29-12-2022 appears it takes the value from 29-12-2022 and doesn't calculate the average.

What is going wrong?

Cell Formulas
RangeFormula
A338:A368A338=$A$2+ROWS($1:335)-1
B338:B368B338=IF(A338="","",SUMPRODUCT(--('Tracker QA on the Floor'!$J:$J=A338)))
C338:C368C338=IF(A338="","",SUMPRODUCT(--('Tracker QA on the Floor'!$L:$L=A338)))
F338:F339F338=AVERAGEIFS(D338:D368,A338:A368,">="&E338,A338:A368,"<="&EOMONTH(E338,0))
E339E339=TODAY()
D351:D368D351=IF(AND(B351=0,C351=0),D350,SUM(D350)+(B351)-C351)
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
If you put TODAY in there, your first criterion is then >=29/12/2022. You could use:

Excel Formula:
=AVERAGEIFS(D338:D368;A338:A368;">="&EOMONTH(E338;-1)+1;A338:A368;"<="&EOMONTH(E338;0))
 
Upvote 0
Solution

Forum statistics

Threads
1,216,074
Messages
6,128,649
Members
449,462
Latest member
Chislobog

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