Help with Averaging a total amount based on the day of the week

rdrjr

New Member
Joined
Sep 28, 2019
Messages
32
Office Version
  1. 365
Platform
  1. Windows
I have a table that I enter the date such as 01-01-21 and the amount in a total column. I need to average the total amount for each day of the week. I have tried using the following formula but it returns the #Value error.

=AVERAGE(IF(Earnings[DATE]=2,Earnings[TOTAL],"")) 'my thinking is this would average all totals for the Mondays.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Maybe
Excel Formula:
=AVERAGE(IF(WEEKDAY(Earnings[Date],1)=2,Earnings[Total],""))
 
Upvote 0
Solution
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Maybe
Excel Formula:
=AVERAGE(IF(WEEKDAY(Earnings[Date],1)=2,Earnings[Total],""))
Sorry about that, I haven't posted in quite a while. I have updated it now, I use 365. I have changed the formula but it still returns the #Value error.
 
Upvote 0
Is the Date column a formula that sometimes returns ""
 
Upvote 0
Is the Date column a formula that sometimes returns ""
No, the date column is entered by me each day. Though it would save time if it were auto filled by a formula. I just enter it to see at a glance what I have done and what I have not.
 
Upvote 0
In that case are you sure your dates are actual dates?
If you format the Date column as General are all the values 5 figure numbers?
 
Upvote 0
In that case are you sure your dates are actual dates?
If you format the Date column as General are all the values 5 figure numbers?

They are date format
 

Attachments

  • Screenshot_1.png
    Screenshot_1.png
    36.4 KB · Views: 7
Upvote 0
I got it working now but I had to add 2 new columns and completely change the formula to do so. I was hoping to fix the original formula to simplify.
 
Upvote 0
I got it working now but I had to add 2 new columns and completely change the formula to do so. I was hoping to fix the original formula to simplify.
I would still appreciate the help to simplify. Having to add 2 new columns is not my preferred method
 
Upvote 0

Forum statistics

Threads
1,214,639
Messages
6,120,679
Members
448,977
Latest member
dbonilla0331

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