Average data, excluding Wkly Totals

jedilefty

New Member
Joined
Nov 14, 2017
Messages
48
Office Version
  1. 365
Platform
  1. Windows
Hello,

Can I please get some help averaging some series of data? I have a series of data listed below. How can I get a monthly average, while ignoring the "End of WK Total?" The date range goes all the way to the end of the month.


Date:Data1Data2
5/1
5/2
5/3
End of WK Total
5/6
5/7
5/8
5/9
5/10
End of WK Total
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
A bit of a hack, but this should get rid of those End of WK Total fields, assuming that A3:A12 are your dates, and B3:B12 are the amounts you want to average:
Excel Formula:
=AVERAGEIF(A3:A12, "<"&TODAY()+1,  B3:B12)

But the better solution would be to get rid of all those End of WK Totals altogether, and get them from a PivotTable or some other formula if you need them. Mixing subtotals in with your data is always going to cause more problems than it's worth.
 
Upvote 0
Hello,

Can I please get some help averaging some series of data? I have a series of data listed below. How can I get a monthly average, while ignoring the "End of WK Total?" The date range goes all the way to the end of the month.


Date:Data1Data2
5/1
5/2
5/3
End of WK Total
5/6
5/7
5/8
5/9
5/10
End of WK Total

When posting your question on the forum, it would be helpful to other members here to know what columns & rows we're dealing with. Assuming that your dates in located in Col. A and your row of data begins at row 2. Use this formula:

Excel Formula:
=AVERAGEIFS(A2:A28,">=5/1/2024",A2:A28,"<=5/31/2024")

You need to enter that as an array formula. Copy & paste it into the cell where you want the average number displayed then press Ctrl + Shift + Enter.
 
Upvote 0
Corrected formula:

Excel Formula:
=AVERAGEIFS(B2:B28, A2:A28,">=5/1/2024",A2:A28,"<=5/31/2024")
 
Upvote 0
Solution

Forum statistics

Threads
1,216,134
Messages
6,129,070
Members
449,485
Latest member
greggy

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