DIV/0 error

Kidmon

Board Regular
Joined
Mar 4, 2011
Messages
71
I am using excel 2007.

I need to average numbers in a column within a date range. The column contains numbers and blank cells. The formula works but it return a DIV/0 error. I know i have a dividing by o problem but I am unsure where and how to edit my formula.
This is my formula:
=AVERAGEIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">=1/1/2012",'2N Stats'!$D:$D,"<=1/11/2012")

What can I do?

Thanx for your help.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
It appears that nothing meets the criteria.
Are you sure that the inequalities are the right way 'round?
 
Upvote 0
I am not sure what you mean by inequalities or criteria? Do you mean criteria for the error message?
 
Upvote 0
to get rid of div/0 specially there is no match in criteria.

=IFERROR(AVERAGEIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">=1/1/2012",'2N Stats'!$D:$D,"<=1/11/2012"),"")
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,930
Members
452,367
Latest member
TePunaBloke

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