Average by month, ignore blank fields on date

acemali

New Member
Joined
Jan 19, 2021
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
Hey I have a report sheet and I need to make an average of some % but only looking at the specific month and ignoring when there are no dates in the the row.

For example.

=SUM((MONTH(E15:H15)=9)*E20:H20)/SUM(IF(MONTH(E15:H15)=9,1))

In U9 I have a test formula that is working okay and looking into the table below only when there is dates. But if I change the range E15:I15 formula return error. I need to make an average of some data from bellow based on a specific month but ignoring when there is no date in that specific row.

Thanks for any help.
 

Attachments

  • excelll.JPG
    excelll.JPG
    191.6 KB · Views: 20

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
= IFERROR(SUM((MONTH(E15:H15)= 9)* E20:H20)/ SUM(IF(MONTH(E15:H15)= 9,1)),"")
Array formula(Ctrl+Shift+Enter)
 
Upvote 0
Another approach with a normally entered formula:
Excel Formula:
=AVERAGEIFS(E20:H20,E15:H15,">=2020-9-1",E15:H15,"<2020-10-1")
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,687
Members
449,117
Latest member
Aaagu

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