Using DAY() function with AVERAGEIFS()

djmsenior

New Member
Joined
Jun 2, 2009
Messages
28
Office Version
  1. 365
Platform
  1. Windows
I've got an AVERAGEIFS() formula that kind of works great but I need to add the DAY() converter in to save having another converter column.

Scenario attached.

If I use this formula - =AVERAGEIFS($C$2:$C$11,$A$2:$A$11,"="&G$3,$B$2:$B$11,"="&$E5) it works.

But if I use this formula - =AVERAGEIFS($C$2:$C$11,$A$2:$A$11,"="&G$3,day($B$2:$B$11),"="&$F4)

Excel shows me an error.

What am I doing wrong?
 

Attachments

  • Excel problem.jpg
    Excel problem.jpg
    161.3 KB · Views: 13

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
How about
Excel Formula:
=AVERAGE(filter($C$2:$C$11,($A$2:$A$11=G$3)*(day($B$2:$B$11)=$F4)))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Fluff, I may have spoken too soon...

I'm putting the formula into my working sheet but it's coming up with a DIV/0 error.

Your assistance gratefully received.

Excel Problem.jpg
 
Upvote 0
Can you post some sample data that shows the problem.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,749
Members
452,940
Latest member
rootytrip

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