DIV/0 error

Status
Not open for further replies.

Kidmon

Board Regular
Joined
Mar 4, 2011
Messages
71
I am using excel 2007
I simply need to divide cells that sometime contain numbers or blanks.

My screen shot shows what I want to see in B4. The other formulas return the dreded DIV/) ERROR

I need to know what B3 divided by B5 return. C3C5,D3D5,E3E5 and so on.
Thanx for your help
Excel Workbook
ABCDE
1CategoryAPR 4/6 - 4/12APR 4/13 - 4/19APR 4/20 - 4/26APR 4/27 - 5/3
2Daily Pod COUNT118171141130
3Average Daily 2N Count20212019
4Average 2N Stay6.56#DIV/0!###
5No. of Individual inmates3000
APR 6 - JUN 28, 2011
Excel 2010
Cell Formulas
RangeFormula
B2=SUMIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">="&"4/6/2011"+0,'2N Stats'!$D:$D,"<="&"4/12/2011"+0)
B3=AVERAGEIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">=4/6/2011",'2N Stats'!$D:$D,"<=4/12/2011")
B4=(B3/B5)
B5=COUNTIFS('2N Stats'!$B:$B,"Individual Inmate",'2N Stats'!$D:$D,">="&"4/6/2011"+0,'2N Stats'!$D:$D,"<="&"4/12/2011"+0)
C2=SUMIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">="&"4/13/2011"+0,'2N Stats'!$D:$D,"<="&"4/19/2011"+0)
C3=AVERAGEIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">=4/13/2011",'2N Stats'!$D:$D,"<=4/19/2011")
C4=(C3/C5)
C5=COUNTIFS('2N Stats'!$B:$B,"Individual Inmate",'2N Stats'!$D:$D,">="&"4/13/2011"+0,'2N Stats'!$D:$D,"<="&"4/19/2011"+0)
D2=SUMIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">="&"4/20/2011"+0,'2N Stats'!$D:$D,"<="&"4/26/2011"+0)
D3=AVERAGEIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">=4/20/2011",'2N Stats'!$D:$D,"<=4/26/2011")
D4=(D3/D5)
D5=COUNTIFS('2N Stats'!$B:$B,"Individual Inmate",'2N Stats'!$D:$D,">="&"4/20/2011"+0,'2N Stats'!$D:$D,"<="&"4/26/2011"+0)
E2=SUMIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">="&"4/27/2011"+0,'2N Stats'!$D:$D,"<="&"5/3/2011"+0)
E3=AVERAGEIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">=4/27/2011",'2N Stats'!$D:$D,"<=5/3/2011")
E4=IFERROR(QUOTIENT(E2,E5),"")
E5=COUNTIFS('2N Stats'!$B:$B,"Individual Inmate",'2N Stats'!$D:$D,">="&"4/27/2011"+0,'2N Stats'!$D:$D,"<="&"5/3/2011"+0)
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I am using excel 2007
I simply need to divide cells that sometime contain numbers or blanks.

My screen shot shows what I want to see in B4. The other formulas return the dreded DIV/) ERROR

I need to know what B3 divided by B5 return. C3C5,D3D5,E3E5 and so on.
Thanx for your help

Excel Workbook
ABCDE
1CategoryAPR 4/6 - 4/12APR 4/13 - 4/19APR 4/20 - 4/26APR 4/27 - 5/3
2Daily Pod COUNT118171141130
3Average Daily 2N Count20212019
4Average 2N Stay6.56#DIV/0!###
5No. of Individual inmates3000
APR 6 - JUN 28, 2011
Excel 2010
Cell Formulas
RangeFormula
B2=SUMIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">="&"4/6/2011"+0,'2N Stats'!$D:$D,"<="&"4/12/2011"+0)
B3=AVERAGEIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">=4/6/2011",'2N Stats'!$D:$D,"<=4/12/2011")
B4=(B3/B5)
B5=COUNTIFS('2N Stats'!$B:$B,"Individual Inmate",'2N Stats'!$D:$D,">="&"4/6/2011"+0,'2N Stats'!$D:$D,"<="&"4/12/2011"+0)
C2=SUMIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">="&"4/13/2011"+0,'2N Stats'!$D:$D,"<="&"4/19/2011"+0)
C3=AVERAGEIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">=4/13/2011",'2N Stats'!$D:$D,"<=4/19/2011")
C4=(C3/C5)
C5=COUNTIFS('2N Stats'!$B:$B,"Individual Inmate",'2N Stats'!$D:$D,">="&"4/13/2011"+0,'2N Stats'!$D:$D,"<="&"4/19/2011"+0)
D2=SUMIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">="&"4/20/2011"+0,'2N Stats'!$D:$D,"<="&"4/26/2011"+0)
D3=AVERAGEIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">=4/20/2011",'2N Stats'!$D:$D,"<=4/26/2011")
D4=(D3/D5)
D5=COUNTIFS('2N Stats'!$B:$B,"Individual Inmate",'2N Stats'!$D:$D,">="&"4/20/2011"+0,'2N Stats'!$D:$D,"<="&"4/26/2011"+0)
E2=SUMIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">="&"4/27/2011"+0,'2N Stats'!$D:$D,"<="&"5/3/2011"+0)
E3=AVERAGEIFS('2N Stats'!$G:$G,'2N Stats'!$D:$D,">=4/27/2011",'2N Stats'!$D:$D,"<=5/3/2011")
E4=IFERROR(QUOTIENT(E2,E5),"")
E5=COUNTIFS('2N Stats'!$B:$B,"Individual Inmate",'2N Stats'!$D:$D,">="&"4/27/2011"+0,'2N Stats'!$D:$D,"<="&"5/3/2011"+0)
Try this...

=IFERROR(B3/B5,"")

Copy across
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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